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>
This commit is contained in:
parent
b7a0dedbf5
commit
eb81d64351
@ -83,7 +83,7 @@
|
|||||||
include: common-playbooks/cinder.yml
|
include: common-playbooks/cinder.yml
|
||||||
vars:
|
vars:
|
||||||
cinder_hosts: "cinder_volume:!cinder_scheduler:!cinder_api"
|
cinder_hosts: "cinder_volume:!cinder_scheduler:!cinder_api"
|
||||||
cinder_serial: "{{ cinder_backend_serial | default('1') }}"
|
cinder_serial: "{{ cinder_backend_serial | default('1', '100%') }}"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -91,7 +91,7 @@
|
|||||||
include: common-playbooks/cinder.yml
|
include: common-playbooks/cinder.yml
|
||||||
vars:
|
vars:
|
||||||
cinder_hosts: "cinder_backup:!cinder_volume:!cinder_scheduler:!cinder_api"
|
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%']) }}"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -102,7 +102,6 @@
|
|||||||
- name: Refresh local facts after all software changes are made
|
- name: Refresh local facts after all software changes are made
|
||||||
hosts: cinder_all
|
hosts: cinder_all
|
||||||
gather_facts: no
|
gather_facts: no
|
||||||
max_fail_percentage: 20
|
|
||||||
user: root
|
user: root
|
||||||
environment: "{{ deployment_environment_variables | default({}) }}"
|
environment: "{{ deployment_environment_variables | default({}) }}"
|
||||||
tags:
|
tags:
|
||||||
@ -145,7 +144,7 @@
|
|||||||
- name: Restart cinder agents to ensure new RPC object version is used
|
- name: Restart cinder agents to ensure new RPC object version is used
|
||||||
hosts: cinder_backup,cinder_volume,cinder_scheduler
|
hosts: cinder_backup,cinder_volume,cinder_scheduler
|
||||||
gather_facts: no
|
gather_facts: no
|
||||||
serial: "{{ cinder_backend_serial | default('1') }}"
|
serial: "{{ cinder_backend_serial | default(['1', '100%']) }}"
|
||||||
max_fail_percentage: 20
|
max_fail_percentage: 20
|
||||||
user: root
|
user: root
|
||||||
environment: "{{ deployment_environment_variables | default({}) }}"
|
environment: "{{ deployment_environment_variables | default({}) }}"
|
||||||
|
@ -37,7 +37,6 @@
|
|||||||
- name: Prepare MQ/DB services
|
- name: Prepare MQ/DB services
|
||||||
hosts: neutron_all
|
hosts: neutron_all
|
||||||
gather_facts: no
|
gather_facts: no
|
||||||
max_fail_percentage: 20
|
|
||||||
user: root
|
user: root
|
||||||
environment: "{{ deployment_environment_variables | default({}) }}"
|
environment: "{{ deployment_environment_variables | default({}) }}"
|
||||||
tags:
|
tags:
|
||||||
@ -93,7 +92,7 @@
|
|||||||
include: common-playbooks/neutron.yml
|
include: common-playbooks/neutron.yml
|
||||||
vars:
|
vars:
|
||||||
neutron_hosts: "neutron_linuxbridge_agent:neutron_openvswitch_agent:!neutron_server"
|
neutron_hosts: "neutron_linuxbridge_agent:neutron_openvswitch_agent:!neutron_server"
|
||||||
neutron_serial: "{{ neutron_agent_serial | default('20%') }}"
|
neutron_serial: "{{ neutron_agent_serial | default('50%') }}"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -101,4 +100,4 @@
|
|||||||
include: common-playbooks/neutron.yml
|
include: common-playbooks/neutron.yml
|
||||||
vars:
|
vars:
|
||||||
neutron_hosts: "neutron_all:!neutron_linuxbridge_agent:!neutron_openvswitch_agent:!neutron_server"
|
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%') }}"
|
||||||
|
@ -129,7 +129,7 @@
|
|||||||
include: common-playbooks/nova.yml
|
include: common-playbooks/nova.yml
|
||||||
vars:
|
vars:
|
||||||
nova_hosts: "nova_compute:!nova_conductor:!nova_scheduler:!nova_consoleauth:!nova_api_os_compute:!nova_api_placement:!nova_api_metadata:!nova_console"
|
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%') }}"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -44,7 +44,6 @@
|
|||||||
# http://www.rabbitmq.com/clustering.html#upgrading
|
# http://www.rabbitmq.com/clustering.html#upgrading
|
||||||
- name: Stop RabbitMQ nodes that are not the upgrader
|
- name: Stop RabbitMQ nodes that are not the upgrader
|
||||||
hosts: "{{ rabbitmq_host_group | default('rabbitmq_all') }}[1:]"
|
hosts: "{{ rabbitmq_host_group | default('rabbitmq_all') }}[1:]"
|
||||||
serial: 1
|
|
||||||
max_fail_percentage: 0
|
max_fail_percentage: 0
|
||||||
user: root
|
user: root
|
||||||
tasks:
|
tasks:
|
||||||
@ -56,7 +55,7 @@
|
|||||||
|
|
||||||
- name: Install rabbitmq server
|
- name: Install rabbitmq server
|
||||||
hosts: "{{ rabbitmq_host_group | default('rabbitmq_all') }}"
|
hosts: "{{ rabbitmq_host_group | default('rabbitmq_all') }}"
|
||||||
serial: 1
|
serial: 20%
|
||||||
max_fail_percentage: 20
|
max_fail_percentage: 20
|
||||||
user: root
|
user: root
|
||||||
roles:
|
roles:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user