-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Elasticsearch 5.x Cookbook
By :

In the Understanding cluster, replication and sharding recipe in Chapter 1, Getting Started, we discussed the Elasticsearch clusters and how to manage them in a red and yellow state.
Elasticsearch provides a convenient way to manage the cluster state, which is one of the first things to check if any problems occur.
You need an up-and-running Elasticsearch installation as we described in the Downloading and installing Elasticsearch recipe in Chapter 2, Downloading and Setup.
To execute curl
via command line you need to install curl
for your operating system.
For controlling the cluster health, we will perform the following steps:
To view the cluster health, the HTTP method is GET
and the curl
command is as follows:
curl -XGET 'http://localhost:9200/_cluster/health?pretty'
The result will be as follows:
{ "cluster_name" : "elasticsearch", "status" : "yellow", "timed_out" : false, ...
Change the font size
Change margin width
Change background colour