-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
feat(server): healthchecks for PG and redis #9590
Conversation
In #9583 I am requesting that we make the healthchecks active by default using the HEALTHCHECK command in the dockerfiles, so we shouldn't need the documentation around the docker compose changes. If that change makes it in the docs will need to be updated to reflect that |
command: ["postgres", "-c" ,"shared_preload_libraries=vectors.so", "-c", 'search_path="$$user", public, vectors', "-c", "logging_collector=on", "-c", "max_wal_size=2GB", "-c", "shared_buffers=512MB", "-c", "wal_compression=on"] | ||
restart: always |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any reason the database was the only core service not restart: always
in prod?
Same question for grafana and prometheus, though I did not make a change there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I do worry a bit about the default compose file growing large again, but I don't think there's any other way for us to apply these healthchecks right?
Yea, this is the only way without pushing our own containers |
implements #9583 in non-Immich services
this is a non breaking change. Users who add this will get the benefit of the healthcheck, if they have checksums enabled (new installs starting with 1.104.0)
Users with older setups will have a
unhealthy
status. This can be fixed by removing everything after the firstexit 1
in the database health check test: line