diff options
author | Jeff Cantrill <jcantril@redhat.com> | 2017-03-22 10:00:48 -0400 |
---|---|---|
committer | Jeff Cantrill <jcantril@redhat.com> | 2017-03-22 10:01:11 -0400 |
commit | f38eef42dcaf32402aec95c0da2fb4e0f7e5dfd5 (patch) | |
tree | e2519c4ccf43b3dcb3f462090f92f10aa89016e3 /roles/openshift_logging/vars | |
parent | 72dc9f4fdc014ccb72db92dd2d1e4135bad49af9 (diff) | |
download | openshift-f38eef42dcaf32402aec95c0da2fb4e0f7e5dfd5.tar.gz openshift-f38eef42dcaf32402aec95c0da2fb4e0f7e5dfd5.tar.bz2 openshift-f38eef42dcaf32402aec95c0da2fb4e0f7e5dfd5.tar.xz openshift-f38eef42dcaf32402aec95c0da2fb4e0f7e5dfd5.zip |
openshift_logging calculate min_masters to fail early on split brain
Diffstat (limited to 'roles/openshift_logging/vars')
-rw-r--r-- | roles/openshift_logging/vars/main.yaml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/roles/openshift_logging/vars/main.yaml b/roles/openshift_logging/vars/main.yaml index 07cc05683..c3064cee9 100644 --- a/roles/openshift_logging/vars/main.yaml +++ b/roles/openshift_logging/vars/main.yaml @@ -1,6 +1,8 @@ --- openshift_master_config_dir: "{{ openshift.common.config_base }}/master" es_node_quorum: "{{openshift_logging_es_cluster_size|int/2 + 1}}" +es_min_masters_default: "{{ (openshift_logging_es_cluster_size | int / 2 | round(0,'floor') + 1) | int }}" +es_min_masters: "{{ (openshift_logging_es_cluster_size == 1) | ternary(1, es_min_masters_default)}}" es_recover_after_nodes: "{{openshift_logging_es_cluster_size|int - 1}}" es_recover_expected_nodes: "{{openshift_logging_es_cluster_size|int}}" es_ops_node_quorum: "{{openshift_logging_es_ops_cluster_size|int/2 + 1}}" |