乐趣区

关于elasticsearch:Elasticsearch集群运维常用API二

一、Snapshot
1、从已备份的快照中复原 indices

POST _snapshot/oss_bucket_name/snapshot_name/_restore?wait_for_completion=false
{
  "indices":"indices_name",
  "ignore_unavailable":"true",
  "index_settings": {
    "index.number_of_replicas": 0,
    "index.routing.allocation.total_shards_per_node":"10"
  },
  "include_global_state":false
}
退出移动版