Comments (4)
Please take a look at the documentation site: https://docs.keydb.dev/docs/multi-master where there is an example. If you just have 2 nodes you may want to try out active-rep option.
Cheers,
Ben
from keydb.
Thanks a lot Ben, I will use the documentation, some how i didnt find it earlier.
I had started with active-active deployment but my use-case seems to not fit in there, let me tell you what i am trying to solve and what is my expectations.
- right now i am having a isolated redis setup in each of the zones ( EU, Asia, SG ) .
- Each of them are maintaining some counters which are zone specific.
- Now the requirement is these counters should not be zone specific it should be shared across.
- I am looking for a solution, lets a key "a" can be incr across zones and they in sync.
I have already evaluated active-active where it doesn't seems to solve my problem, here is what i did.
servera - define a variable and set it to 1 and incr to 3
serverb - verify its value is 3.
-- disconnect the server by giving the wrong port and restart ----
servera - incr the variable till it reaches 6
serverb - incr the variable till it reaches 6
-- sync --
servera - value is 6
serverb - value is 6
here my expectation was to have a value of 9 but since the framework uses last write strategy, the variable was synced with value which was written by its latest timestamp.
Is there any way i can change the sync strategy ?
Here i am assuming multi-master would solve the problem, because as per documentation it would not drop the database while the sync with master and it would merge read/writes.
Edit : Based on the merge strategies available and the use case, i think CRDT based resolution will solve the issue. please let me know how do i achieve it or direct me to the documentation for the same.
Thanks a lot.
Shiva
from keydb.
Is there any way i can change the sync strategy ?
I intentionally only started with the most simple synchronization strategy. CRDTs are a planned feature but its quite complex to implement and will take some time.
from keydb.
Hi @JohnSully Thanks for letting us know.
I have created another ticket for feature request for CRDT sync strategy #47 for us to know once it is done and i am closing this ticket.
Thanks a lot.
Shiva
from keydb.
Related Issues (20)
- [BUG] New nodes in cluster not recognized by all others HOT 1
- [BUG] Data lost after loading
- Partial resync is never possible
- Trouble with using Lettuce readfrom options
- [BUG] Alpine image doesn't reap zombie processes
- Profile-Guided Optimization and KeyDB
- [BUG] Build error with GCC 13.1.1 on Fedora 38 HOT 2
- FLASH support in Docker image v6.3.3
- [BUG] redis-cli is unavailable in 6.3.3
- [CRASH] catCommandForAofAndActiveReplication HOT 2
- [BUG] Master gets failed over for many client connections when enabling FLASH storage option
- Unable to set min-clients-per-thread from keydb.conf HOT 4
- [CRASH] Server got crashed while catching up one of the master - ASSERTION FAILED HOT 2
- [BUG] Master is stuck when sentinel sends CLIENT KILL TYPE NORMAL to a failed master HOT 1
- [BUG] Temp rdb file is created with zero bytes in size during master/ replica startup in FLASH mode
- [CRASH] Slave node crashes with an assertion failure at: networking.cpp:2753'FCorrectThread(c)' is not true HOT 1
- [BUG] Command 'KEYS *' returns '(empty array)' even though there are keys on the server HOT 2
- KeyDB crashes when running as slave using FLASH HOT 1
- Master replied with a UUID we don't understand HOT 3
- [BUG]
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from keydb.