Introducing Ark: A Consensus Algorithm For TokuMX and MongoDB
1–10 of 19 posts
Re: Introducing Ark: A Consensus Algorithm For TokuMX and MongoDB
#2Re: Introducing Ark: A Consensus Algorithm For TokuMX and MongoDB
#3Re: Introducing Ark: A Consensus Algorithm For TokuMX and MongoDB
#4Re: Introducing Ark: A Consensus Algorithm For TokuMX and MongoDB
#5Interesting -- sounds like once implemented, you could leverage the consensus algorithm to implement atomic multi-document/multi-table transactions too?
Ark is just about making replication as a whole trustworthy. The jepsen post on MongoDB[2] shows MongoDB losing data even with majority write concern, which if used properly, is supposed to make MongoDB a CP system. But because of the design flaws in the election algorithm, you can't rely on it perfectly. The changes we made in Ark fix the election algorithm to make majority write concern actually able to guarantee data safety, so you can treat it as a fully CP system.
[1]: http://docs.tokutek.com/tokumx/tokumx-transactions.html
Re: Introducing Ark: A Consensus Algorithm For TokuMX and MongoDB
#6Is there a TLA+ or Coq model available for this?
If you're interested in building one and you have experience with them, get in touch and we can work through it together. I think the biggest challenge would be modeling the semantics of write concern, but I'm not that familiar with proof assistants, maybe that isn't too hard.
Re: Introducing Ark: A Consensus Algorithm For TokuMX and MongoDB
#7Is there a TLA+ or Coq model available for this?
No, none of us know how to use those. :( If you're interested in building one and you have experience with them, get in touch and we can work through it together. I think the biggest challenge would be modeling the semantics of write concern, but I'm not that familiar with proof assistants, maybe that isn't too hard.
See this to get yourself started: http://research.microsoft.com/en-us/um/people/lamport/tla/by...
Re: Introducing Ark: A Consensus Algorithm For TokuMX and MongoDB
#8Earlier quoted context omitted.
No, none of us know how to use those. :( If you're interested in building one and you have experience with them, get in touch and we can work through it together. I think the biggest challenge would be modeling the semantics of write concern, but I'm not that familiar with proof assistants, maybe that isn't too hard.
If you have not used a model checker you don't have a proof. Please don't say that you have one. You are just hoping for the best. See this to get yourself started: http://research.microsoft.com/en-us/um/people/lamport/tla/by...
Re: Introducing Ark: A Consensus Algorithm For TokuMX and MongoDB
#9Earlier quoted context omitted.
No, none of us know how to use those. :( If you're interested in building one and you have experience with them, get in touch and we can work through it together. I think the biggest challenge would be modeling the semantics of write concern, but I'm not that familiar with proof assistants, maybe that isn't too hard.
If you have not used a model checker you don't have a proof. Please don't say that you have one. You are just hoping for the best. See this to get yourself started: http://research.microsoft.com/en-us/um/people/lamport/tla/by...
Re: Introducing Ark: A Consensus Algorithm For TokuMX and MongoDB
#10Earlier quoted context omitted.
If you have not used a model checker you don't have a proof. Please don't say that you have one. You are just hoping for the best. See this to get yourself started: http://research.microsoft.com/en-us/um/people/lamport/tla/by...
If you have used a model checker, you probably don't have a proof either. You have a model that might not be accurate, and testing all its inputs may be combinatorially prohibitive.