diff options
author | Michael Gugino <mgugino@redhat.com> | 2017-12-08 18:30:09 -0500 |
---|---|---|
committer | Michael Gugino <mgugino@redhat.com> | 2017-12-12 18:00:05 -0500 |
commit | a6d5c625956a5051b7bbd9fc48430b9df11084ee (patch) | |
tree | d6ad72c967c3fcf2bdecb195b93f03a4c4941b47 /roles/openshift_node/handlers | |
parent | 1dccaa2ad90b363cf7f2c04d5781693e69451ffb (diff) | |
download | openshift-a6d5c625956a5051b7bbd9fc48430b9df11084ee.tar.gz openshift-a6d5c625956a5051b7bbd9fc48430b9df11084ee.tar.bz2 openshift-a6d5c625956a5051b7bbd9fc48430b9df11084ee.tar.xz openshift-a6d5c625956a5051b7bbd9fc48430b9df11084ee.zip |
Refactor node upgrade to include less serial tasks
This commit moves the pulling of images, packages,
and updating config files into a non-serialized play.
The serialized play is now in charge of marking unschedulable,
draining, stopping and restarting services, and marking
schedulable.
If rpm install / container download takes 60s per host,
this will save 3 hours and 10 minutes at 200 hosts per cluster
and forks of 20 hosts.
Diffstat (limited to 'roles/openshift_node/handlers')
-rw-r--r-- | roles/openshift_node/handlers/main.yml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/openshift_node/handlers/main.yml b/roles/openshift_node/handlers/main.yml index 170a3dc6e..1d9797f84 100644 --- a/roles/openshift_node/handlers/main.yml +++ b/roles/openshift_node/handlers/main.yml @@ -4,11 +4,15 @@ name: NetworkManager state: restarted enabled: True + when: + - (not skip_node_svc_handlers | default(False) | bool) - name: restart dnsmasq systemd: name: dnsmasq state: restarted + when: + - (not skip_node_svc_handlers | default(False) | bool) - name: restart openvswitch systemd: @@ -47,3 +51,5 @@ - name: reload systemd units command: systemctl daemon-reload + when: + - (not skip_node_svc_handlers | default(False) | bool) |