Enforce discovery.zen.minimum_master_nodes is set when bound to a public ip#17288
Enforce discovery.zen.minimum_master_nodes is set when bound to a public ip#17288bleskes merged 1 commit intoelastic:masterfrom
discovery.zen.minimum_master_nodes is set when bound to a public ip#17288Conversation
There was a problem hiding this comment.
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).
|
There's a comment at the top of |
There was a problem hiding this comment.
More unrelated formatting changes? Disable auto-format on commit?
|
@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. |
…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
f9900d7 to
b8227a7
Compare
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.