大数据Elasticsearch之修改副本分片的数量

74 阅读1分钟

发HTTP请求修改

PUT /myindex/_settings
{
  "number_of_replicas": 1
}

即可把myindex索引的副本分片设置为1份