feat: Enhanced Health Checks with Dependency Status #5367
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds a proper readiness check to Hyperledger Fabric peers while keeping the existing liveness (/healthz) behavior unchanged.
Today, /healthz mainly tells whether the process is running. In Kubernetes and production setups, it’s often useful to know whether a peer is actually ready to receive traffic (ledger open, gossip initialized, etc.). This change separates those concerns in a safe, backward-compatible way.
What changed
All new checks are opt-in and use conservative defaults to avoid false negatives
Why this is useful
Backward compatibility
Configuration (example)
Tests
screenshot of terminal after the feat is implemented:
Notes
This is intentionally scoped to readiness and safety.
Stricter checks (ledger lag enforcement, channel-level readiness, etc.) can be added incrementally later if needed.
Feedback welcome — happy to adjust based on review.