【问题标题】:Redis sentinel local cluster setup in windowsWindows中的Redis哨兵本地集群设置
【发布时间】:2014-04-28 16:46:10
【问题描述】:

我正在尝试在本地设置一个 redis-sentinel 集群。我在 windows 上运行 Redis-64.2.8.4 。我想设置一个带有 2 个从属的主控,因为这将反映我的实际环境。

我在跑步

redis-server.exe sentinel.conf --sentinel

有了这个配置

----
maxheap 64MB

sentinel monitor mymaster 127.0.0.1 7000 2
sentinel down-after-milliseconds mymaster 60000
sentinel failover-timeout mymaster 180000
sentinel parallel-syncs mymaster 1
----

但是我只是得到一个重复的日志

wait3() returned a pid (-1) we can't find in our scripts execution queue!

我已经阅读了docs,但老实说,我对我应该在这里做什么并不太明智。我是否指定了配置中的所有服务器?

【问题讨论】:

  • 是否让它运行得令您满意?

标签: redis redis-sentinel


【解决方案1】:

无需在配置文件中指定所有服务器。我们只需要指定 master 主机地址和端口号。我根据链接配置了 redis 版本 -2.8.12 的哨兵,它可以工作。 Link

【讨论】:

    【解决方案2】:

    您是从 NuGet 获得的吗?我遇到了同样的问题,但是当我从 github 中提取它时,它解决了我的问题。

    【讨论】:

      猜你喜欢
      • 2020-03-15
      • 1970-01-01
      • 1970-01-01
      • 2013-10-19
      • 1970-01-01
      • 1970-01-01
      • 2016-05-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多