zts1993
V2EX  ›  Redis

话说有人熟悉 Redis Cluster 么

  •  
  •   zts1993 · Jul 24, 2015 · 4263 views
    This topic created in 3950 days ago, the information mentioned may be changed or developed.

    话说Redis Cluster现在可以读取从节点么?

    我这里30004是30001的从节点,我确定的是key:565在30001和30004上,我想从30004读取这个值,可是总提示我moved 30001?

    是因为cluster nodes中slave的slot信息为空的原因么

    2 replies    2016-03-06 11:27:02 +08:00
    zts1993
        1
    zts1993  
    OP
       Jul 24, 2015   ❤️ 1
    要发READONLY指令 。大家不要踩坑了。。

    https://github.com/antirez/redis/issues/2202
    tanteng
        2
    tanteng  
       Mar 6, 2016
    hscan 返回就是一个 cluster ,但文档介绍太少了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   6104 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 274ms · UTC 01:56 · PVG 09:56 · LAX 18:56 · JFK 21:56
    ♥ Do have faith in what you're doing.