Skip to content

[Deployment] Missing Health Check Endpoints #157

@ramkri123

Description

@ramkri123

Current State

  • Limited health check endpoints
  • No liveness/readiness probes
  • Missing dependency health checks

Issues

  • Cannot determine if service is healthy
  • Orchestrators cannot restart unhealthy services
  • No dependency health tracking
  • Cannot implement proper load balancing

Required

  • Add /health endpoint to all services
  • Implement liveness probes (is process running?)
  • Implement readiness probes (can accept requests?)
  • Add dependency health checks:
    • Database connectivity (SQLite)
    • TPM availability
    • External API availability (CAMARA)
    • Upstream service availability
  • Return appropriate HTTP status codes:
    • 200: Healthy
    • 503: Unhealthy (not ready)
    • 500: Fatal error
  • Document health check behavior

Location

  • mobile-sensor-microservice/service.py (needs /health endpoint)
  • TPM Plugin Server (has /health but needs enhancement)
  • All services need health endpoints

Related

From PRODUCTION_READINESS_ANALYSIS.md - Section 6.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions