Skip to content

[UNTESTED] prevent clusters with an even number of nodes#18

Open
aspiers wants to merge 1 commit into
crowbar:masterfrom
aspiers:prevent-even-node-clusters
Open

[UNTESTED] prevent clusters with an even number of nodes#18
aspiers wants to merge 1 commit into
crowbar:masterfrom
aspiers:prevent-even-node-clusters

Conversation

@aspiers

@aspiers aspiers commented Sep 7, 2015

Copy link
Copy Markdown
Member

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're old-school. We don't use two spaces at the end of a sentence anymore ;-)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should use i18n here. ;)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should use i18n here. ;)

👍 that's how it should be done for all new code parts.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now uses i18n. I think I originally submitted this before we used i18n :-)

@vuntz

vuntz commented Sep 10, 2015

Copy link
Copy Markdown
Member

Anyway, +1 for the code.

@aplanas

aplanas commented Dec 16, 2015

Copy link
Copy Markdown
Contributor

+1 for me, but maybe this needs to be checked also in the UI part (javascript)?

@aspiers aspiers force-pushed the prevent-even-node-clusters branch from 2961378 to e2fa5cd Compare December 17, 2015 12:04

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
@aspiers aspiers force-pushed the prevent-even-node-clusters branch from e2fa5cd to ccfcaf0 Compare December 17, 2015 12:04
@aspiers

aspiers commented Dec 17, 2015

Copy link
Copy Markdown
Member Author

Updated, but still haven't tested. Any volunteers? ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

8 participants