Skip to content

Instantly share code, notes, and snippets.

@kjelly
Created May 19, 2020 06:28
Show Gist options
  • Save kjelly/e24d4a512fdb2276b804efc7477e598a to your computer and use it in GitHub Desktop.
Save kjelly/e24d4a512fdb2276b804efc7477e598a to your computer and use it in GitHub Desktop.
[
{kernel, [
{inet_dist_use_interface, {% raw %}{{% endraw %}{{ api_interface_address | regex_replace('\.', ',') }}}},
{net_ticktime, 15},
{inet_dist_listen_min, {{ role_rabbitmq_cluster_port }}},
{inet_dist_listen_max, {{ role_rabbitmq_cluster_port }}}
]},
{rabbit, [
{% if rabbitmq_hipe_compile|bool %}
{hipe_compile, true},
{% endif %}
{tcp_listen_options, [
{keepalive, true},
{backlog, 128},
{nodelay, true},
{linger, {true, 0}},
{exit_on_close, false}
]},
{tcp_listeners, [
{"{{ api_interface_address }}", {{ role_rabbitmq_port }}}
]},
{cluster_partition_handling, autoheal}
]},
{rabbitmq_management, [
{listener, [
{ip, "{{ api_interface_address }}"},
{port, {{ role_rabbitmq_management_port }}}
]},
{load_definitions, "/etc/rabbitmq/definitions.json"}
]},
{rabbitmq_clusterer, [{config, "/etc/rabbitmq/rabbitmq-clusterer.config"}]}
].
% EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment