infrahouse_toolkit.cli.ih_elastic.cmd_cluster.cmd_commision_node package¶
Module contents¶
- infrahouse_toolkit.cli.ih_elastic.cmd_cluster.cmd_commision_node.complete_lifecycle_action(hook_name, result='CONTINUE')[source]¶
Completes the lifecycle hook. If it fails, cancel all instance refreshes in the autoscaling group.
- infrahouse_toolkit.cli.ih_elastic.cmd_cluster.cmd_commision_node.wait_until_complete(client: ClusterClient, hook_name: str = None, wait_time: int = 172800)[source]¶
Give up to
wait_timeseconds to Elasticsearch to fully join the cluster.- Parameters:
client (ClusterClient) – a cluster Elasticsearch client.
wait_time (int) – Time in second to wait until the cluster finishes shard relocation.
hook_name (str) – Lifecycle hook name to extend while waiting.
- Raises:
TimeoutError – if after
wait_time, Elasticsearch hasn’t moved all shards from the node.