Reputation: 759
I'm starting to study elasticsearch for my project. Specifically version 1.5. I'm considering using aliases to abstract client apps from the intricacies of index setup. I might end up with 20 to 50 indexes and 10 to 30 aliases per indexes. This would amount to 1500 aliases.
I wonder if there is a limit in the number of aliases per indexes and or per cluster.
Thanks in advance,
P.
Upvotes: 4
Views: 1114
Reputation: 52368
In Elasticsearch source code I see aliases are referenced as String[]
. And arrays in Java seem to have quite a large size and I wouldn't worry about 1500 aliases :-).
What I would worry about, though, is the cluster state. Elasticsearch nodes share between them the entire cluster state which contains all the mappings, all the aliases, templates etc. A large cluster state means more data to be moved around on the network and more time to process/ingest the updated cluster state. 1500 aliases doesn't sound too bad.
Upvotes: 3