Coder Social home page Coder Social logo

Comments (6)

romange avatar romange commented on August 20, 2024

Sorry, I do not understand your use-case. What's your cluster topology? You have a single master with 50+ replicas? You have a cluster with 50 shards? What do you expect will happen when you write into a slave?

from dragonfly.

m1cha3lf avatar m1cha3lf commented on August 20, 2024

We have 1 primary KeyDB server and many replicas. (no cluster). Each replica is also being used from application servers as local cache. Do achieve that the application server has to write directly against replicas. (which is not working by default because replicas are read-only)

Basically the same as what DragonDB describes here:
https://www.dragonflydb.io/faq/redis-replica-read-only-configuration

but this option doesn't seem to exist.

I'm aware that this might raise architecture design questions, but we do that with a good reason to keep latency low and high throughput.

from dragonfly.

romange avatar romange commented on August 20, 2024

Frankly, it's the first time I am learning about such setup. So basically you are making sure that a slave writeable keyspace does not overlap with the master?
@adiholden what do you think? Seems like a simple extension to add?
@m1cha3lf Besides this writeability issue, have you already tested Dragonfly with replicating to 50 replicas?

from dragonfly.

m1cha3lf avatar m1cha3lf commented on August 20, 2024

Yes, the application is using a special prefix for all keys to avoid conflicts with keys coming from master.

i wasn't able to test the whole setup and replication due to the requirement of writing against a replica / slave.

from dragonfly.

romange avatar romange commented on August 20, 2024

I think those unrelated. We've never tested master with 50 replicas so I prefer to hold on with this request until you are sure everything else works well

from dragonfly.

romange avatar romange commented on August 20, 2024

Not planned

from dragonfly.

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.