Adjust neutron api/rpc/metadata workers too.

Change-Id: I03ff6da0758dcc266e78994a717aa73713d415ba
This commit is contained in:
Alex Krzos 2015-12-22 16:44:29 -05:00
parent 58dbf4893c
commit e321c1ad18
4 changed files with 73 additions and 1 deletions

View File

@ -17,4 +17,5 @@
threads: 6
roles:
- nova
- neutron
- keystone

View File

@ -0,0 +1,31 @@
---
#
# Neutron handlers for browbeat adjustment
#
- name: unmanage neutron services
command: pcs resource unmanage {{ item }}
with_items:
- neutron-server
- neutron-metadata-agent
ignore_errors: true
- name: restart neutron services
service: name={{ item }} state=restarted
with_items:
- neutron-server
- neutron-metadata-agent
- name: manage neutron services
command: pcs resource manage {{ item }}
with_items:
- neutron-server
- neutron-metadata-agent
ignore_errors: true
- name: cleanup neutron services
command: pcs resource cleanup {{ item }}
with_items:
- neutron-server
- neutron-metadata-agent
ignore_errors: true

View File

@ -0,0 +1,40 @@
---
#
# Neutron tasks for Browbeat
# * Can change worker count
#
- name: Configure neutron.conf
ini_file:
dest: /etc/neutron/neutron.conf
mode: 0640
section: "{{ item.section }}"
option: "{{ item.option }}"
value: "{{ item.value }}"
backup: yes
with_items:
- { section: DEFAULT, option: verbose, value: False }
- { section: DEFAULT, option: debug, value: False }
- { section: DEFAULT, option: api_workers, value: "{{ workers }}" }
- { section: DEFAULT, option: rpc_workers, value: "{{ workers }}" }
notify:
- unmanage neutron services
- restart neutron services
- manage neutron services
- cleanup neutron services
- name: Configure metadata_agent.ini
ini_file:
dest: /etc/neutron/metadata_agent.ini
mode: 0640
section: "{{ item.section }}"
option: "{{ item.option }}"
value: "{{ item.value }}"
backup: yes
with_items:
- { section: DEFAULT, option: metadata_workers, value: "{{ workers }}" }
notify:
- unmanage neutron services
- restart neutron services
- manage neutron services
- cleanup neutron services

View File

@ -1,6 +1,6 @@
---
#
# Neutron handlers
# Neutron handlers for browbeat install connmon
#
- name: unmanage neutron-server