Skip to content
This repository was archived by the owner on Jan 1, 2024. It is now read-only.

Commit a724452

Browse files
authored
Allow to set replicaset healthy timeout (#132)
Added replicaset_healthy_timeout option that is used to specify number of seconds to wait for replicaset become healthy after editing it
1 parent 07227b0 commit a724452

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ README.md and examples/getting-started-app/README.md
1111
to use the newest tag with new release
1212
-->
1313

14+
### Added
15+
16+
- `replicaset_healthy_timeout` parameter to wait for replicaset to be
17+
healthy after editing it
18+
1419
## [1.6.0] - 2020-11-10
1520

1621
### Added

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ Configuration format is described in detail in the
180180
* `stateboard` (`boolean`, optional, default: `false`): boolean flag that indicates
181181
that the instance is a [stateboard](#stateboard-instance);
182182
* `instance_start_timeout` (`number`, optional, default: 60): time in seconds to wait for instance to be started;
183+
* `replicaset_healthy_timeout` (`number`, optional, default: 30): time in seconds to wait for replicaset to be healthy after editing it;
183184
* `replicaset_alias` (`string`, optional): replicaset alias, will be displayed in Web UI;
184185
* `failover_priority` (`list-of-string`): failover priority;
185186
* `roles` (`list-of-strings`, required if `replicaset_alias` specified): roles to be enabled on the replicaset;

defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ restarted: null
55
expelled: false
66
stateboard: false
77
instance_start_timeout: 60
8+
replicaset_healthy_timeout: 30

molecule/default/hosts.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ all:
99
become: true
1010
become_user: root
1111

12+
replicaset_healthy_timeout: 10
13+
1214
# common cartridge opts
1315
cartridge_app_name: myapp
1416
cartridge_cluster_cookie: secret-cookie

tasks/manage_replicaset.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
cartridge_manage_replicaset:
44
replicaset: '{{ replicaset }}'
55
control_sock: '{{ cartridge_app_name | get_instance_control_sock(join_host) }}'
6+
healthy_timeout: '{{ replicaset_healthy_timeout }}'
67
delegate_to: '{{ join_host }}'
78
tags: cartridge-replicasets

0 commit comments

Comments
 (0)