【问题标题】:How setup sentinel-tunnel如何设置哨兵隧道
【发布时间】:2020-12-03 11:40:20
【问题描述】:

我尝试使用两个从属副本和 3 个哨兵来设置 redis。我尝试设置哨兵隧道以访问我的 redis。 https://github.com/RedisLabs/sentinel_tunnel

我可以在数据库名称中写什么?

{
    "Sentinels_addresses_list":[
        "node1.local:8001",
        "node2.local:8001"
    ],
    "Databases":[
        {
            "Name":"db1",
            "Local_port":"12345"
        },
        {
            "Name":"db2",
            "Local_port":"12346"    
        }
    ]
}

sentinel masters 命令的主人的名字?还是什么?

【问题讨论】:

    标签: redis redis-sentinel


    【解决方案1】:

    为了方便起见,名称只是一个供您参考的字段。查看代码 (https://github.com/RedisLabs/sentinel_tunnel/blob/20e718c5c839a4261fc7c6bb578f4df669b08b1a/sentinel_tunnelling_client.go),该字段仅用于错误记录。

    【讨论】:

      猜你喜欢
      • 2017-07-10
      • 2015-03-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多