# Relations between nodes, replicas and shards

**URL:** <https://discuss.elastic.co/t/relations-between-nodes-replicas-and-shards/9668>\
**Category:** Elasticsearch\
**Created:** [November 12, 2012, 10:34am UTC](https://discuss.elastic.co/t/relations-between-nodes-replicas-and-shards/9668 "2012-11-12T10:34:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcin\_Dojwa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marcin_dojwa/32/2307_2.png) [@Marcin\_Dojwa](https://discuss.elastic.co/u/Marcin_Dojwa)\
**Post date:** [November 12, 2012, 10:34am UTC](https://discuss.elastic.co/t/relations-between-nodes-replicas-and-shards/9668/1 "2012-11-12T10:34:29Z")

</div>

Hi,

Are there any relations between nodes, replicas and shards that asume  
minumum available nodes for specified number of shards and replicas in one  
index ? I have 1 index splited into 60 shards with 2 replicas. When I start  
first node none of the shards gets assigned. They are getting assigned  
after starting the second node. So the question is, is there any equation  
for minimum number of available nodes using number of shards and replicas ?

Thanks for the answer.

Best regards.

--

---

<div class="post-metadata">

**Author:** ![Rafal\_Kuc\_3](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rafal_kuc_3/32/799_2.png) [@Rafal\_Kuc\_3](https://discuss.elastic.co/u/Rafal_Kuc_3)\
**Post date:** [November 12, 2012, 10:46am UTC](https://discuss.elastic.co/t/relations-between-nodes-replicas-and-shards/9668/2 "2012-11-12T10:46:55Z")

</div>

Hello!

What is your gateway recovery configuration ? Can you try setting the  
following property:

gateway.recover\_after\_nodes: 1

That will tell ElasticSearch to start the recovery after a single node  
is present.

--  
Regards,  
Rafał Kuć  
Sematext :: [http://sematext.com/](http://sematext.com/) :: Solr - Lucene - Nutch - ElasticSearch

Hi,

Are there any relations between nodes, replicas and shards that asume minumum available nodes for specified number of shards and replicas in one index ? I have 1 index splited into 60 shards with 2 replicas. When I start first node none of the shards gets assigned. They are getting assigned after starting the second node. So the question is, is there any equation for minimum number of available nodes using number of shards and replicas ?

Thanks for the answer.

## Best regards.

--

---

<div class="post-metadata">

**Author:** ![Marcin\_Dojwa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marcin_dojwa/32/2307_2.png) [@Marcin\_Dojwa](https://discuss.elastic.co/u/Marcin_Dojwa)\
**Post date:** [November 12, 2012, 10:58am UTC](https://discuss.elastic.co/t/relations-between-nodes-replicas-and-shards/9668/3 "2012-11-12T10:58:32Z")

</div>

A have default (local) gateway. Do you recommend any other gateway?

I will check this (gateway.recover\_after\_nodes: 1) today. Thanks.

Best regards.

2012/11/12 Rafał Kuć [r.kuc@solr.pl](mailto:r.kuc@solr.pl)

> Hello!
> 
> What is your gateway recovery configuration ? Can you try setting the  
> following property:
> 
> gateway.recover\_after\_nodes: 1
> 
> That will tell Elasticsearch to start the recovery after a single node  
> is present.
> 
> --  
> Regards,  
> Rafał Kuć  
> Sematext :: [http://sematext.com/](http://sematext.com/) :: Solr - Lucene - Nutch - Elasticsearch
> 
> Hi,
> 
> Are there any relations between nodes, replicas and shards that asume  
> minumum available nodes for specified number of shards and replicas in one  
> index ? I have 1 index splited into 60 shards with 2 replicas. When I start  
> first node none of the shards gets assigned. They are getting assigned  
> after starting the second node. So the question is, is there any equation  
> for minimum number of available nodes using number of shards and replicas ?
> 
> Thanks for the answer.
> 
> ## Best regards.
> 
> --

--

---

<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:** [July 6, 2017, 3:04am UTC](https://discuss.elastic.co/t/relations-between-nodes-replicas-and-shards/9668/4 "2017-07-06T03:04:47Z")

</div>


