# What are "number\_of\_routing\_shards"?

**URL:** <https://discuss.elastic.co/t/what-are-number-of-routing-shards/120506>\
**Category:** Beats\
**Tags:** winlogbeat\
**Created:** [February 19, 2018, 6:19pm UTC](https://discuss.elastic.co/t/what-are-number-of-routing-shards/120506 "2018-02-19T18:19:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Callahan](https://avatars.discourse-cdn.com/v4/letter/c/dbc845/32.png) [@Callahan](https://discuss.elastic.co/u/Callahan)\
**Post date:** [February 19, 2018, 6:19pm UTC](https://discuss.elastic.co/t/what-are-number-of-routing-shards/120506/1 "2018-02-19T18:19:56Z")

</div>

Hi,

I've looked online for answers to this but can't find anything that tells me definitively. I'm looking for an explanation of what

`"number_of_routing_shards": 30`

means. I'm reducing the default template to 1 shard (we won't have huge amounts of data) but I'd like to know what the routing shards relate to before I commit the change.

Thanks.

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [February 19, 2018, 7:52pm UTC](https://discuss.elastic.co/t/what-are-number-of-routing-shards/120506/2 "2018-02-19T19:52:38Z")

</div>

It's related to index splitting. For more details see the [Elasticsearch Split Index docs](https://www.elastic.co/guide/en/elasticsearch/reference/6.x/indices-split-index.html#indices-split-index). In order to allow for index splitting (on an existing shard), one must have this setting set at index creation time. Factorising the value of `number_of_routing_shards / shards = a * b * c * ...` gives you the potential split factors (`a`, `b`, `c` etc.) you can use in the lifetime of an index.

---

<div class="post-metadata">

**Author:** ![loren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/loren/32/44942_2.png) [@loren](https://discuss.elastic.co/u/loren)\
**Post date:** [February 20, 2018, 6:33pm UTC](https://discuss.elastic.co/t/what-are-number-of-routing-shards/120506/3 "2018-02-20T18:33:16Z")

</div>

Apologies for piling on to this thread, but I'm also trying to learn about `number_of_routing_shards`. Is there any reason _not_ to create an index with this setting? If there's no performance/storage penalty, it seems like one always ought to use it, just to have the option of splitting down the road.

---

<div class="post-metadata">

**Author:** ![Callahan](https://avatars.discourse-cdn.com/v4/letter/c/dbc845/32.png) [@Callahan](https://discuss.elastic.co/u/Callahan)\
**Post date:** [February 20, 2018, 7:31pm UTC](https://discuss.elastic.co/t/what-are-number-of-routing-shards/120506/4 "2018-02-20T19:31:34Z")

</div>

From what I've read since, it's being abandoned in V7.0 anyway (presumably it will be set as a default to allow for shard splitting in the future without the need for you to manually define it). With that in mind, I just disabled it on my template. If you click the link in Steffen's link, you'll see the note at the top of the article about it being dropped in the future.

---

<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 20, 2018, 7:31pm UTC](https://discuss.elastic.co/t/what-are-number-of-routing-shards/120506/5 "2018-03-20T19:31:46Z")

</div>

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