redis集群设计
怪我咯
怪我咯 2017-04-27 09:03:44
0
2
713

有两台服务器A,B做redis集群。 数据的写入是平均分配到二台服务器上,还是先写完一台服务器在向另一台服务器写数据呢。

二种情况各有什么优势,

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(2)
淡淡烟草味

You can try the redis cluster that comes with Redis 3.0 or above. Redis cluster uses data sharding instead of consistency hashing to implement: a Redis cluster contains 16384 hash slots, database Each key in belongs to one of the 16384 hash slots. The cluster uses the formula CRC16(key) % 16384 to calculate which slot the key belongs to. The CRC16(key) statement is used to calculate the CRC16 checksum of the key key. . Hope the above answer is helpful to you

曾经蜡笔没有小新

Official cluster deployment document: http://redis.cn/topics/cluste...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template