From f7341249627cd5f745fa74a15bd7630dc7d6ffac Mon Sep 17 00:00:00 2001 From: liubo0127 Date: Wed, 3 Jul 2019 14:33:33 +0800 Subject: [PATCH] Add parameters to pump config --- conf/pump-cluster.yml | 5 +++++ roles/check_system_static/tasks/main.yml | 4 ++-- roles/pump_cluster/vars/default.yml | 5 +++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/conf/pump-cluster.yml b/conf/pump-cluster.yml index 7e647b5f0..e25af3283 100644 --- a/conf/pump-cluster.yml +++ b/conf/pump-cluster.yml @@ -22,3 +22,8 @@ security: storage: # Set to true (by default) to guarantee reliability by ensuring binlog data is flushed to the disk. # sync-log: true + + # stop write when disk available space less than the configured size + # 42 MB -> 42000000, 42 mib -> 44040192 + # default: 10 gib + # stop-write-at-available-space = "10 gib" diff --git a/roles/check_system_static/tasks/main.yml b/roles/check_system_static/tasks/main.yml index 19bb6ba3c..209fdc2e9 100644 --- a/roles/check_system_static/tasks/main.yml +++ b/roles/check_system_static/tasks/main.yml @@ -71,11 +71,11 @@ when: ansible_version.full | version_compare('2.4.2', '<') - name: Get if jmespath info[1] - shell: pip list | grep -i jmespath | wc -l + shell: pip list | grep -iw jmespath | wc -l register: jmespath_exist - name: Get if jinja2 exist[1] - shell: pip list | grep -i jinja2 | wc -l + shell: pip list | grep -iw jinja2 | wc -l register: jinja2_exist - name: Preflight check - Fail when jmespath or jinja2 doesn't exist diff --git a/roles/pump_cluster/vars/default.yml b/roles/pump_cluster/vars/default.yml index 35cb6f18b..5a03489e7 100644 --- a/roles/pump_cluster/vars/default.yml +++ b/roles/pump_cluster/vars/default.yml @@ -22,3 +22,8 @@ security: storage: # Set to true (by default) to guarantee reliability by ensuring binlog data is flushed to the disk. # sync-log: true + + # stop write when disk available space less than the configured size + # 42 MB -> 42000000, 42 mib -> 44040192 + # default: 10 gib + # stop-write-at-available-space = "10 gib"