Skip to content

Health endpoint uses circuit breaker state instead of pinging Redis #916

Description

@hman38705

Labels: reliability, api, monitoring

Priority: High

Description

The health endpoint reports Redis as healthy based on the in-memory circuit breaker state (which is fail-open). A Redis restart that has not yet tripped the breaker will be reported as healthy even though connections are failing.

Acceptance Criteria

  • Add an explicit Redis PING command in the /health/ready handler
  • Report Redis as degraded (not just down) if the ping succeeds but latency exceeds 100 ms
  • Expose a /health/dependencies endpoint returning structured JSON with each dependency name, status, and latency
  • Add a test that mocks a Redis ping timeout and verifies the health endpoint returns 503

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programapiAPI handlers and routingmonitoringMetrics, alerting, and dashboardsreliabilityResilience, recovery, and uptime

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions