Coder Social home page Coder Social logo

Comments (11)

cjabrantes avatar cjabrantes commented on August 17, 2024 1

Just to add that besides Redis Enterprise, also keydb (open source redis drop-in) is supporting it and the configuration is quite trivial:
--multi-master yes
--active-replica yes
--replicaof IP PORT

@madolson:
Dont know if helps or even if your question was in this direction, but from https://docs.keydb.dev/docs/active-rep:
Split Brain
KeyDB can handle split brain scenarios where the connection between masters is severed, but writes continue to be made. Each write is timestamped and when the connection is restored each master will share their new data. The newest write will win. This prevents stale data from overwriting new data written after the connection was severed.

IMHO (i may be wrong) I think this is a great feature as it is a simple and cheap way to get HA without manual intervention (as all nodes accept writes, no need of election) and without the complexity (resources, elections) of cluster/sentinel setups.

I would really like to use Valkey, but "unfortunately" i need this feature.

from valkey.

cjabrantes avatar cjabrantes commented on August 17, 2024 1

@madolson,
Sadly i dont know how it behaves.

from valkey.

madolson avatar madolson commented on August 17, 2024

Can you add some additional information about what types of workloads you are trying to support. Active/Active replication is a hard problem with a lot of tradeoffs. It would be helpful to have more information about your specific usecase to inform those tradeoffs.

from valkey.

Amitgb14 avatar Amitgb14 commented on August 17, 2024

It might be this possible only on Proxy level. It make more complex if it start support in core Valkey code.

from valkey.

btzq avatar btzq commented on August 17, 2024

Can you add some additional information about what types of workloads you are trying to support. Active/Active replication is a hard problem with a lot of tradeoffs. It would be helpful to have more information about your specific usecase to inform those tradeoffs.

In our case, we currently use Redis to hold user session info for SSO purposes.

Because our setup is currently Active/Passive, when we do conduct a failover to disaster recovery site, all users will need to relogin. If there was an active/active setup for Valkey, it would be pretty great so there wouldnt be any downtime during a failover.

from valkey.

btzq avatar btzq commented on August 17, 2024

It might be this possible only on Proxy level. It make more complex if it start support in core Valkey code.

Im not quite sure how Redis Enterprise works, but im sure their version of Active/Active is done outside the core as well.

from valkey.

madolson avatar madolson commented on August 17, 2024

In our case, we currently use Redis to hold user session info for SSO purposes.

I presume that means you are using a hash or a string? Are you okay with a timestamp at the object level to determining which objects wins.

from valkey.

Amitgb14 avatar Amitgb14 commented on August 17, 2024

@btzq , I think your problem can resolved by setup proxy in-between or setup slave on secondary region and any downtime you just failover, It's great if Valkey will think to support in future

from valkey.

madolson avatar madolson commented on August 17, 2024

@cjabrantes I skimmed the document quickly and don't know much about the technical details, so not sure how much it would be to implement this feature. I know that keyDB attaches a timestamp to each record that it uses for last writer wins, do you know if it replicates the entire object when mutations occur? That seems like a simple way to get last writer wins fairly quickly, but won't work well for certain workloads like distributed counters.

from valkey.

mbfdias avatar mbfdias commented on August 17, 2024

this would be a nice feature to add :) pity it's been categorized as a "not planned"

I'm unsure about the stability and future of KeyDB as is seems to be kinda dead and multi master is not a priority anywhere.

from valkey.

madolson avatar madolson commented on August 17, 2024

@mbfdias Less "not-planned" and more "need someone to implement it", which is hard given we are a community driven project.

from valkey.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.