elasticsearch的日常维护参数
文章发布较早,内容可能过时,阅读注意甄别。
- 将副本重置为 0,如果数据重要性不是特别大,可以采用这个配置,以释放 es 写的压力。
PUT /test-index*/_settings
{
"settings" : {
"number_of_replicas" : 0
}
}
1
2
3
4
5
6
2
3
4
5
6
- 设置分片在每个节点上都有
PUT /test-index/_settings
{
"index.routing.allocation.total_shards_per_node":1
}
1
2
3
4
2
3
4
未完……
![微信](https://t.eryajf.net/imgs/2023/01/834f12107ebc432a.png)
![支付宝](https://t.eryajf.net/imgs/2023/01/fc21022aadd292ca.png)
上次更新: 2024/07/04, 22:40:37
- 01
- 学习周刊-总第169期-2024年第30周07-26
- 02
- 使用docker快速部署rancher-2.8.5并投入生产实践07-20
- 03
- 学习周刊-总第168期-2024年第29周07-18