# How to set Elasticsearch shards and replica

**URL:** https://discuss.elastic.co/t/how-to-set-elasticsearch-shards-and-replica/177539
**Category:** Elasticsearch
**Created:** [April 18, 2019, 9:28pm UTC](https://discuss.elastic.co/t/how-to-set-elasticsearch-shards-and-replica/177539 "2019-04-18T21:28:55Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![flash](https://avatars.discourse-cdn.com/v4/letter/f/f475e1/32.png) [@flash](https://discuss.elastic.co/u/flash)
#### Post date: [April 18, 2019, 9:28pm UTC](https://discuss.elastic.co/t/how-to-set-elasticsearch-shards-and-replica/177539/1 "2019-04-18T21:28:55Z")

</div>

We are using Amazon Elasticsearch. There's a question raised for scaling and query performance.

As we are adding more and more fields/document, do we need to customize our own number of shards or replicas?

Is there a good configurations for the number of shards or replica?

Thanks!

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [April 19, 2019, 2:49am UTC](https://discuss.elastic.co/t/how-to-set-elasticsearch-shards-and-replica/177539/2 "2019-04-19T02:49:57Z")

</div>

May I suggest you look at the following resources about sizing:

[https://www.elastic.co/elasticon/conf/2016/sf/quantitative-cluster-sizing](https://www.elastic.co/elasticon/conf/2016/sf/quantitative-cluster-sizing)

> **[How many shards should I have in my Elasticsearch cluster?
	  	 | Elastic](https://www.elastic.co/blog/how-many-shards-should-i-have-in-my-elasticsearch-cluster)**
>
> Elasticsearch is a very versatile platform, that supports a variety of use cases, and provides great flexibility around data organisation and replication strategies. This flexibility can however somet...

https://www.slideshare.net/slideshow/embed_code/key/vR0XKDq4TGa77z

And [https://www.elastic.co/webinars/using-rally-to-get-your-elasticsearch-cluster-size-right](https://www.elastic.co/webinars/using-rally-to-get-your-elasticsearch-cluster-size-right)

BTW did you look at [https://www.elastic.co/cloud](https://www.elastic.co/cloud) and [https://aws.amazon.com/marketplace/pp/B01N6YCISK](https://aws.amazon.com/marketplace/pp/B01N6YCISK) ?

Cloud by elastic is one way to have access to all features, all managed by us. Think about what is there yet like Security, Monitoring, Reporting, SQL, Canvas, APM, Logs UI, Infra UI and what is coming next 🙂 ...

---

<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: [May 17, 2019, 2:50am UTC](https://discuss.elastic.co/t/how-to-set-elasticsearch-shards-and-replica/177539/3 "2019-05-17T02:50:02Z")

</div>

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