-
Notifications
You must be signed in to change notification settings - Fork 498
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
Healthcheck feature #564
Comments
Any suggestions would be appreciated. |
A default healthcheck was added in Rails 7.1 Which will be available in Redmine 6 So until then one would need to create a custom healthcheck as described in |
Dockerfile: COPY routes.rb /usr/src/redmine/config/
COPY health_check_controller.rb /usr/src/redmine/app/controllers/
COPY healthcheck.sh /usr/src/redmine/
RUN chmod +x /usr/src/redmine/healthcheck.sh healthcheck.sh: #!/bin/sh
wget --no-verbose --tries=1 --spider http://localhost:3000/health_check 1>/dev/null 2>&1 Use like healthcheck:
test: ["CMD-SHELL", "healthcheck.sh"]
start_period: 3s
interval: 10s
timeout: 5s
retries: 3 Now only problem is the logs fill up with 13 lines of health check every 10 seconds
|
I don't think we should be making changes to the redmine application in this docker image. Can we get away with fetching the /login URL until redmine adds a valid healthcheck? |
Well its not the Redmine application per se we're changing - we're adding a route and a controller to the underlying Rails web server. If its set to /up then it pre-empts the coming healthcheck in Rails 7.1 anyway so there's no chance of a collision. The problem with hitting /login (apart from confusing metrics consumers) is all the logs, and to silence them requires changing controllers anyway. I'm still figuring out how to silence calls to an endpoint. |
How about creating a healthcheck?
I'd like my proxy to wait until redmine container is ready before starting.
The text was updated successfully, but these errors were encountered: