redis-server --port 6400redis-server sentinel.conf --sentinel
sentinel.conf
++++++++++++++++
#port 26379 sentinel monitor mymaster 127.0.0.1 6400 1 sentinel down-after-milliseconds mymaster 5000 sentinel failover-timeout mymaster 900000 sentinel can-failover mymaster yes sentinel parallel-syncs mymaster 1
machine:2 [192.168.100.121]
=============================# redis-server --port6400--slaveof192.168.100.1206400
redis-server sentinel.conf --sentinel
Can I use the same sentinel.conf on both the machines??
Should I mention slave redis-server IP address in the sentinel.conf??
Thanks
Eswar
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at http://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/groups/opt_out.
redis-server --port 6400redis-server sentinel.conf --sentinel
sentinel.conf
++++++++++++++++
on machine 1: [192.168.100.121]port 26379 sentinel monitor mymaster192.168.100.1206400 1 sentinel down-after-milliseconds mymaster 5000 sentinel failover-timeout mymaster 900000 sentinel can-failover mymaster yes sentinel parallel-syncs mymaster 1
## redis-server --port6400--slaveof192.168.100.1206400
redis-server sentinel.conf --sentinelsentinel.conf
++++++++++++++++
port 26379 sentinel monitor mymaster192.168.100.1216400 1 sentinel down-after-milliseconds mymaster 5000 sentinel failover-timeout mymaster 900000 sentinel can-failover mymaster yes sentinel parallel-syncs mymaster 1
--
You received this message because you are subscribed to a topic in the Google Groups "Redis DB" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/redis-db/M6WPJ0LnaWI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to redis-db+u...@googlegroups.com.
sentinel monitor mymaster192.168.100.1216400 1
to
sentinel monitor mymaster192.168.100.1206400 1
redis-server --port 6400redis-server sentinel.conf --sentinel
sentinel.conf
++++++++++++++++
port 26379 sentinel monitor mymaster192.168.100.1206400 1 sentinel down-after-milliseconds mymaster 5000 sentinel failover-timeout mymaster 900000 sentinel can-failover mymaster yes sentinel parallel-syncs mymaster 1
## redis-server --port6400--slaveof192.168.100.1206400
redis-server sentinel.conf --sentinelsentinel.conf
++++++++++++++++
port 26379 sentinel monitor mymaster192.168.100.1206400 1 sentinel down-after-milliseconds mymaster 5000 sentinel failover-timeout mymaster 900000 sentinel can-failover mymaster yes sentinel parallel-syncs mymaster 1
--
--
You received this message because you are subscribed to a topic in the Google Groups "Redis DB" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/redis-db/M6WPJ0LnaWI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to redis-db+u...@googlegroups.com.
Hello again,
in your logs what I see is that the Sentinels are able to connect to
the master, as they detect each other.
However there is no +slave event, so apparently they are not able to
sense that a slave is actually connected.
Also after you kill the master no +sdown / +odown events are
generated, which is very odd.
Try the following in order to provide some more information.
1) Setup your environment and start the Redis servers and the two Sentinels.
2) Wait 30 seconds or more.
3) Send the following commands to Sentinels and provide the output here:
SENTINEL masters
SENTINEL slaves mymaster
4) Also send the following command to the master and report the
output: INFO replication
5) Now kill the master Redis server. Make sure you kill it by sending
the "DEBUG SEGFAULT" command to it.
6) Wait 10 seconds or more.
7) Report the output of:
SENTINEL masters
Hello Wils, Redis Sentinel in recent times got a lot more stable and
I'm receiving very positive setups.
You received this message because you are subscribed to a topic in the Google Groups "Redis DB" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/redis-db/M6WPJ0LnaWI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to redis-db+u...@googlegroups.com.
Hi All,
I want to configure the HA for redis-server on a 2 node setup.
I could see the redis sentinel to achieve the behavior.
Can someone please help me with the sentinel configuration on the 2 nodes??
Should I run both redis-server+sentinel on both the nodes??
machine 1: [192.168.100.120]
===========================
#redis-server --port 6400
#redis-server sentinel.conf --sentinel
sentinel.conf
++++++++++++++++#port 26379 sentinel monitor mymaster 127.0.0.1 6400 1 sentinel down-after-milliseconds mymaster 5000 sentinel failover-timeout mymaster 900000 sentinel can-failover mymaster yes sentinel parallel-syncs mymaster 1
machine:2 [192.168.100.121]
=============================# redis-server --port6400--slaveof192.168.100.1206400
redis-server sentinel.conf --sentinel
--
You received this message because you are subscribed to a topic in the Google Groups "Redis DB" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/redis-db/M6WPJ0LnaWI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to redis-db+u...@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at http://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
Hi Andy,
I see your point however this is what I'm trying to reach, actually it can be done in the code using "slave of no one" to the slave in case the master fail but I thought sentinel would do this too...
2 machine: one is the master another ones is the slave.
Master fail: then slave become master.
That's it :)
[...]
Hi Salvatore!
Thanks for your explanations on sentinel algorithm.
I have problems with sentinel and master failover. I am testing sentinel with 3 VM (for 1 master and 2 slaves), each with 1 redis server and 1 sentinel, on standard ports.
The configuration of the sentinels is as follow :
===
sentinel monitor redis-v01 172.19.247.1 6379 2
sentinel down-after-milliseconds redis-v01 5000
sentinel failover-timeout redis-v01 15000
sentinel parallel-syncs redis-v01 2
sentinel monitor redis-v02 172.19.247.2 6379 2
[ an same 3 lines ]
sentinel monitor redis-v03 172.19.247.3 6379 2
[ an same 3 lines ]
===
[... lines deleted ... ]