Skip to content

Enforce discovery.zen.minimum_master_nodes is set when bound to a public ip#17288

Merged
bleskes merged 1 commit intoelastic:masterfrom
bleskes:check_min_master_nodes
Mar 25, 2016
Merged

Enforce discovery.zen.minimum_master_nodes is set when bound to a public ip#17288
bleskes merged 1 commit intoelastic:masterfrom
bleskes:check_min_master_nodes

Conversation

@bleskes
Copy link
Copy Markdown
Contributor

@bleskes bleskes commented Mar 23, 2016

discovery.zen.minimum_master_nodes is the single most important setting to set on a production cluster. We have no way of supplying a good default so it must be set by the user. Binding a node to a public IP (as opposed to the default local host) is a good enough indication that a node will be part of a production cluster cluster and thus it's a good tradeoff to enforce the settings. Note that nothing prevent users from setting it to 1 in a single node cluster.

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.

I don't like that settings need to be passed into every check method. I'd prefer the specific setting needed be passed into MinMasterNodesCheck when it's constructed (look at the MlockallCheck).

@jasontedor
Copy link
Copy Markdown
Member

There's a comment at the top of BootstrapCheck.java about discovery.zen.minimum_master_nodes; can you remove it now?

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.

More unrelated formatting changes? Disable auto-format on commit?

@jasontedor
Copy link
Copy Markdown
Member

@bleskes Thank you for picking this one up. I left a few more comments about the unrelated formatting changes and the test; feel free to process and push at your discretion.

It would be nice to someday make the check much stronger than whether or not the setting is set at all (i.e., enforce that it's a quorum). I think that we should think about this over the next few months as we work on related problems in this area.

@jasontedor jasontedor removed the review label Mar 25, 2016
…ublic ip elastic#17288

discovery.zen.minimum_master_nodes is the single most important setting to set on a production cluster. We have no way of supplying a good default so it must be set by the user. Binding a node to a public IP (as opposed to the default local host) is a good enough indication that a node will be part of a production cluster cluster and thus it's a good tradeoff to enforce the settings. Note that nothing prevent users from setting it to 1 in a single node cluster.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants