Hello,
I have been writing a script that for properly restarting all the nodes of
an ES cluster and I have noticed a few particular things in the process.
enable back shard allocation once the node rejoins the cluster
wait for the cluster to be OK before proceeding to the next node
However, one of the indices of the cluster is stored in memory.
When trying to disable shard allocation, we get an IllegalStateException
("Free bytes [X] cannot be less than 0 or greater than total bytes [Y]").
Such behaviour does not happens in a cluster when all the indices are
stored on disk.
When using 3 replicas for every shard, shutting down a node with an index
in memory should not be a problem, since even if the content is lost during
the shutdown, it should be able to retrieve the information from the
replicas when the node rejoins the cluster.
I do believe this is an issue from elasticsearch.
Can anyone confirm it or show me some light on the issue before opening an
issue?
Hello,
I have been writing a script that for properly restarting all the nodes of
an ES cluster and I have noticed a few particular things in the process.
The process is quite simple, it is the same described in the official ES
documentation
enable back shard allocation once the node rejoins the cluster
wait for the cluster to be OK before proceeding to the next node
However, one of the indices of the cluster is stored in memory.
When trying to disable shard allocation, we get an IllegalStateException
("Free bytes cannot be less than 0 or greater than total bytes [Y]").
Such behaviour does not happens in a cluster when all the indices are
stored on disk.
When using 3 replicas for every shard, shutting down a node with an index
in memory should not be a problem, since even if the content is lost during
the shutdown, it should be able to retrieve the information from the
replicas when the node rejoins the cluster.
I do believe this is an issue from elasticsearch.
Can anyone confirm it or show me some light on the issue before opening an
issue?
Hello,
I have been writing a script that for properly restarting all the nodes
of an ES cluster and I have noticed a few particular things in the process.
The process is quite simple, it is the same described in the official ES
documentation
enable back shard allocation once the node rejoins the cluster
wait for the cluster to be OK before proceeding to the next node
However, one of the indices of the cluster is stored in memory.
When trying to disable shard allocation, we get an IllegalStateException
("Free bytes cannot be less than 0 or greater than total bytes [Y]").
Such behaviour does not happens in a cluster when all the indices are
stored on disk.
When using 3 replicas for every shard, shutting down a node with an index
in memory should not be a problem, since even if the content is lost during
the shutdown, it should be able to retrieve the information from the
replicas when the node rejoins the cluster.
I do believe this is an issue from elasticsearch.
Can anyone confirm it or show me some light on the issue before opening
an issue?
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.