# Add New Node

**URL:** <https://discuss.elastic.co/t/add-new-node/208606>\
**Category:** Elasticsearch\
**Created:** [November 20, 2019, 4:15am UTC](https://discuss.elastic.co/t/add-new-node/208606 "2019-11-20T04:15:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hoang\_Ph\_m](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hoang_ph_m/32/57995_2.png) [@Hoang\_Ph\_m](https://discuss.elastic.co/u/Hoang_Ph_m)\
**Post date:** [November 20, 2019, 4:15am UTC](https://discuss.elastic.co/t/add-new-node/208606/1 "2019-11-20T04:15:14Z")

</div>

Hello! My name is Hoang. I'm a newbie. I doing a project and use ElasticSearch. In Cluster, these are three nodes. I config, each shard is (3 primary shard and 2 replica). Now, I want to add a new node to Cluster.  
Question:

- How ElasticSearch allocate will allocate shards (Primary Shards + Replica Shards)?
- Do I need to change the number of shards? (Example: 4 nodes =\> (4 Primary Shards + ....))

Thank you so much!

---

<div class="post-metadata">

**Author:** ![HenningAndersen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/henningandersen/32/48188_2.png) [@HenningAndersen](https://discuss.elastic.co/u/HenningAndersen)\
**Post date:** [November 20, 2019, 12:30pm UTC](https://discuss.elastic.co/t/add-new-node/208606/2 "2019-11-20T12:30:02Z")

</div>

Hi @Hoang_Ph_m,

Elasticsearch will automatically balance the existing shards over all 4 nodes if you add another node.

The number of primary shards do not have to be increased. The right number of primary shards depends on your workload and is best found through experimenting/benchmarking. It is typically a good idea to keep the number of primary shards low (but high enough to fan out the load necessary). This [blog post](https://www.elastic.co/blog/how-many-shards-should-i-have-in-my-elasticsearch-cluster) has more info on the subject.

The number of replica shards also do not need to be increased. The primary factor here is availability (with 2 replicas, you can already lose two data nodes without losing data availability (depending on your master node setup though)).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 18, 2019, 12:30pm UTC](https://discuss.elastic.co/t/add-new-node/208606/3 "2019-12-18T12:30:14Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
