# Disallowing to specify number of shards & replicas at index creation time?

**URL:** https://discuss.elastic.co/t/disallowing-to-specify-number-of-shards-replicas-at-index-creation-time/262915
**Category:** Elasticsearch
**Created:** [February 2, 2021, 12:43am UTC](https://discuss.elastic.co/t/disallowing-to-specify-number-of-shards-replicas-at-index-creation-time/262915 "2021-02-02T00:43:35Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mucius](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mucius/32/83248_2.png) [@mucius](https://discuss.elastic.co/u/mucius)
#### Post date: [February 2, 2021, 12:43am UTC](https://discuss.elastic.co/t/disallowing-to-specify-number-of-shards-replicas-at-index-creation-time/262915/1 "2021-02-02T00:43:36Z")

</div>

Good day,

Is it possible to make Elasticsearch ignore number of replicas & number of shards specified by user during index creation? I'm interested to control these parameters on Elasticsearch side only (using templates), overriding any values that may be specified by clients.

Can it be done?

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [February 2, 2021, 1:10am UTC](https://discuss.elastic.co/t/disallowing-to-specify-number-of-shards-replicas-at-index-creation-time/262915/2 "2021-02-02T01:10:46Z")

</div>

Welcome to our community! 😃

No there's not. The only way would be to restrict creation of indices all together.

---

<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: [March 2, 2021, 1:11am UTC](https://discuss.elastic.co/t/disallowing-to-specify-number-of-shards-replicas-at-index-creation-time/262915/3 "2021-03-02T01:11:43Z")

</div>

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