V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
gotonull
V2EX  ›  Redis

redis 读从节点

  •  
  •   gotonull · May 18, 2021 · 2603 views
    This topic created in 1804 days ago, the information mentioned may be changed or developed.

    小白问一下各位大神,大家公司的项目中对于 redis 集群,会配置读写分离,对于读请求分配到从节点吗

    3 replies    2021-05-18 19:26:58 +08:00
    26407166
        1
    26407166  
       May 18, 2021
    看场景,写流量对 Redis 负载影响较大的时候,会做读写分离。以免主从负载不均
    gotonull
        2
    gotonull  
    OP
       May 18, 2021
    @26407166 所以就是可以读从节点对不
    ccde8259
        3
    ccde8259  
       May 18, 2021 via iPhone
    使用 Lettuce 在连接 Redis Cluster 的时候
    有提供一个读优先级配置
    默认是 Slave
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5347 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 03:51 · PVG 11:51 · LAX 20:51 · JFK 23:51
    ♥ Do have faith in what you're doing.