ES一般的な操作

著作権:許可なく複製することはできません。https://blog.csdn.net/qq_35958788/article/details/88077358

クラスタのヘルスチェック

curl http://localhost:9200/_cluster/health?pretty

{
  "cluster_name" : "xxxxx",
  "status" : "red",
  "timed_out" : false,
  "number_of_nodes" : 3,
  "number_of_data_nodes" : 3,
  "active_primary_shards" : 641,
  "active_shards" : 1282,
  "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" : 45.0
}

インデックスステータス

curl http://localhost:9200/_cat/indices?v

health status index                        uuid                   pri rep docs.count docs.deleted store.size pri.store.size
green open index-xxx  TI7GdCmCR6yba1aN9WEF9A 5 2     0    0   3.6kb   1.2kb

おすすめ

転載: blog.csdn.net/qq_35958788/article/details/88077358