-
Notifications
You must be signed in to change notification settings - Fork 5k
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
[bitnami/redis-cluster] BUG: not working with healthcheck #75322
Comments
Hi, Maybe the startup process is slower. Could you try increasing the number of retries? Also, could you try setting the |
Thanks for answering. I already have increased the retries to 1000. The container is not killed but did not finish startup. |
Started the container with debug enabled with following logs
It seems that the container is not able to finish initialization as soon as a healthcheck is defined... |
Hi, This is strange. This is the readiness command we execute in our side. But it's true that we provide an initialDelay, which would explain that there are no conflicts. |
Ok, so is there any chance to get that fixed? |
Hi @apachler, Sorry for the late response here. I just tried to configure the healthcheck in the Bitnami Redis Cluster solution and everything worked as expected. I configured the same code you pasted above in all containers, and they all ran as expected.
As @javsalgar mentioned above, you can try increasing the delay (start_period parameter) and see if that solves the issue. You can find more information here |
Thanks for sharing your experience. I already tried to increase the start_period but it does not help since docker is executing the healthcheck command even within the start_period but does not count negative results. I have seen that sometimes the container finished initalization with a configured healtcheck but fails again on the next startup... |
Hi @apachler, The issue seems to be related to your environment. I just launched a fresh instance in the cloud, and got the same results than before (in my local M1-based Mac OS X machine)
|
I am running the containers on Docker Swarm, maybe that causes the issue? |
That's probably it. Can you try without using Docker Swarm? |
Name and Version
bitnami/redis-cluster:7.2
What architecture are you using?
amd64
What steps will reproduce the bug?
Activating HEALTHCHECK in Docker Compose will stop container from working.
What is the expected behavior?
Container is starting and working as expected.
What do you see instead?
The container's initialization stops at
Setting Redis config file
or whileChanging old IP
.The text was updated successfully, but these errors were encountered: