Difference between revisions of "Curl http://localhost:9200/ cluster/health?pretty"

From wikieduonline
Jump to navigation Jump to search
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 
  curl http://localhost:9200/_cluster/health?pretty
 
  curl http://localhost:9200/_cluster/health?pretty
 +
curl https://localhost:9200/_cluster/health?pretty
 +
 +
== Examples Opensearch/Elasticearch ==
 +
curl http://localhost:9200/_cluster/health\?pretty -k -u'admin:admin'
 +
{
 +
  "cluster_name" : "opensearch_homebrew",
 +
  "status" : "[[green]]",
 +
  "timed_out" : false,
 +
  "number_of_nodes" : 1,
 +
  "number_of_data_nodes" : 1,
 +
  "discovered_master" : true,
 +
  "discovered_cluster_manager" : true,
 +
  "active_primary_shards" : 0,
 +
  "active_shards" : 0,
 +
  "relocating_shards" : 0,
 +
  "initializing_shards" : 0,
 +
  "unassigned_shards" : 0,
 +
  "delayed_unassigned_shards" : 0,
 +
  "number_of_pending_tasks" : 0,
 +
  "number_of_in_flight_fetch" : 0,
 +
  "task_max_waiting_in_queue_millis" : 0,
 +
  "active_shards_percent_as_number" : 100.0
 +
}
  
 
* https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-health.html
 
* https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-health.html
Line 13: Line 36:
 
   "relocating_shards" : 0,
 
   "relocating_shards" : 0,
 
   "initializing_shards" : 0,
 
   "initializing_shards" : 0,
   "unassigned_shards" : 7,
+
   "[[unassigned_shards]]" : 7,
 
   "delayed_unassigned_shards" : 0,
 
   "delayed_unassigned_shards" : 0,
 
   "number_of_pending_tasks" : 0,
 
   "number_of_pending_tasks" : 0,
Line 36: Line 59:
 
== See also ==
 
== See also ==
 
* {{ES tr}}
 
* {{ES tr}}
* {{ES}}
+
* {{OS tr}}
  
 
[[Category:Elasticsearch]]
 
[[Category:Elasticsearch]]

Latest revision as of 17:15, 12 December 2023

Examples Opensearch/Elasticearch[edit]

curl http://localhost:9200/_cluster/health\?pretty -k -u'admin:admin'
{
 "cluster_name" : "opensearch_homebrew",
 "status" : "green",
 "timed_out" : false,
 "number_of_nodes" : 1,
 "number_of_data_nodes" : 1,
 "discovered_master" : true,
 "discovered_cluster_manager" : true,
 "active_primary_shards" : 0,
 "active_shards" : 0,
 "relocating_shards" : 0,
 "initializing_shards" : 0,
 "unassigned_shards" : 0,
 "delayed_unassigned_shards" : 0,
 "number_of_pending_tasks" : 0,
 "number_of_in_flight_fetch" : 0,
 "task_max_waiting_in_queue_millis" : 0,
 "active_shards_percent_as_number" : 100.0
}
{
 "cluster_name" : "elasticsearch",
 "status" : "yellow",
 "timed_out" : false,
 "number_of_nodes" : 2,
 "number_of_data_nodes" : 2,
 "active_primary_shards" : 14,
 "active_shards" : 21,
 "relocating_shards" : 0,
 "initializing_shards" : 0,
 "unassigned_shards" : 7,
 "delayed_unassigned_shards" : 0,
 "number_of_pending_tasks" : 0,
 "number_of_in_flight_fetch" : 0,
 "task_max_waiting_in_queue_millis" : 0,
 "active_shards_percent_as_number" : 75.0
}


{
 "cluster_name" : "elasticsearch",
 "status" : "red",


}

Related[edit]

See also[edit]

Advertising: