Skip to content

liveness and readiness probe for asynq server #479

Answered by hibiken
jack-evans asked this question in Q&A
Discussion options

You must be logged in to vote

@jack-evans Thank you for the question.
(Disclaimer: I'm not an expert on Kubernetes so please take my advice with a grain of salt 😄 )

The heartbeat and healthchecker goroutines you mentioned are the internals of asynq server and not meant for external use.

The package current provides this HealthCheckFunc (and associated HealthCheckInterval) which checks whether the connection to the redis server (which is a critical dependency of asynq server) is healthy.

You can provide your custom function to update the health status of your server and export the health status via an HTTP endpoint, to which the probe can make request.

Example: Export health status of the server via /healthz HTTP endpoint

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@loewenstein-sap
Comment options

Answer selected by jack-evans
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants