kubectl exec -it kafka-68599c8986-8gcdj -- /opt/bitnami/kafka/bin/kafka-topics.sh \
--list --bootstrap-server localhost:9092✅ Should show sensor_topic
kubectl exec -it kafka-68599c8986-8gcdj -- /opt/bitnami/kafka/bin/kafka-console-consumer.sh \
--topic sensor_topic --from-beginning --bootstrap-server localhost:9092✅ Should show continuous JSON sensor data
kubectl logs deployment/server | grep "Kafka received"✅ Should show received sensor data
kubectl logs deployment/server | grep "Elected leader"✅ Example Output: Elected leader at 10.244.0.5:50051 (Term 1)
kubectl logs deployment/client | grep "Redirecting"✅ Clients should redirect to valid leader IPs
kubectl delete pod <leader-pod-name>✅ New leader should be elected automatically (check server logs)
kubectl get hpa✅ Verify CPU utilization triggers scaling
kubectl exec -it client-56ccb5499d-db4nn -- python3 scripts/load_test.py✅ Load should trigger scaling
watch kubectl get pods✅ Server pods should scale up when load increases
kubectl describe pod server-74dfddc7c8-c2qlv | grep -A 5 "Resources"✅ Should show CPU/memory limits from server-deployment.yaml
kubectl get priorityclass✅ Verify high-priority class exists
kubectl port-forward deployment/server 8000:8000✅ Open http://localhost:8000/metrics - should show grpc_requests_total
kubectl logs deployment/client | grep "Optimized settings received"✅ Check for consistent response times (<1s)
kubectl delete pod kafka-68599c8986-8gcdj # Kill Kafka✅ Clients should buffer messages until Kafka recovers
| Requirement | Validation Method |
|---|---|
| System Design Diagram | Confirm diagram exists in project docs |
| Demo Video (1-2 mins) | Verify video shows all components working |
| Performance Metrics | Check Prometheus/Grafana dashboard |
| Auto-Scaling Proof | kubectl describe hpa + load test screenshots |
| Code Quality | All pods show 0 restarts in kubectl get pods |
- Check Raft logic in
raft.py - Ensure
POD_IPis injected in server pods:kubectl describe pod <server-pod-name>
- Verify Kafka service DNS name:
kubectl get svc kafka
- Check Zookeeper logs:
kubectl logs zookeeper-5968d887b9-crpbx
- Verify
server-service:50051exists:kubectl get svc server-service
✅ If all these checks pass, your system is 100% operational and meets all project requirements! 🚀