gotonull
V2EX  ›  Redis

redis 读从节点

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

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

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