First of all, thanks for this awesome starte page!
Is there a route for a health check that returns 200 when Glance is running? I didn't see one in the code. A possible usecase for this route would be a Kubernetes probe or when Glance is behind a loadbalancer.
Sure, we could use the /, but depending on what's on the first page, that could be cumbersome to execute and consume resources for nothing.
If it didn't exists, a simple mux.HandleFunc("GET /api/healthz", func (w http.ResponseWriter, _ *http.Request) {w.WriteHeader(http.Ok)}) should be enough.
First of all, thanks for this awesome starte page!
Is there a route for a health check that returns 200 when Glance is running? I didn't see one in the code. A possible usecase for this route would be a Kubernetes probe or when Glance is behind a loadbalancer.
Sure, we could use the
/
, but depending on what's on the first page, that could be cumbersome to execute and consume resources for nothing.If it didn't exists, a simple
mux.HandleFunc("GET /api/healthz", func (w http.ResponseWriter, _ *http.Request) {w.WriteHeader(http.Ok)})
should be enough.