{ "index": { "number_of_replicas": 0 } }" -H "Content-Type: application/json"
时间: 2023-08-24 10:09:22 浏览: 184
application.json
要将一个索引的副本数设置为0,可以使用命令:
curl -XPUT 'http://192.168.56.121:9200/testindex/_settings' -H 'Content-Type: application/json' -d ' { "index" : { "number_of_replicas" : 0 } } '
这将把testindex索引的副本数设置为0,即不再有任何副本。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [es 集群 number_of_shards、number_of_replicas](https://blog.csdn.net/ctypyb2002/article/details/106212807)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文