Quelques commandes Sentinel utiles
This commit is contained in:
parent
30e6a37a44
commit
a91c97866a
|
@ -453,6 +453,28 @@ Sentinel doit pouvoir ecrire dans son fichier de configuration :
|
||||||
chown redis: /etc/redis/sentinel.conf
|
chown redis: /etc/redis/sentinel.conf
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
Quelques commandes Sentinel utiles :
|
||||||
|
|
||||||
|
~~~
|
||||||
|
sentinel> info
|
||||||
|
=> infos complètes
|
||||||
|
|
||||||
|
sentinel> sentinel masters
|
||||||
|
=> liste des groupes Redis connus
|
||||||
|
|
||||||
|
sentinel> sentinel master <groupe>
|
||||||
|
=> infos spécifique à un groupe
|
||||||
|
|
||||||
|
sentinel> sentinel get-master-addr-by-name <groupe>
|
||||||
|
=> info du master d'un groupe
|
||||||
|
|
||||||
|
sentinel> sentinel slaves <groupe>
|
||||||
|
=> liste des réplica d'un groupe
|
||||||
|
|
||||||
|
sentinel> sentinel failover <groupe>
|
||||||
|
=> force le failover d'un groupe
|
||||||
|
~~~
|
||||||
|
|
||||||
## Load-balancing avec HAProxy
|
## Load-balancing avec HAProxy
|
||||||
|
|
||||||
Il est possible d'avoir un master et plusieurs replica derrière un proxy/load-balancer HAProxy (sur `172.19.3.100` dans l'exemple).
|
Il est possible d'avoir un master et plusieurs replica derrière un proxy/load-balancer HAProxy (sur `172.19.3.100` dans l'exemple).
|
||||||
|
|
Loading…
Reference in a new issue