fuel-library/deployment/puppet/rabbitmq/manifests/params.pp
Bogdan Dobrelya f0ce9c4e4a Adjust rmq stats collector settings
The stats collector falls behind under
high load on the messaging system.
The suggested optimization is to increase
the stats polling and disable rates
processing in management UI:
rabbit.collect_statistics_interval=30000
rabbitmq_management.rates_mode=none.
The new hiera parameter rabbit_config_management_variables
may be used to override the rates_mode to other values.

Related upstream PR
https://github.com/puppetlabs/puppetlabs-rabbitmq/pull/407

DocImpact
Closes-bug: #1510835

Change-Id: I9a3179a4f002064c9b6d2621a49bb0aa9aa707c7
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2015-10-28 14:57:48 +01:00

91 lines
3.6 KiB
Puppet

# Class: rabbitmq::params
#
# The RabbitMQ Module configuration settings.
#
class rabbitmq::params {
case $::osfamily {
'Archlinux': {
$package_ensure = 'installed'
$package_name = 'rabbitmq'
$service_name = 'rabbitmq'
$version = '3.1.3-1'
}
'Debian': {
$package_ensure = 'installed'
$package_name = 'rabbitmq-server'
$service_name = 'rabbitmq-server'
$package_provider = 'apt'
$version = '3.1.5'
}
'RedHat': {
$package_ensure = 'installed'
$package_name = 'rabbitmq-server'
$service_name = 'rabbitmq-server'
$package_provider = 'rpm'
$version = '3.1.5-1'
}
'SUSE': {
$package_ensure = 'installed'
$package_name = 'rabbitmq-server'
$service_name = 'rabbitmq-server'
$package_provider = 'zypper'
$version = '3.1.5-1'
}
default: {
fail("The ${module_name} module is not supported on an ${::osfamily} based system.")
}
}
#install
$admin_enable = true
$management_port = '15672'
$package_apt_pin = ''
$package_gpg_key = 'http://www.rabbitmq.com/rabbitmq-signing-key-public.asc'
$repos_ensure = true
$manage_repos = undef
$service_ensure = 'running'
$service_manage = true
#config
$cluster_node_type = 'disc'
$cluster_nodes = []
$config = 'rabbitmq/rabbitmq.config.erb'
$config_cluster = false
$config_path = '/etc/rabbitmq/rabbitmq.config'
$config_stomp = false
$default_user = 'guest'
$default_pass = 'guest'
$delete_guest_user = false
$env_config = 'rabbitmq/rabbitmq-env.conf.erb'
$env_config_path = '/etc/rabbitmq/rabbitmq-env.conf'
$erlang_cookie = undef
$node_ip_address = 'UNSET'
$plugin_dir = "/usr/lib/rabbitmq/lib/rabbitmq_server-${version}/plugins"
$port = '5672'
$tcp_keepalive = false
$ssl = false
$ssl_only = false
$ssl_cacert = 'UNSET'
$ssl_cert = 'UNSET'
$ssl_key = 'UNSET'
$ssl_port = '5671'
$ssl_management_port = '15671'
$ssl_stomp_port = '6164'
$ssl_verify = 'verify_none'
$ssl_fail_if_no_peer_cert = false
$stomp_ensure = false
$ldap_auth = false
$ldap_server = 'ldap'
$ldap_user_dn_pattern = 'cn=username,ou=People,dc=example,dc=com'
$ldap_use_ssl = false
$ldap_port = '389'
$ldap_log = false
$stomp_port = '6163'
$wipe_db_on_cookie_change = false
$cluster_partition_handling = 'ignore'
$environment_variables = {}
$config_variables = {}
$config_rabbitmq_management_variables = {}
$config_kernel_variables = {}
}