es admin indices open close

本文介绍Elasticsearch中如何使用开放与关闭索引API来控制索引的状态。关闭索引可以减少集群开销,并阻止读写操作,而再次打开索引则会启动正常的恢复流程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

admin indices open close


The open and close index APIs allow to close an index, and later on opening it. A closed index has almost no overhead on the cluster (except for maintaining its metadata), and is blocked for read/write operations. A closed index can be opened which will then go through the normal recovery process.


The REST endpoint is /{index}/_close and /{index}/_open. For example:


curl -XPOST 'localhost:9200/my_index/_close'


curl -XPOST 'localhost:9200/my_index/_open'
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值