I have an Elasticsearch cluster of five nodes. I have the configuration on
each set the same with 5 shards per index and 4 replicas. The idea is that
every node will have every shard.
Four of my nodes have five shards. One node has ALL of them primary. One
node has NOTHING. And then, of course, I have 5 unallocated shards.
I reload a new index every day and this is exactly how it allocates shards
every time.
I need to find out why the one node isn't getting any shards. That's bad.
It would be easy for me to ask why this is happening - and if anyone knows,
that would be fantastic. But as I can't seem to find ANYTHING online or in
the documentation to explain this, I must ask, perhaps, how I can diagnose
it? Any clues? Anything I can look at to give a clue here?
I found my own answer - but for anyone who might have this issue, ensure
that all nodes are running the same version of ES. Apparently when they're
not, older versions will not get shards.
"The upgrades sometimes include upgrades to the Lucene libraries used by
Elasticsearch to access the index files, and after an index file has been
updated to work with a new version of Lucene, it may not be accessible to
the versions of Lucene present in earlier Elasticsearch releases."
I found my own answer - but for anyone who might have this issue, ensure
that all nodes are running the same version of ES. Apparently when they're
not, older versions will not get shards.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.