-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved health-check ? #1
Comments
Following discussion in Slack... From @ChopperLee2011 :
From @zbal :
|
@woodpig07 pls weigh in. |
I vote for one single route And if we add more and more stuff to it later on, then we can break them down to sections like
|
I've created PR so that we can configure the env variables we want to see.
GET /health will return as
@xavierchow @zbal @ChopperLee2011 let me know if it's good to merge for release |
I'm confused, the DevOps is expecting an API to get the info about a service but the API is relying on the env var set by DevOps when deploying? If so why don't check the ansible script directly? |
@xavierchow - the reason is simply so we can expose those variables for misc status pages - those status pages are loading the data from the e.g. |
we have another design of system status page, do we need to combine the designs? A public system status page about important SLI/SLO |
@MiffyLiye @xavierchow - I understand there are other projects planning for status page - what are the ETA for those. This PR and the #2 have been opened for more than a year with no progress. I'm not so keen on having yet another year of discussion - weeks and months are also not "acceptable". From what I've seen - the health check library you've worked on is in a separate repo, there is no conflicts with this one. Can we move forward - close this issue and move onto other issues after ? Note; I'm not saying we should not use that other library @MiffyLiye worked on - only that I need closure and get those tasks completed. Especially when all that is needed is an hour of fix and a merge. |
|
K8s has liveness and readiness probes for different purposes: However we only expose a single livenessProbe:
failureThreshold: 3
httpGet:
path: /health
port: 3000
scheme: HTTP
initialDelaySeconds: 50
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
name: hype
ports:
- containerPort: 3000
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /health
port: 3000
scheme: HTTP
initialDelaySeconds: 5
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1 So I have a few confusions:
|
I’d like to extend loopback.status() to include more useful info - any suggestion ?
Effectively - I’d like to include:
Currently we use
/health
that return the content ofapp.loopback.status()
— if we don’t want to change that, could we get a/status
that returns similar info + extended details ? (feels like duplicate though)…Ultimately - this will allow us to expose via API the status of a backend component - and render it in an Admin/Status page on admin-ui, offering visibility.
/cc @xavierchow - please help evaluate and re-assign to whomever could help.
The text was updated successfully, but these errors were encountered: