Redis sentinel vs clustering

前端 未结 7 1841
渐次进展
渐次进展 2021-01-29 18:12

I understand redis sentinel is a way of configuring HA (high availability) among multiple redis instances. As I see, there is one redis instance actively serving the client requ

7条回答
  •  悲哀的现实
    2021-01-29 18:37

    This is my understanding after banging my head throughout the documentation.

    Sentinel is a kind of hot standby solution where the slaves are kept replicated and ready to be promoted at any time. However, it won't support any multi-node writes. Slaves can be configured for read operations. It's NOT true that Sentinel won't provide HA, it has all the features of a typical active-passive cluster ( though that's not the right term to use here ).

    Redis cluster is more or less a distributed solution, working on top of shards. Each chunk of data is being distributed among masters and slaves nodes. A minimum replication factor of 2 ensures that you have two active shards available across master and slaves. If you know the sharding in Mongo or Elasticsearch, it will be easy to catch up.

提交回复
热议问题