Cluster health API具有参数wait_for_status(根据文档)等待指定的群集状态.但是,我想等待特定索引达到某种状态.
如果我使用群集运行状况请求level=indices并且index=myindex等待是否仍在群集级别上运行?我想轮询状态并在达到状态后继续会产生相同的效果但是有更好的方法吗?
也可以将healthapi用于特定索引:
GET /_cluster/health/index_name?wait_for_status=green&timeout=10s
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3074 次 |
| 最近记录: |