Is there a limit to the number of aliases (globally and / or per index) in elasticsearch?

I am starting to learn elasticsearch for my project. In particular, version 1.5. I am looking at using aliases for abstract client applications from the intricacies of index customization. I could get 20 to 50 indexes and 10 to 30 aliases per indexes. This would add up to 1,500 aliases.

I wonder if there is a limit to the number of aliases per index and / or per cluster.

Thanks in advance,

R.

+3


source to share


1 answer


In the Elasticsearch source code, I can see that the aliases are named String[]

. And arrays in Java seem to be quite large and I wouldn't bother with 1500 aliases :-).



What I would worry about is the state of the cluster. Elasticsearch nodes share all cluster state, which contains all mappings, all aliases, templates, etc. A large cluster state means more data to move over the network and more time to process / ingest the updated cluster state. 1,500 aliases don't sound too bad.

+3


source







All Articles