-
Notifications
You must be signed in to change notification settings - Fork 10
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
Check if service is still healthy #25
Comments
Hi, do you have an example how this would look like? Sorry, never did this before |
Of course! In a common matrix-synapse healthcheck:
test: ["CMD", "curl", "-fSs", "http://localhost:8008/health"]
interval: 15s
timeout: 5s
retries: 3
start_period: 5s The command specified after So the question is, what command could be executed regularly in the bot container that succeeds when everything is fine and fails when something has gone wrong? |
Sounds good & sensible. Sadly with the framework that we use does not allow to easily implement a |
We don't need a site like the So what would you check first, to be sure everything is fine? Maybe the source code does not need to be changed at all... |
Sorry for the late response. I was thinking about this a lot and I think there is no easy way to check the status/health of the bot. The easiest I could think of, was to check the presence status of the bot like this
whicht returns either |
That works too imo |
I suggest adding a health check to the
docker-compose.yml
file.I can create a pull request for this, but I am unsure which would be the best way to check if the service is still healthy.
I am grateful for any help!
The text was updated successfully, but these errors were encountered: