cube-js / cube

📊 Cube — Universal semantic layer platform for AI, BI, spreadsheets, and embedded analytics
https://cube.dev
Other
17.97k stars 1.78k forks source link

Support K8s-style health check endpoints for Cube Store nodes #2779

Open igorlukanin opened 3 years ago

igorlukanin commented 3 years ago

Is your feature request related to a problem? Please describe. Cube supports K8s-style health check endpoints while Cube Store nodes don't. Hence, it's not easy to understand if the Cube Store cluster and individual nodes have initialized and started properly.

Describe the solution you'd like Provide and document the same set of endpoints for Cube Store.

Describe alternatives you've considered

Additional context Relevant discussion in Slack: https://cube-js.slack.com/archives/C0206EXEVAS/p1621326447001400?thread_ts=1621322103.000300&cid=C0206EXEVAS

saharshsingh commented 1 year ago

My workplace is considering using CubeJS as the API layer over our Redshift Data warehouse, and I am currently figuring out how to deploy CubeJS in our Kubernetes cluster and get it to a production ready state. The examples included in this repo make my task pretty straight forward.

However, one area that is lacking in information is how to setup proper liveness and readiness probes for each pod. It seems the /readyz and /livez endpoints are only exposed by the main API pod and refresh worker pods. Any guidance on what to do for the cubestore related pods?

klezovics commented 12 months ago

Hey, guys, is it there something like a /livez endpoint for the cube_store image ? I'm running it in production and need to check that the process is up and running. How can I do it ?

svdimchenko commented 10 months ago

@klezovics there is livenessProbe defined for cubestore router. However I don't see there any liveness probe for cubestore worker. The probe for worker should be clarified I guess