╔════════════════════════════════════════════════════════════════════════════╗ ║ FOXHUNT HFT HEALTH CHECK - QUICK REFERENCE ║ ║ Wave 75 Agent 6 ║ ╚════════════════════════════════════════════════════════════════════════════╝ ┌────────────────────────────────────────────────────────────────────────────┐ │ QUICK COMMANDS │ ├────────────────────────────────────────────────────────────────────────────┤ │ Fast Check: ./quick_health_check.sh │ │ Full Check: ./health_check.sh │ │ View Status: cat health_status_summary.txt │ │ Generate Certs: sudo ./generate_dev_certs.sh │ │ View Logs: tail -100 logs/health_check_*.log │ └────────────────────────────────────────────────────────────────────────────┘ ┌────────────────────────────────────────────────────────────────────────────┐ │ SERVICE PORTS │ ├────────────────────────────────────────────────────────────────────────────┤ │ gRPC Services: │ │ 50050 - API Gateway │ │ 50051 - Trading Service │ │ 50052 - Backtesting Service │ │ 50053 - ML Training Service │ │ │ │ Infrastructure: │ │ 5433 - PostgreSQL │ │ 6380 - Redis │ │ 8200 - Vault │ │ 9099 - Prometheus │ │ 3000 - Grafana │ └────────────────────────────────────────────────────────────────────────────┘ ┌────────────────────────────────────────────────────────────────────────────┐ │ EXIT CODES │ ├────────────────────────────────────────────────────────────────────────────┤ │ 0 - HEALTHY: All checks passed │ │ 1 - DEGRADED: Some checks failed (<5) │ │ 2 - UNHEALTHY: Many checks failed (≥5) │ └────────────────────────────────────────────────────────────────────────────┘ ┌────────────────────────────────────────────────────────────────────────────┐ │ COMMON FIXES │ ├────────────────────────────────────────────────────────────────────────────┤ │ TLS Certificate Missing: │ │ sudo ./generate_dev_certs.sh │ │ # Restart services │ │ │ │ Service Not Running: │ │ ./target/release/trading_service & │ │ ./target/release/backtesting_service & │ │ ./target/release/ml_training_service & │ │ │ │ PostgreSQL Connection: │ │ PGPASSWORD=test_password psql -h localhost -p 5433 \ │ │ -U foxhunt_test -d foxhunt_test │ │ │ │ Redis Connection: │ │ docker exec api_gateway_test_redis redis-cli PING │ │ │ │ Check Logs: │ │ tail -50 logs/trading_service.log │ │ tail -50 logs/backtesting_service.log │ │ tail -50 logs/ml_training_service.log │ └────────────────────────────────────────────────────────────────────────────┘ ┌────────────────────────────────────────────────────────────────────────────┐ │ FILES & DOCUMENTATION │ ├────────────────────────────────────────────────────────────────────────────┤ │ Scripts: │ │ ./health_check.sh - Comprehensive (473 lines) │ │ ./quick_health_check.sh - Fast (134 lines) │ │ ./generate_dev_certs.sh - TLS certs (137 lines) │ │ │ │ Documentation: │ │ ./HEALTH_CHECK_README.md - User guide (395 lines) │ │ ./docs/WAVE75_AGENT6_HEALTH_VALIDATION.md - Report (616 lines) │ │ ./health_status_summary.txt - Visual status │ │ │ │ Logs: │ │ ./logs/health_check_*.log - Health check logs │ │ ./logs/trading_service.log - Service logs │ │ ./logs/backtesting_service.log │ │ ./logs/ml_training_service.log │ └────────────────────────────────────────────────────────────────────────────┘ ┌────────────────────────────────────────────────────────────────────────────┐ │ CI/CD INTEGRATION │ ├────────────────────────────────────────────────────────────────────────────┤ │ GitHub Actions: │ │ - name: Health Check │ │ run: ./quick_health_check.sh || exit 1 │ │ │ │ Pre-Deployment: │ │ ./health_check.sh && ./deploy.sh || exit 1 │ │ │ │ Cron Monitoring: │ │ */5 * * * * /path/to/quick_health_check.sh || notify-admin │ └────────────────────────────────────────────────────────────────────────────┘ ┌────────────────────────────────────────────────────────────────────────────┐ │ CURRENT STATUS (2025-10-03) │ ├────────────────────────────────────────────────────────────────────────────┤ │ Infrastructure: ✅ 100% HEALTHY (5/5 services) │ │ gRPC Services: ❌ 0% OPERATIONAL (0/4 services) │ │ Docker: ✅ 100% HEALTHY (9/9 containers) │ │ │ │ Root Cause: Missing TLS certificates │ │ Fix Available: Yes (./generate_dev_certs.sh) │ │ Time to Fix: <5 minutes │ └────────────────────────────────────────────────────────────────────────────┘ ╔════════════════════════════════════════════════════════════════════════════╗ ║ For detailed information: cat HEALTH_CHECK_README.md ║ ║ For full report: cat docs/WAVE75_AGENT6_HEALTH_VALIDATION.md ║ ╚════════════════════════════════════════════════════════════════════════════╝