diff options
author | Giulio Fidente <gfidente@redhat.com> | 2015-05-11 15:37:07 +0200 |
---|---|---|
committer | Giulio Fidente <gfidente@redhat.com> | 2015-05-11 15:37:07 +0200 |
commit | bf618365914b8fbf7f6b6bc37fcc05574ab3af99 (patch) | |
tree | 55597bcc3a66bdb54b26fd531825eaf51d5f0e0b /puppet/manifests | |
parent | 607ea9c8d30d752b01881e2ac913c712f0243272 (diff) |
Use optimized config for RabbitMQ cluster
Use some optimized configuration settings for RabbitMQ when
clustered. Data is ported from Astapor.
Change-Id: If54aff5654dbe75e68197588be12cb3995c77ec7
Diffstat (limited to 'puppet/manifests')
-rw-r--r-- | puppet/manifests/overcloud_controller.pp | 8 | ||||
-rw-r--r-- | puppet/manifests/overcloud_controller_pacemaker.pp | 9 |
2 files changed, 11 insertions, 6 deletions
diff --git a/puppet/manifests/overcloud_controller.pp b/puppet/manifests/overcloud_controller.pp index b068b973..1b088a86 100644 --- a/puppet/manifests/overcloud_controller.pp +++ b/puppet/manifests/overcloud_controller.pp @@ -161,8 +161,12 @@ if hiera('step') >= 2 { $rabbit_nodes = split(hiera('rabbit_node_ips'), ',') if count($rabbit_nodes) > 1 { class { '::rabbitmq': - config_cluster => true, - cluster_nodes => $rabbit_nodes, + config_cluster => true, + cluster_nodes => $rabbit_nodes, + tcp_keepalive => false, + config_kernel_variables => hiera('rabbitmq_kernel_variables'), + config_variables => hiera('rabbitmq_config_variables'), + environment_variables => hiera('rabbitmq_environment'), } rabbitmq_policy { 'ha-all@/': pattern => '^(?!amq\.).*', diff --git a/puppet/manifests/overcloud_controller_pacemaker.pp b/puppet/manifests/overcloud_controller_pacemaker.pp index ba5f80a6..ff1ad884 100644 --- a/puppet/manifests/overcloud_controller_pacemaker.pp +++ b/puppet/manifests/overcloud_controller_pacemaker.pp @@ -223,10 +223,11 @@ if hiera('step') >= 2 { replace => true, } -> class { '::rabbitmq': - service_manage => false, - environment_variables => { - 'RABBITMQ_NODENAME' => "rabbit@$::hostname", - }, + service_manage => false, + tcp_keepalive => false, + config_kernel_variables => hiera('rabbitmq_kernel_variables'), + config_variables => hiera('rabbitmq_config_variables'), + environment_variables => hiera('rabbitmq_environment'), } if $pacemaker_master { pacemaker::resource::ocf { 'rabbitmq': |