Reputation: 89
I'm trying to change my AWS ElasticSearch nodes to lower configuration. But when I do this, it adds more nodes to the original cluster. I can't delete them. And I search on Google, everybody says I have to delete the domain. But this may let me lose all indexes I built on it, right? Is there any way that I can delete some nodes but remain the others?
Upvotes: 3
Views: 2086
Reputation: 6413
You should be able to simply change the number of nodes in your ElasticSearch domain (Note: your data must fit into smaller amount of nodes)
The number of nodes visible in CloudWatch metrics can be misleading and AWS points this fact in ElasticSearch documentation:
Note
The Nodes metric is not accurate during changes to your cluster configuration and during routine maintenance for the service. This is expected behavior. The metric will report the correct number of cluster nodes soon.
I actually tried to simulate what you want to do.
When looking at nodes count metric, I could see that temporarily the amount of nodes in the ES domain was 6, but eventually went down to 2.
In case when number of nodes does not stabilize for a long time, I recommend contacting AWS.
Upvotes: 2