From 84199095716da416849ed4a2649ec8a2c878609d Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Tue, 4 Sep 2018 14:15:48 -0700 Subject: [PATCH] Set Ansible forks to 50 20 is working fine with plenty of ram/cpu to spare, increase to 50 to attempt to speed up the runtime. The environment variable should be used by default, but the "-f" option will override that, in the one case where we need it. Change-Id: Ie6a1d991a346702ec58cd716b0b94af5c93554ac --- run_all.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/run_all.sh b/run_all.sh index 0c7475b39e..0fff071b1e 100755 --- a/run_all.sh +++ b/run_all.sh @@ -21,6 +21,7 @@ set -e SYSTEM_CONFIG=/opt/system-config ANSIBLE_PLAYBOOKS=$SYSTEM_CONFIG/playbooks +ANSIBLE_FORKS=50 echo "--- begin run @ $(date -Is) ---" @@ -39,18 +40,18 @@ timeout -k 2m 120m ansible-playbook ${ANSIBLE_PLAYBOOKS}/update-system-config.ya timeout -k 2m 120m ansible-playbook ${ANSIBLE_PLAYBOOKS}/bridge.yaml # Run the base playbook everywhere -timeout -k 2m 120m ansible-playbook -f 20 ${ANSIBLE_PLAYBOOKS}/base.yaml +timeout -k 2m 120m ansible-playbook ${ANSIBLE_PLAYBOOKS}/base.yaml # Update the puppet version -timeout -k 2m 120m ansible-playbook -f 20 ${ANSIBLE_PLAYBOOKS}/update_puppet_version.yaml +timeout -k 2m 120m ansible-playbook ${ANSIBLE_PLAYBOOKS}/update_puppet_version.yaml # Run the git/gerrit/zuul sequence, since it's important that they all work together -timeout -k 2m 120m ansible-playbook -f 20 ${ANSIBLE_PLAYBOOKS}/remote_puppet_git.yaml +timeout -k 2m 120m ansible-playbook ${ANSIBLE_PLAYBOOKS}/remote_puppet_git.yaml # Run AFS changes separately so we can make sure to only do one at a time # (turns out quorum is nice to have) timeout -k 2m 120m ansible-playbook -f 1 ${ANSIBLE_PLAYBOOKS}/remote_puppet_afs.yaml # Run everything else. We do not care if the other things worked -timeout -k 2m 120m ansible-playbook -f 20 ${ANSIBLE_PLAYBOOKS}/remote_puppet_else.yaml +timeout -k 2m 120m ansible-playbook ${ANSIBLE_PLAYBOOKS}/remote_puppet_else.yaml echo "--- end run @ $(date -Is) ---" echo