标签:gre 需要 prim 参考文献 ide csharp elastic signed http
GET /_cluster/health
得到的结果:
{ "cluster_name": "es", "status": "green", "timed_out": false, "number_of_nodes": 3, "number_of_data_nodes": 3, "active_primary_shards": 130, "active_shards": 266, "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 }
status是我们最关心的,指示着当前集群在总体上是否工作正常。它的三种颜色含义如下:
PUT /blogs { "settings" : { "number_of_shards" : 3, //三个主分片 "number_of_replicas" : 1 //每个主分片备份一个分片 } }
PUT /blogs/_settings { "number_of_replicas" : 2 }
参考文献:ElasticSearch权威指南
标签:gre 需要 prim 参考文献 ide csharp elastic signed http
原文地址:https://www.cnblogs.com/parent-absent-son/p/10104296.html