加载中

Cluster Routing

action: cluster_routing
description: "Apply routing rules to the entire cluster"
options:
  routing_type:
  value: ...
  setting: enable
		
注意

空值和注释行将会采用默认值(如果存在的话)。如果设置了某项配置,但给定的操作并未使用它,该配置将被忽略。

此操作更改所选索引的分片路由分配。

有关详细信息,请参阅 集群级分片分配和路由设置

您可以选择将 wait_for_completion 设置为 True,以使 Curator 在继续之前等待分片路由完成

action: cluster_routing
description: "Apply routing rules to the entire cluster"
options:
  routing_type:
  value: ...
  setting: enable
  wait_for_completion: True
  max_wait: 300
  wait_interval: 10
		

此配置最多等待 300 秒以完成分片路由和重新分配,然后放弃。max_wait 值为 -1 将无限期等待。Curator 将按照 wait_interval 定义的 10 秒间隔轮询完成情况。

提示

有关此操作的 actionfile 示例,请参见 此处

© . This website operates independently and is not affiliated with or endorsed by Elasticsearch B.V. All brand names, logos, and trademarks are the property of their respective owners.