Merge "Allow oslo rabbit heartbeat configuration"

This commit is contained in:
Jenkins 2015-06-15 17:24:15 +00:00 committed by Gerrit Code Review
commit 9e62dd901c
2 changed files with 9 additions and 1 deletions

View File

@ -94,7 +94,9 @@ describe 'openstack-telemetry::common' do
it 'has default RPC/AMQP options set' do
[/^amqp_durable_queues=false$/,
/^amqp_auto_delete=false$/].each do |line|
/^amqp_auto_delete=false$/,
/^heartbeat_timeout_threshold=0$/,
/^heartbeat_rate=2$/].each do |line|
expect(chef_run).to render_config_file(file.name).with_section_content('oslo_messaging_rabbit', line)
end
end

View File

@ -105,6 +105,12 @@ qpid_topology_version=<%= node["openstack"]["mq"]["telemetry"]["qpid"]["topology
# From oslo.messaging
#
# Number of seconds after which the Rabbit broker is considered down if heartbeat's keep-alive fails (0 disable the heartbeat)
heartbeat_timeout_threshold=<%= node['openstack']['mq']['telemetry']['rabbit']['heartbeat_timeout_threshold'] %>
# How often times during the heartbeat_timeout_threshold we check the heartbeat
heartbeat_rate=<%= node['openstack']['mq']['telemetry']['rabbit']['heartbeat_rate'] %>
# Use durable queues in AMQP. (boolean value)
amqp_durable_queues=<%= node["openstack"]["mq"]["telemetry"]["durable_queues"] %>