Skip to content

feat(health): add deep readiness probe with RPC block height, latency pct and memory - #1241

Merged
ayomideadeniran merged 1 commit into
StellarDevHub:mainfrom
aurorabini:feat/issue-1125-health-probes
Aug 31, 2026
Merged

feat(health): add deep readiness probe with RPC block height, latency pct and memory#1241
ayomideadeniran merged 1 commit into
StellarDevHub:mainfrom
aurorabini:feat/issue-1125-health-probes

Conversation

@aurorabini

Copy link
Copy Markdown
Contributor

Summary

Adds deep health-check probes for orchestration (issue #1125) via a new GET /health/deep endpoint.

  • PostgreSQL connectivity probe (SELECT 1).
  • Redis PING probe.
  • Soroban/Horizon block height probe (latest ledger sequence) so a reachable-but-stale RPC fails readiness — the gap the issue calls out.
  • Latency percentiles: p50 / p95 / p99 across the probes.
  • Process memory: RSS, heap, external usage in MB.
  • Structured JSON; returns 503 with status: not_ready when any dependency is unavailable.
  • The existing /health/live and /health/ready contracts are preserved; the deep probe is additive (src/db/deepReadiness.ts, wired in src/routes/health.routes.ts).

Closes #1125

… pct and memory

Adds /health/deep probing PostgreSQL, Redis and the Soroban/Horizon block
height (so a reachable-but-stale RPC fails readiness), and returns latency
p50/p95/p99 plus process memory. Preserves the existing /health/ready contract.

Closes StellarDevHub#1125
@vercel

vercel Bot commented Aug 29, 2026

Copy link
Copy Markdown

@aurorabini is attempting to deploy a commit to the Ayomide Adeniran's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Aug 29, 2026

Copy link
Copy Markdown

@aurorabini Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@ayomideadeniran
ayomideadeniran merged commit 8bbcb3a into StellarDevHub:main Aug 31, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Backend] Implement Deep Health Check Probes for PostgreSQL, Redis, and Horizon

2 participants