-
Notifications
You must be signed in to change notification settings - Fork 24k
Nodes.conf does not update IP address of a node when IP changes after restart #4645
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
Comments
I ran into this same problem. Quick googling did not find pure redis fix so my hack is to update nodes*.conf from redis permanent storage before starting redis-server. Here's my script:
My permanent storage is
|
we ended up doing the same as we're storing this in a volume, we update the IP of |
Running into the same issue using Redis v5 rc3. Updating the IP of I get the following errors in the logs (node 10.60.4.17):
redis-cli info (node 10.60.4.17):
And then my cluster info says its ok
Did you run into the same issues? If so any tips? Thanks. |
As described in https://github.com/antirez/redis/issues/4645, when a node comes up with a new IP address, it does not update its own IP address in nodes.conf. To fix this, an entrypoint script updates the IP address before starting Redis Server. Fixes #6
I have the same problem using 6.2.4, is there a solution? |
I have the same problem using 5.0.14. |
I am also facing same issue with 6.2.6. I am also looking for an official solution. |
I am also facing same issue. Is there any official solution for this? |
I have the same problem. |
We’re deploying Redis cluster into docker containers and we’re using persistence storage to retain node.conf for all Redis nodes.
In a case when one of the docker containers dies, and a new container comes back up, we reattach nodes.conf from a volume to it so that It can join the currently running Redis cluster again automatically.
However, when the container comes back, it comes with a different IP address. And when we start new Redis server inside this container it does not update the IP address inside nodes.conf file for the only new generated container. But all other nodes have awareness of new IP address inside their nodes.conf. Overall, a node which went down - does not update its own IP address inside nodes.conf.
724e0c2e75c5b07668738e0c67b76e6ab85ea0ea <OLD_IP_ADDRESS>:6379@16379 myself,slave ec98d81a7d1c7292438b9a647c7ac1ce438dde12 0 1517444059272 5 connected
When I checked the status of a Redis cluster using Redis-cli info command, it shows
cluster status ok
.Redis version: 4.x
The text was updated successfully, but these errors were encountered: