Comments (2)
It'd be very expensive to move all non-deleted keys. It looks like there is a cheaper way:
- Imagine that along with
accept.lua
there isacceptTombstone.lua
which works the same way but also puts a key into a localdeleting
queue. - Once a client wants to remove a value it puts a tombstone but instead of
accept.lua
it usesacceptTombstone.lua
since it works the same way consistency isn't affected - A GC process regularly:
- peeks a key from the
deleting
queue - executes identity transformation with the write quorum covering whole cluster
- pops the key from
deleting
queue and pushes intodeleted
queue on every acceptor
- peeks a key from the
- Another GC process regularly:
- peeks a key from the
deleted
queue - connects to each acceptor and wipes a corresponding tombstone
- pops the key from the
deleted
queue
- peeks a key from the
Once we know that a tombstone was written to all acceptors it's safe to remove it outside the paxos read/write loop since the state (all value are tombstones) becomes isomorphic to the initial state (all values are null).
During a membership change an operator stops both GC processes, does a migration, updates GC's config (addresses of acceptors and proposers) and restarts the processes.
from js.
in step #3 when you say write quorum do you mean all nodes or just majority ?
If it's all nodes then it mean Tombstone can only be cleaned when all node are online.
This still seem like a good practical solution, thanks a lot for the feedback.
from js.
Related Issues (9)
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 js.