gotonull
V2EX  ›  Redis

redis 读从节点

  •  
  •   gotonull · May 18, 2021 · 2686 views
    This topic created in 1832 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   ·   5620 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 07:45 · PVG 15:45 · LAX 00:45 · JFK 03:45
    ♥ Do have faith in what you're doing.