【问题标题】:Redis Sentinel Configuration not workingRedis 哨兵配置不起作用
【发布时间】:2016-09-27 01:56:56
【问题描述】:

我正在尝试使用两个 redis 节点设置哨兵。请找到内联的conf文件。

端口 16371

目录“C:\Program Files\Redis\16371\”

日志级别通知

日志文件“C:\Program Files\Redis\logs\16371.log”

哨兵监视器 ExampleMaster 127.0.0.1 6371 1

sentinel down-after-milliseconds ExampleMaster 3000

sentinel 故障转移超时 ExampleMaster 6000

当我尝试使用此配置运行服务器时,出现以下错误:

* 致命配置文件错误 * 读取配置文件,第 5 行

    'sentinel monitor ExampleMaster 127.0.0.1 6371 1'
    Bad directive or wrong number of arguments

谁能帮我解决这个问题。 TIA :)

【问题讨论】:

    标签: redis config redis-sentinel


    【解决方案1】:

    quarom 需要最小 2

    哨兵监视器 ExampleMaster 127.0.0.1 6371 2

    【讨论】:

    • 我觉得quorum为1就可以了,我会推荐redis在sentinel模式下运行。我尝试关注的 MAC OS 也遇到了同样的问题,它有效redis-sentinel /path/to/config --sentinel
    猜你喜欢
    • 2018-07-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-01-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多