-
Notifications
You must be signed in to change notification settings - Fork 2.7k
rpc server: add /health/readiness
endpoint
#14314
base: master
Are you sure you want to change the base?
Conversation
/health/readiness
endpoint on the RPC server/health/readiness
endpoint to the RPC server
/health/readiness
endpoint to the RPC server/health/readiness
endpoint
Hey, is anyone still working on this? Due to the inactivity this issue has been automatically marked as stale. It will be closed if no further activity occurs. Thank you for your contributions. |
Wasn't there somewhere a discussion around this RPC? And that people should just prometheus to do this? If we want this pr, we should put it into the spec. |
This is not a JSON RPC API and therefore don't belong to the new JSON RPC API spec. |
client/rpc-servers/src/middleware.rs
Outdated
/// Proxy `/health` to `system_health`. | ||
Health, | ||
/// Proxy `/health/readiness`. | ||
Readiness, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe some docs on what they return and when.
Co-authored-by: Bastian Köcher <[email protected]>
The CI pipeline was cancelled due to failure one of the required jobs. |
Yeah, I agree with @xlc that this isn't strictly related to the RPC API but it was so simple to add it to the JSON-RPC server as Whether these EDIT: The new RPC spec will remove the system_health API, so maybe doing it on top of number of peers is the way forward.. |
bot rebase |
Rebased |
Close #1017
Ideally, we should move
/health
and/health/readiness
to the prometheus server but because it's was quite easy to implement on the RPC server and that RPC server already exposes/health
.Manual tests on a polkadot node syncing: