简体   繁体   English

Redis.conf用于带有哨兵的奴隶

[英]Redis.conf for slave with sentinel

Should I use exact mirror of redis.conf on slave, if it would be promoted as master when failover activates. 我应该在从属redis.conf上使用redis.conf确切镜像,如果在故障转移激活时将其提升为主服务器。

For example should I appendonly yes to slave ? 例如,我应该appendonly yes到slave吗?

The slaves configuration are different than the master one, so you will need to have 1 config file per server, plus one sentinel config file. 从服务器的配置与主服务器的配置不同,因此每个服务器需要有1个配置文件,再加上一个哨兵配置文件。 Here you have a nice tutorial to make it work (basically) https://seanmcgary.com/posts/how-to-build-a-fault-tolerant-redis-cluster-with-sentinel 在这里,您有一个不错的教程(基本上)可以使它工作: https://seanmcgary.com/posts/how-to-build-a-fault-tolerant-redis-cluster-with-sentinel

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM