StackExchange.Redis仅使用master和ignore slave

时间:2015-08-26 18:27:09

标签: redis stackexchange.redis

我正在使用StackExchange.Redis与主/从。

我正在阅读CommandFlags.PreferSlave,但是当我向内看时,我发现奴隶没有用。 我想用奴隶进行读取!奴隶已连接但被忽略。为什么呢?

redis1:6379: Standalone v3.0.3, master; 16 databases; keep-alive: 00:01:00; int: ConnectedEstablished; sub: ConnectedEstablished, 1 active 
redis1:6379: int ops=163768, qu=0, qs=0, qc=0, wr=0, sync=163766, async=2, socks=1; sub ops=47, qu=0, qs=0, qc=0, wr=0, subs=1, sync=47, socks=1 
Circular op-count snapshot; int: 162882+163+126+54+104+128+86+39+54+76+56=163768 (88.60 ops/s; spans 10s); sub: 47 (0.00 ops/s; spans 10s) 
redis2:6379: Standalone v3.0.3, slave; 16 databases; keep-alive: 00:01:00; int: ConnectedEstablished; sub: ConnectedEstablished, 1 active 
redis2:6379: int ops=56, qu=0, qs=0, qc=0, wr=0, sync=54, async=2, socks=1; sub ops=47, qu=0, qs=0, qc=0, wr=0, subs=1, sync=47, socks=1 
Circular op-count snapshot; int: 56 (0.00 ops/s; spans 10s); sub: 47 (0.00 ops/s; spans 10s) 
Sync timeouts: 0; fire and forget: 0; last heartbeat: 0s ago 

0 个答案:

没有答案