Merge "Add defaults for rabbitmq managment and erlang bind addresses"

This commit is contained in:
Zuul 2019-09-10 20:28:17 +00:00 committed by Gerrit Code Review
commit 7f2914b63f
3 changed files with 12 additions and 1 deletions

View File

@ -121,6 +121,9 @@ rabbitmq_memory_high_watermark: 0.2
# RabbitMQ collect statistics interval
rabbitmq_collect_statistics_interval: 5000
# RabbitMQ Management service bind address
rabbitmq_management_bind_address: 0.0.0.0
# RabbitMQ Management rates mode
rabbitmq_management_rates_mode: basic

View File

@ -3,3 +3,7 @@
# Set ERLANG VM parameters
RABBITMQ_IO_THREAD_POOL_SIZE={{ rabbitmq_async_threads }}
RABBITMQ_SERVER_ERL_ARGS="+P {{ rabbitmq_process_limit }}"
{% if (rabbitmq_management_bind_address != '0.0.0.0') %}
export ERL_EPMD_ADDRESS={{ rabbitmq_management_bind_address }}
{% endif %}

View File

@ -38,8 +38,12 @@
]
},
{ rabbitmq_management, [
{ rates_mode, {{ rabbitmq_management_rates_mode }} }
{ rates_mode, {{ rabbitmq_management_rates_mode }} },
{ listener, [{ip, "{{ rabbitmq_management_bind_address }}" }]}
]
},
{kernel, [
{inet_dist_use_interface, { {{ rabbitmq_management_bind_address|replace('.',',') }} } }
]},
{mnesia, [{dump_log_write_threshold, {{ mnesia_dump_log_write_threshold }} }]}
].