kvrocks icon indicating copy to clipboard operation
kvrocks copied to clipboard

Support for Active/Active replication

Open lgscofield opened this issue 5 months ago • 3 comments

Search before asking

  • [x] I had searched in the issues and found no similar issues.

Motivation

This is a feature, only available in the enterprise version of redis. Would like to request for this to be made possible in kvrocks......

kvrocks at most can only be set as an Active-Passive deployment, it makes it difficult to implement an Active-Active setup for disaster recovery purposes. The deram is to set up a Multi Active-Active kvrocks deployment, so we can achieve an Active Active Production and Disaster Recovery setup.

Solution

Redis Enterprise keyDB and other sync tools like redis-shake

Are you willing to submit a PR?

  • [ ] I'm willing to submit a PR!

lgscofield avatar Aug 05 '25 01:08 lgscofield

any idea how is it implemented

zhixinwen avatar Aug 05 '25 01:08 zhixinwen

It's hard to do conflict resolution if we have multiple writable instances for same slot. So I'm not sure if we should support this.

However you can have multiple writable instances for different slots in one machine.

PragmaTwice avatar Aug 05 '25 03:08 PragmaTwice

We currently use Redis for persistent storage. To address disaster recovery issues, we have set up a hot standby cluster within the same city. Currently, we use a synchronization tool (redis-shake) to synchronize data from the primary cluster to the standby cluster. We would like to know if kvrocks can implement the Active Replication feature of keydb (or the dual-active feature of Redis Enterprise Edition) to replicate data from the primary cluster to the standby cluster. We are unsure if this can be achieved.

lgscofield avatar Aug 07 '25 09:08 lgscofield