Enapter / charts

Enapter Helm Charts
MIT License
48 stars 49 forks source link

KeyDB replication questions #19

Closed sergeyshaykhullin closed 4 years ago

sergeyshaykhullin commented 4 years ago

How does KeyDB replication and master-slave works with this chart? As i understand each master node can be a slave to another. Is it true? In 3 nodes setup i have 3 master nodes? One downtime and i am loosing cluster? How to specify number of slaves on each master? Does adding more nodes require resharding?

Antiarchitect commented 4 years ago

@sergeyshaykhullin Multi-Master scheme is used: https://docs.keydb.dev/docs/multi-master/ - read carefully. I do not know exactly what it means in CAP theorem terms but suppose it's some form of eventual consistency model. As far as I can tell, you always need an odd number of nodes in the healthy cluster and 3 nodes, in particular, protects you from one node down and one split-brain - every two of them forms consensus.