Update the playbook serial settings
Many of our playbooks enfore the serial deployment of services. While
this is useful in certain cases It's super slow on large scale
deployments. This change modifies our serial settings so that many of
the services are deployed against 1 node first and then all the rest of
the services where it makes.
Change-Id: I842e98ebc29e0da0c3d7af3fd1d7f5592dfb3aa3
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
(cherry picked from commit eb81d64351
)
This commit is contained in:
parent
7e5af2a90e
commit
3c348cbce6
|
@ -78,7 +78,7 @@
|
|||
include: common-playbooks/cinder.yml
|
||||
vars:
|
||||
cinder_hosts: "cinder_volume:!cinder_scheduler:!cinder_api"
|
||||
cinder_serial: "{{ cinder_backend_serial | default('1') }}"
|
||||
cinder_serial: "{{ cinder_backend_serial | default('1', '100%') }}"
|
||||
|
||||
|
||||
|
||||
|
@ -86,7 +86,7 @@
|
|||
include: common-playbooks/cinder.yml
|
||||
vars:
|
||||
cinder_hosts: "cinder_backup:!cinder_volume:!cinder_scheduler:!cinder_api"
|
||||
cinder_serial: "{{ cinder_backend_serial | default('1') }}"
|
||||
cinder_serial: "{{ cinder_backend_serial | default(['1', '100%']) }}"
|
||||
|
||||
|
||||
|
||||
|
@ -97,7 +97,6 @@
|
|||
- name: Refresh local facts after all software changes are made
|
||||
hosts: cinder_all
|
||||
gather_facts: no
|
||||
max_fail_percentage: 20
|
||||
user: root
|
||||
environment: "{{ deployment_environment_variables | default({}) }}"
|
||||
tags:
|
||||
|
@ -140,7 +139,7 @@
|
|||
- name: Restart cinder agents to ensure new RPC object version is used
|
||||
hosts: cinder_backup,cinder_volume,cinder_scheduler
|
||||
gather_facts: no
|
||||
serial: "{{ cinder_backend_serial | default('1') }}"
|
||||
serial: "{{ cinder_backend_serial | default(['1', '100%']) }}"
|
||||
max_fail_percentage: 20
|
||||
user: root
|
||||
environment: "{{ deployment_environment_variables | default({}) }}"
|
||||
|
|
|
@ -31,7 +31,6 @@
|
|||
- name: Prepare MQ/DB services
|
||||
hosts: neutron_all
|
||||
gather_facts: no
|
||||
max_fail_percentage: 20
|
||||
user: root
|
||||
environment: "{{ deployment_environment_variables | default({}) }}"
|
||||
tags:
|
||||
|
@ -87,7 +86,7 @@
|
|||
include: common-playbooks/neutron.yml
|
||||
vars:
|
||||
neutron_hosts: "neutron_linuxbridge_agent:neutron_openvswitch_agent:!neutron_server"
|
||||
neutron_serial: "{{ neutron_agent_serial | default('20%') }}"
|
||||
neutron_serial: "{{ neutron_agent_serial | default('50%') }}"
|
||||
|
||||
|
||||
|
||||
|
@ -95,4 +94,4 @@
|
|||
include: common-playbooks/neutron.yml
|
||||
vars:
|
||||
neutron_hosts: "neutron_all:!neutron_linuxbridge_agent:!neutron_openvswitch_agent:!neutron_server"
|
||||
neutron_serial: "{{ neutron_other_serial | default('1') }}"
|
||||
neutron_serial: "{{ neutron_other_serial | default('20%') }}"
|
||||
|
|
|
@ -123,7 +123,7 @@
|
|||
include: common-playbooks/nova.yml
|
||||
vars:
|
||||
nova_hosts: "nova_compute:!nova_conductor:!nova_scheduler:!nova_consoleauth:!nova_api_os_compute:!nova_api_placement:!nova_api_metadata:!nova_console"
|
||||
nova_serial: "{{ nova_compute_serial | default('20%') }}"
|
||||
nova_serial: "{{ nova_compute_serial | default('50%') }}"
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -38,7 +38,6 @@
|
|||
# http://www.rabbitmq.com/clustering.html#upgrading
|
||||
- name: Stop RabbitMQ nodes that are not the upgrader
|
||||
hosts: "{{ rabbitmq_host_group | default('rabbitmq_all') }}[1:]"
|
||||
serial: 1
|
||||
max_fail_percentage: 0
|
||||
user: root
|
||||
tasks:
|
||||
|
@ -50,7 +49,7 @@
|
|||
|
||||
- name: Install rabbitmq server
|
||||
hosts: "{{ rabbitmq_host_group | default('rabbitmq_all') }}"
|
||||
serial: 1
|
||||
serial: 20%
|
||||
max_fail_percentage: 20
|
||||
user: root
|
||||
roles:
|
||||
|
|
Loading…
Reference in New Issue