# Is there a limit to the number of indexes an ElasticSearch alias can point to?

**URL:** <https://discuss.elastic.co/t/is-there-a-limit-to-the-number-of-indexes-an-elasticsearch-alias-can-point-to/9817>\
**Category:** Elasticsearch\
**Created:** [November 25, 2012, 8:14pm UTC](https://discuss.elastic.co/t/is-there-a-limit-to-the-number-of-indexes-an-elasticsearch-alias-can-point-to/9817 "2012-11-25T20:14:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jieren](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jieren](https://discuss.elastic.co/u/jieren)\
**Post date:** [November 25, 2012, 8:14pm UTC](https://discuss.elastic.co/t/is-there-a-limit-to-the-number-of-indexes-an-elasticsearch-alias-can-point-to/9817/1 "2012-11-25T20:14:01Z")

</div>

I have this alias that I want to point to 60 indexes. At 21 indexes, I  
start getting Execution Rejected exceptions.

Is this because of a 20 index limit in the alias API?

Any help would be much appreciated,  
Jieren

--

---

<div class="post-metadata">

**Author:** ![karmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/karmi/32/44951_2.png) [@karmi](https://discuss.elastic.co/u/karmi)\
**Post date:** [November 26, 2012, 8:32am UTC](https://discuss.elastic.co/t/is-there-a-limit-to-the-number-of-indexes-an-elasticsearch-alias-can-point-to/9817/2 "2012-11-26T08:32:25Z")

</div>

Hi,

there's no such hard limit -- see the demo in  
Ruby: [http://beta.pastie.org/5436199](http://beta.pastie.org/5436199). Maybe you're hitting some other limit  
(open connections, etc) -- please post more info.

Karel

On Sunday, November 25, 2012 9:14:01 PM UTC+1, jieren wrote:

> I have this alias that I want to point to 60 indexes. At 21 indexes, I  
> start getting Execution Rejected exceptions.
> 
> Is this because of a 20 index limit in the alias API?
> 
> Any help would be much appreciated,  
> Jieren

--

---

<div class="post-metadata">

**Author:** ![karmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/karmi/32/44951_2.png) [@karmi](https://discuss.elastic.co/u/karmi)\
**Post date:** [November 26, 2012, 8:35am UTC](https://discuss.elastic.co/t/is-there-a-limit-to-the-number-of-indexes-an-elasticsearch-alias-can-point-to/9817/3 "2012-11-26T08:35:51Z")

</div>

> Any help would be much appreciated

It's generally considered a better pratice to not cross-post between  
StackOverflow [1] and the mailing list, since it's harder for people  
interested in your problem to follow multiple channels.

Karel

[1] [Is there a limit to the number of indexes an ElasticSearch alias can point to? - Stack Overflow](http://stackoverflow.com/questions/13554845/is-there-a-limit-to-the-number-of-indexes-an-elasticsearch-alias-can-point-to)

--

---

<div class="post-metadata">

**Author:** ![otisg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/otisg/32/492_2.png) [@otisg](https://discuss.elastic.co/u/otisg)\
**Post date:** [November 27, 2012, 4:24am UTC](https://discuss.elastic.co/t/is-there-a-limit-to-the-number-of-indexes-an-elasticsearch-alias-can-point-to/9817/4 "2012-11-27T04:24:32Z")

</div>

Hi,

You may have hit the max size of some thread pool. Compare what you have  
in the elasticsearch.yml and what stats API gives you.

## Otis

ELASTICSEARCH Performance Monitoring - [Sematext Monitoring | Infrastructure Monitoring Service](http://sematext.com/spm/index.html)  
Search Analytics - [Cloud Monitoring Tools & Services | Sematext](http://sematext.com/search-analytics/index.html)

On Sunday, November 25, 2012 3:14:01 PM UTC-5, jieren wrote:

> I have this alias that I want to point to 60 indexes. At 21 indexes, I  
> start getting Execution Rejected exceptions.
> 
> Is this because of a 20 index limit in the alias API?
> 
> Any help would be much appreciated,  
> Jieren

--

---

<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, 3:02am UTC](https://discuss.elastic.co/t/is-there-a-limit-to-the-number-of-indexes-an-elasticsearch-alias-can-point-to/9817/5 "2017-07-06T03:02:53Z")

</div>


