I'm playing around deploying crate in a Rancher environment.
It's working fine, but I have issues with two config params:
gateway.expected_nodes and gateway.recover_after_nodes.
What is best practice regarding these two when it comes to scaling crate up and down.
/hw
The settings gateway.expected_nodes
and gateway.recover_after_nodes
are
only relevant during node startup.
scale-down: After you've removed some nodes you should update the configuration to reflect the new number of nodes in the cluster. But you don't need to restart.
scale-up: You should change the settings to the number of nodes you're going to have. This should be done before you start those new nodes. But you don't need to restart the existing nodes.
For a running node/cluster these values don't have any effect at all, that's why you don't necessarily have to restart (but the values should be correct in case you do restart them). They're only relevant during start-up. They control if the node (that is just starting) should recover the data from it's filesystem or if it should wait for other nodes in the cluster and receive the data from them.
For example given the case that you've 2 nodes: N1 and N2.
update
should I care about warning in admin when all nodes being started or restarted will have correct settings
If they will have the correct settings on a (re)start the warnings can be ignored.