-
Notifications
You must be signed in to change notification settings - Fork 718
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't clear shard allocation excludes at every reconciliation #1522
Comments
It's very strange to clear shard allocation excludes at every reconciliation attempt. I tried to decommission one specific node by setting shard allocation exclude config, but it always be reseted automatically which really confused me. I think we should not change the settings that already exist. |
@ximenzaoshi a workaround to not have the operator concurrently resetting your cluster settings is to temporarily disable reconciliations. This can be done by setting an annotation on your Elasticsearch resource:
Indeed, it's not straightforward. Can you explain a bit more your use case?
|
Thanks for your reply! We have two ES node on one host and we want to move one of them away, as the host load is high. I can have a try with your method, thanks. |
We clear shard allocation excludes at every reconciliation attempt, to make sure we correctly reset it after nodes are downscaled.
We could optimize by only clearing it if not already cleared, similar to what we do with zen1 minimum_master_nodes:
cloud-on-k8s/operators/pkg/controller/elasticsearch/version/zen1/minimum_masters.go
Lines 81 to 84 in c889efc
Related: #1161.
The text was updated successfully, but these errors were encountered: