# Index specific shard and replica settting

**URL:** https://discuss.elastic.co/t/index-specific-shard-and-replica-settting/4657
**Category:** Elasticsearch
**Created:** [June 20, 2011, 6:43am UTC](https://discuss.elastic.co/t/index-specific-shard-and-replica-settting/4657 "2011-06-20T06:43:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Weiwei\_Wang](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@Weiwei\_Wang](https://discuss.elastic.co/u/Weiwei_Wang)
#### Post date: [June 20, 2011, 6:43am UTC](https://discuss.elastic.co/t/index-specific-shard-and-replica-settting/4657/1 "2011-06-20T06:43:16Z")

</div>

currently i use elasticsearch.json to set the global shard and replica  
setting.

I have two indices and they have different total index size, e.g. 1T  
vs 5T, so i need to set them with different shard and replica setting,  
where should i put my configuration instead of sending a url post when  
create the index

---

<div class="post-metadata">

### Author: ![Karussell1](https://avatars.discourse-cdn.com/v4/letter/k/50afbb/32.png) [@Karussell1](https://discuss.elastic.co/u/Karussell1)
#### Post date: [June 20, 2011, 10:48am UTC](https://discuss.elastic.co/t/index-specific-shard-and-replica-settting/4657/2 "2011-06-20T10:48:52Z")

</div>

It is not possible to change the shard count after index creation. So  
you'll need to set it when creating the index.

For the other options see:

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

On Jun 20, 8:43 am, Weiwei Wang [ww.wang...@gmail.com](mailto:ww.wang...@gmail.com) wrote:

> currently i use elasticsearch.json to set the global shard and replica  
> setting.
> 
> I have two indices and they have different total index size, e.g. 1T  
> vs 5T, so i need to set them with different shard and replica setting,  
> where should i put my configuration instead of sending a url post when  
> create the index

---

<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, 4:03am UTC](https://discuss.elastic.co/t/index-specific-shard-and-replica-settting/4657/3 "2017-07-06T04:03:08Z")

</div>


