# Too few shards causing transport errors

**URL:** <https://discuss.elastic.co/t/too-few-shards-causing-transport-errors/22439>\
**Category:** Elasticsearch\
**Created:** [February 27, 2015, 6:54pm UTC](https://discuss.elastic.co/t/too-few-shards-causing-transport-errors/22439 "2015-02-27T18:54:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harlin\_Brandvold](https://avatars.discourse-cdn.com/v4/letter/h/d26b3c/32.png) [@Harlin\_Brandvold](https://discuss.elastic.co/u/Harlin_Brandvold)\
**Post date:** [February 27, 2015, 6:54pm UTC](https://discuss.elastic.co/t/too-few-shards-causing-transport-errors/22439/1 "2015-02-27T18:54:59Z")

</div>

Hello,

I am running elastcisearch 1.4.3 and injecting into my indices using  
netflix suro.

I am creating a template that sets the number of shards per node per index  
to be exactly one (2 shards, 1 replica with 4 data nodes), therefore only 2  
of the 4 nodes have primary shards.

For some reason this setup causes a NoNodeAvailableException when I am  
indexing. As soon as I bring the shard count up to at least 4 shards with 1  
replica the problem is solved.

Our goal was to have as few shards per node as possible in order to  
maximize performance we can't seem to get it to work with only 1 shard per  
node (per index)

Any thoughts on what might be causing this?

Some info on our setup:  
We have 4 m1.xlarge instances in AWS (15GB Ram, 4core CPUs, 1.6TB HDD)  
7.5 GB Memory dedicated to ES  
mlockall: true  
Index Refresh interval: 30s  
Mulicast Discovery: Disabled

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/5afdd9ca-cde5-464b-96a9-293e884568a9%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5afdd9ca-cde5-464b-96a9-293e884568a9%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:29am UTC](https://discuss.elastic.co/t/too-few-shards-causing-transport-errors/22439/2 "2017-07-06T00:29:26Z")

</div>

Closed on July 6, 2017, 12:29am UTC


