Add retry_stagger var for failed download/pushes.

* Add the retry_stagger var to tweak push and retry time strategies.
* Add large deployments related docs.

Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
This commit is contained in:
Bogdan Dobrelya
2016-09-15 11:23:27 +02:00
parent 9926395e5b
commit 390764c2b4
8 changed files with 30 additions and 9 deletions

View File

@@ -22,7 +22,7 @@
register: get_url_result
until: "'OK' in get_url_result.msg or 'file already exists' in get_url_result.msg"
retries: 4
delay: "{{ 20 | random + 3 }}"
delay: "{{ retry_stagger | random + 3 }}"
when: "{{ download.enabled|bool and not download.container|bool }}"
delegate_to: "{{ groups['kube-master'][0] if download_run_once|bool else omit }}"
run_once: "{{ download_run_once|bool }}"
@@ -63,7 +63,7 @@
register: pull_task_result
until: pull_task_result.rc == 0
retries: 4
delay: "{{ 20 | random + 3 }}"
delay: "{{ retry_stagger | random + 3 }}"
when: "{{ download.enabled|bool and download.container|bool }}"
delegate_to: "{{ groups['kube-master'][0] if download_run_once|bool else omit }}"
run_once: "{{ download_run_once|bool }}"
@@ -85,7 +85,7 @@
register: get_task
until: get_task|success
retries: 4
delay: "{{ 20 | random + 3 }}"
delay: "{{ retry_stagger | random + 3 }}"
when: ansible_os_family != "CoreOS" and inventory_hostname != groups['kube-master'][0] and download_run_once|bool
- name: Download | load container images