Today, my elasticsearch 0.19.9 cluster was down because of 'no free space'.
I am seeing shards are not allocated with balance. My question is how to
monitor free space of each instance and what the best method is to prevent
'no free space', just deleting old index frequently and checking free space
in each instance?
When I chekced the free space percentage using 'df -H' command, many
instances were showing less than 70% disk usage but one instance got no
empty space. Please give me the guideline regarding free space monitoring.
Are you nodes not equal in terms of disk capacity? Do you have different
indices with different shard counts?
Elasticsearch assumes every node in the cluster are heterogeneous. Shard
allocation is based purely on placing shards in an even distribution among
the nodes. The size of the disk, the number of shards per index, and the
number of indices do not matter. If one index's shard size is bigger than
another index's shard size, then the shard allocator could potentially put
the more heavyweight shards together on one machine.
Elasticsearch does not provide any monitoring tools that provide
notification (perhaps SPM does?). You should setup monitoring software on
your machines for OS level stats (CPU/mem/disk).
Today, my elasticsearch 0.19.9 cluster was down because of 'no free
space'. I am seeing shards are not allocated with balance. My question is
how to monitor free space of each instance and what the best method is to
prevent 'no free space', just deleting old index frequently and checking
free space in each instance?
When I chekced the free space percentage using 'df -H' command, many
instances were showing less than 70% disk usage but one instance got no
empty space. Please give me the guideline regarding free space monitoring.
Elasticsearch assumes every node in the cluster are heterogeneous. Shard
allocation is based purely on placing shards in an even distribution among
the nodes. The size of the disk, the number of shards per index, and the
number of indices do not matter. If one index's shard size is bigger than
another index's shard size, then the shard allocator could potentially put
the more heavyweight shards together on one machine.
Elasticsearch does not provide any monitoring tools that provide
notification (perhaps SPM does?). You should setup monitoring software on
your machines for OS level stats (CPU/mem/disk).
Cheers,
Ivan
On Sat, Sep 29, 2012 at 6:57 PM, Jae <meta...@gmail.com <javascript:>>wrote:
Hi
Today, my elasticsearch 0.19.9 cluster was down because of 'no free
space'. I am seeing shards are not allocated with balance. My question is
how to monitor free space of each instance and what the best method is to
prevent 'no free space', just deleting old index frequently and checking
free space in each instance?
When I chekced the free space percentage using 'df -H' command, many
instances were showing less than 70% disk usage but one instance got no
empty space. Please give me the guideline regarding free space monitoring.
Correct, if you use SPM for ES (or any other flavour of SPM for that
matter) you can monitor the disk space and set an alert when its usage
reaches N%, say 90%, so you can be automatically notified instead of having
to proactively watch disk space. For more info about SPM, check the URL in
the sig or email off-list.
On the ES side, the new ES has a mechanism to manually moved shards around
the cluster, which may be handy for you here.
On Monday, October 1, 2012 1:11:03 PM UTC-4, Ivan Brusic wrote:
Are you nodes not equal in terms of disk capacity? Do you have different
indices with different shard counts?
Elasticsearch assumes every node in the cluster are heterogeneous. Shard
allocation is based purely on placing shards in an even distribution among
the nodes. The size of the disk, the number of shards per index, and the
number of indices do not matter. If one index's shard size is bigger than
another index's shard size, then the shard allocator could potentially put
the more heavyweight shards together on one machine.
Elasticsearch does not provide any monitoring tools that provide
notification (perhaps SPM does?). You should setup monitoring software on
your machines for OS level stats (CPU/mem/disk).
Cheers,
Ivan
On Sat, Sep 29, 2012 at 6:57 PM, Jae <meta...@gmail.com <javascript:>>wrote:
Hi
Today, my elasticsearch 0.19.9 cluster was down because of 'no free
space'. I am seeing shards are not allocated with balance. My question is
how to monitor free space of each instance and what the best method is to
prevent 'no free space', just deleting old index frequently and checking
free space in each instance?
When I chekced the free space percentage using 'df -H' command, many
instances were showing less than 70% disk usage but one instance got no
empty space. Please give me the guideline regarding free space monitoring.
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.