by KirinDave · 14y ago · 0 comments
What this doesn't answer is my first question: why do there need to external special-mode sentinel processes? Why not have the slaves negotiate themselves? You're already doing a bit of this work, wouldn't it be simpler?
You say the sentinels are "for free" and they may be extremely inexpensive to run; but they're not "for free" from an operational context. They're another process to provision, start, monitor, and consider.
Position, number of sentinels, level of agreement. Change this three elements and you can create many kind of setups.
About operations: Sentinels are designed to monitor other sentinels automatically and are as simple as possible to operate.
An arbiter is indeed a lightweight mongod process that doesn't have storage, and should be added to break the tie when you have even number of members. I like the MongoDB's design, and it is probably optimal for 99% of use cases.
There are three key concepts: Split-brain, Quorum, and Fencing. I find this article fascinating.
http://techthoughts.typepad.com/managing_computers/2007/10/s...