Sharon Tan
Sharon Tan

Reputation: 89

How to delete some nodes on AWS ElasticSearch cluster?

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

Answers (1)

Michal Gasek
Michal Gasek

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.

  1. I created ES domain with 4 nodes
  2. Once the domain was created, I changed the number of nodes to 2

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.

enter image description here

In case when number of nodes does not stabilize for a long time, I recommend contacting AWS.

Upvotes: 2

Related Questions