Chapter 10. Managing Clusters and Nodes

In this chapter, we will cover the following recipes:

  • Controlling cluster health via API
  • Controlling cluster state via API
  • Getting cluster nodes information via API
  • Getting node statistics via API
  • Using the task management API
  • Hot thread API
  • Managing the shard allocation
  • Monitoring segments with segment API
  • Cleaning the cache


In the Elasticsearch ecosystem, it's important to monitor nodes and clusters to manage and improve their performance and state. There are several issues that can arise at cluster level, such as:

  • Node overheads : Some nodes can have too many shards allocated and become a bottleneck for the entire cluster
  • Node shutdown : This can happen for many ...

Get Elasticsearch 5.x Cookbook - Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.