Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Redis Cluster Setup with dns

NOTE: I am new to redis cluster setup.

I am working setting up redis cluster. The cluster setup is complete. However when I want to setup the cluster using dns as follows

redis-cli --cluster create redis-01.internal:6379 redis-02.internal:6379 redis-03.internal:6379

I get the following errors indicating

>>> Nodes configuration updated                                                                                                                                                                                                                                                       
>>> Assign a different config epoch to each node                                                                                                                                                                                                                                      
>>> Sending CLUSTER MEET messages to join the cluster                                                                                                                                                                                                                                 
Node redis-02.internal:6379 replied with error:                                                                                                                                                                                                                               
ERR Invalid node address specified: redis-01.internal:6379  

I did also go through few of the similar questions which suggest dns based clustering is not available in redis.

So, is there any solution or some way to make sure the dns based cluster works for redis.

like image 588
dempti Avatar asked Dec 28 '25 19:12

dempti


1 Answers

Unfortunately, Redis doesn't support creating cluster by specifying hostnames; their IPs need to be used instead.

like image 194
meridius Avatar answered Dec 30 '25 23:12

meridius



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!