[UNTESTED] prevent clusters with an even number of nodes#18
[UNTESTED] prevent clusters with an even number of nodes#18aspiers wants to merge 1 commit intocrowbar:masterfrom
Conversation
There was a problem hiding this comment.
You're old-school. We don't use two spaces at the end of a sentence anymore ;-)
There was a problem hiding this comment.
Who's "we"? I use it all the time :-p And it has the significant advantage of allowing my editor to jump forward/backward by one sentence at a time.
There was a problem hiding this comment.
We should use i18n here. ;)
👍 that's how it should be done for all new code parts.
There was a problem hiding this comment.
Now uses i18n. I think I originally submitted this before we used i18n :-)
|
Anyway, +1 for the code. |
|
+1 for me, but maybe this needs to be checked also in the UI part (javascript)? |
2961378 to
e2fa5cd
Compare
There was a problem hiding this comment.
Style/EvenOdd: Replace with Fixnum#even?. (https://github.com/bbatsov/ruby-style-guide#predicate-methods)
Clusters must have an odd number of nodes to ensure quorum during partitioning. 2-node clusters are allowed as a special exception for the typical DRBD setup.
e2fa5cd to
ccfcaf0
Compare
|
Updated, but still haven't tested. Any volunteers? ;-) |
Clusters must have an odd number of nodes to ensure quorum during partitioning. 2-node clusters are allowed as a special exception for the typical DRBD setup.