Allow configuration of multiple rabbit clusters
Introduced new variables so the transport_url values used for RPC and notifications can vary. By default they will remain the same. Change-Id: I96acacedd20c4556d1132228a797da5c0d0c754c Implements: blueprint multi-rabbitmq-clusters Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
parent
b9d50ce452
commit
8e82812b3a
@ -70,17 +70,27 @@ nova_api_db_max_pool_size: 120
|
||||
nova_api_db_pool_timeout: 30
|
||||
|
||||
## RabbitMQ info
|
||||
|
||||
## Configuration for RPC communications
|
||||
nova_rpc_backend: rabbit
|
||||
nova_rpc_thread_pool_size: 64
|
||||
nova_rpc_conn_pool_size: 30
|
||||
nova_rpc_response_timeout: 60
|
||||
|
||||
nova_rabbitmq_servers: 127.0.0.1
|
||||
nova_rabbitmq_port: 5672
|
||||
nova_rabbitmq_userid: nova
|
||||
nova_rabbitmq_vhost: /nova
|
||||
nova_rabbitmq_use_ssl: False
|
||||
|
||||
## RPC
|
||||
nova_rpc_backend: rabbit
|
||||
nova_rpc_thread_pool_size: 64
|
||||
nova_rpc_conn_pool_size: 30
|
||||
nova_rpc_response_timeout: 60
|
||||
## Configuration for notifications communication, i.e. [oslo_messaging_notifications]
|
||||
nova_rabbitmq_telemetry_userid: "{{ nova_rabbitmq_userid }}"
|
||||
nova_rabbitmq_telemetry_password: "{{ nova_rabbitmq_password }}"
|
||||
nova_rabbitmq_telemetry_vhost: "{{ nova_rabbitmq_vhost }}"
|
||||
nova_rabbitmq_telemetry_port: "{{ nova_rabbitmq_port }}"
|
||||
nova_rabbitmq_telemetry_servers: "{{ nova_rabbitmq_servers }}"
|
||||
nova_rabbitmq_telemetry_use_ssl: "{{ nova_rabbitmq_use_ssl }}"
|
||||
|
||||
|
||||
## Nova virtualization Types
|
||||
# The nova_virt_types dictionary contains global overrides used for
|
||||
|
@ -77,6 +77,7 @@ osapi_compute_workers = {{ nova_osapi_compute_workers | default(api_threads) }}
|
||||
|
||||
# Rpc all
|
||||
rpc_backend = {{ nova_rpc_backend }}
|
||||
transport_url = rabbit://{% for host in nova_rabbitmq_servers.split(',') %}{{ nova_rabbitmq_userid }}:{{ nova_rabbitmq_password }}@{{ host }}:{{ nova_rabbitmq_port }}/{{ nova_rabbitmq_vhost }}?rabbit_use_ssl={{ nova_rabbitmq_use_ssl }}{% if not loop.last %},{% endif %}{% endfor %}
|
||||
executor_thread_pool_size = {{ nova_rpc_thread_pool_size }}
|
||||
rpc_conn_pool_size = {{ nova_rpc_conn_pool_size }}
|
||||
rpc_response_timeout = {{ nova_rpc_response_timeout }}
|
||||
@ -126,6 +127,7 @@ notify_on_state_change = vm_and_task_state
|
||||
{% if nova_ceilometer_enabled %}
|
||||
[oslo_messaging_notifications]
|
||||
driver = messagingv2
|
||||
transport_url = rabbit://{% for host in nova_rabbitmq_telemetry_servers.split(',') %}{{ nova_rabbitmq_telemetry_userid }}:{{ nova_rabbitmq_telemetry_password }}@{{ host }}:{{ nova_rabbitmq_telemetry_port }}/{{ nova_rabbitmq_telemetry_vhost }}?rabbit_use_ssl={{ nova_rabbitmq_telemetry_use_ssl }}{% if not loop.last %},{% endif %}{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
# Cache
|
||||
|
Loading…
Reference in New Issue
Block a user