Skip to content

Instantly share code, notes, and snippets.

@matagus
Last active January 2, 2018 20:50
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save matagus/7221333 to your computer and use it in GitHub Desktop.
Save matagus/7221333 to your computer and use it in GitHub Desktop.
a sample rabbitmq config file, tested with RabbitMQ 3.0.2, Erlang R15B01
[
{rabbit, [
{auth_backends, [rabbit_auth_backend_internal]},
{auth_mechanisms, ['PLAIN','AMQPLAIN']},
{backing_queue_module, rabbit_variable_queue},
{cluster_nodes, []},
{collect_statistics, coarse},
{collect_statistics_interval, 5000},
{default_permissions, [<<".*">>,<<".*">>,<<".*">>]},
{default_user, <<"guest">>},
{default_user_tags, [administrator]},
{default_vhost, <<"/">>},
{delegate_count, 16},
{error_logger, {file,"/var/log/rabbitmq/rabbit@localhost.log"}},
{frame_max, 131072},
{hipe_compile, false},
{included_applications, []},
{msg_store_file_size_limit, 16777216},
{msg_store_index_module, rabbit_msg_store_ets_index},
{queue_index_max_journal_entries, 262144},
{sasl_error_logger, {file,"/var/log/rabbitmq/rabbit@localhost-sasl.log"}},
{server_properties, []},
{ssl_listeners, []},
{ssl_options, []},
{tcp_listen_options,
[binary,
{packet, raw},
{reuseaddr, true},
{backlog, 128},
{nodelay, true},
{exit_on_close, false}]},
{tcp_listeners, [5672]},
{trace_vhosts, [<<"/">>]},
{vm_memory_high_watermark, 0.9},
{vm_memory_high_watermark_paging_ratio, 0.75},
{disk_free_limit, {mem_relative, 1.0}}
]
}
].
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment