可以用 update-index-settings API 动态修改副本数:

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

 

 

curl -XPUT http://192.168.0.200:9200/index_execution_20200414/_settings -d '{"number_of_replicas":1}'

 

 

curl -XPUT http://192.168.0.200:9200/index_execution_20200414/_settings -d '{"number_of_replicas":0}'

相关文章:

  • 2021-09-17
  • 2022-12-23
  • 2021-08-27
  • 2021-10-11
  • 2021-10-22
  • 2021-09-24
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-16
  • 2022-12-23
  • 2022-12-23
  • 2021-10-07
  • 2022-12-23
  • 2021-10-20
相关资源
相似解决方案