Skip to content

Commit 87b51a6

Browse files
Edits, more links
1 parent 4398ab1 commit 87b51a6

File tree

1 file changed

+48
-34
lines changed

1 file changed

+48
-34
lines changed

docs/rabbitmq.config.example

Lines changed: 48 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,10 @@
189189
%% =====================================================
190190
%%
191191

192-
%% Set the default AMQP heartbeat delay (in seconds).
192+
%% Sets the default AMQP 0-9-1 heartbeat timeout in seconds.
193+
%% Values lower than 6 can produce false positives and are not
194+
%% recommended.
195+
%% See http://www.rabbitmq.com/heartbeats.html.
193196
%%
194197
%% {heartbeat, 60},
195198

@@ -207,10 +210,9 @@
207210
%%
208211
%% {channel_max, 0},
209212

210-
%% Customising Socket Options.
213+
%% TCP socket options.
211214
%%
212-
%% See (http://www.erlang.org/doc/man/inet.html#setopts-2) for
213-
%% further documentation.
215+
%% See http://www.rabbitmq.com/networking.html.
214216
%%
215217
%% {tcp_listen_options, [{backlog, 128},
216218
%% {nodelay, true},
@@ -305,21 +307,21 @@
305307
%%
306308
%% {queue_master_locator, <<"client-local">>},
307309

308-
%% Batch size of messages to synchronise between queue mirrors
309-
%% See https://www.rabbitmq.com/ha.html#batch-sync
310+
%% Batch size (number of messages) used during eager queue mirror synchronisation.
311+
%% See https://www.rabbitmq.com/ha.html#batch-sync. When average message size is relatively large
312+
%% (say, 10s of kilobytes or greater), reducing this value will decrease peak amount
313+
%% of RAM used by newly joining nodes that need eager synchronisation.
310314
%%
311315
%% {mirroring_sync_batch_size, 4096},
312316

313-
%% Controls flow control between queue mirrors
314-
%% Be careful with this configuration.
315-
%% It's dangerous for masters to outpace mirrors and not allow mirrors to catch up.
316-
%% Mirrors will end up using more and more RAM,
317-
%% until they will eventually trigger the memory alarm and block publishers.
318-
%% https://github.com/rabbitmq/rabbitmq-server/pull/133
317+
%% Enables flow control between queue mirrors.
318+
%% Disabling this can be dangerous and is not recommended.
319+
%% When flow control is disablied, queue masters can outpace mirrors and not allow mirrors to catch up.
320+
%% Mirrors will end up using increasingly more RAM, eventually triggering a memory alarm.
319321
%%
320322
%% {mirroring_flow_control, true},
321323

322-
%% To announce custom properties to clients on connection:
324+
%% Additional server properties to announce to connecting clients.
323325
%%
324326
%% {server_properties, []},
325327

@@ -358,18 +360,20 @@
358360
%% {hipe_compile, false},
359361

360362
%% Number of delegate processes to use for intra-cluster communication.
361-
%% On a node which is part of cluster, has 16 cores and plenty of network bandwidth,
362-
%% you may wish to increase this value.
363+
%% On a node which is part of cluster, has more than 16 cores and plenty of network bandwidth,
364+
%% it may make sense to increase this value.
363365
%%
364366
%% {delegate_count, 16},
365367

366-
%% Number of times to retry while waiting for Mnesia tables in a cluster to
367-
%% become available.
368+
%% Number of times to retry while waiting for internal database tables (Mnesia tables) to sync
369+
%% from a peer. In deployments where nodes can take a long time to boot, this value
370+
%% may need increasing.
368371
%%
369372
%% {mnesia_table_loading_retry_limit, 10},
370373

371-
%% Time to wait per retry for Mnesia tables in a cluster to become
372-
%% available.
374+
%% Amount of time in milliseconds which this node will wait for internal database tables (Mnesia tables) to sync
375+
%% from a peer. In deployments where nodes can take a long time to boot, this value
376+
%% may need increasing.
373377
%%
374378
%% {mnesia_table_loading_retry_timeout, 30000},
375379

@@ -379,7 +383,7 @@
379383
%% {queue_index_embed_msgs_below, 4096},
380384

381385
%% Maximum number of queue index entries to keep in journal
382-
%% See http://www.rabbitmq.com/persistence-conf.html
386+
%% See http://www.rabbitmq.com/persistence-conf.html.
383387
%%
384388
%% {queue_index_max_journal_entries, 32768},
385389

@@ -397,32 +401,38 @@
397401
%%
398402
%% {msg_store_io_batch_size, 4096},
399403

400-
%% Number of credits that a connection, channel or queue are given
404+
%% Number of credits that a connection, channel or queue are given.
405+
%%
401406
%% By default, every connection, channel or queue is given 400 credits,
402-
%% and then 200 for every 200 messages that it processes.
403-
%% Increasing these values may help with throughput, but they can also be dangerous:
404-
%% very high credit flow values are no different from not having flow control.
407+
%% and then 200 for every 200 messages that it sends to a peer process.
408+
%% Increasing these values may help with throughput but also can be dangerous:
409+
%% high credit flow values are no different from not having flow control at all.
410+
%%
405411
%% See https://www.rabbitmq.com/blog/2015/10/06/new-credit-flow-settings-on-rabbitmq-3-5-5/
412+
%% and http://alvaro-videla.com/2013/09/rabbitmq-internals-credit-flow-for-erlang-processes.html.
406413
%%
407414
%% {credit_flow_default_credit, {400, 200}},
408415

409-
%% Number of milliseconds before a channel operation times out
416+
%% Number of milliseconds before a channel operation times out.
410417
%%
411418
%% {channel_operation_timeout, 15000},
412419

413-
%% Number of queue operations required to trigger an explicit garbage collection
420+
%% Number of queue operations required to trigger an explicit garbage collection.
421+
%% Increasing this value may reduce CPU load and increase peak RAM consumption of queues.
414422
%%
415423
%% {queue_explicit_gc_run_operation_threshold, 1000},
416424

417-
%% Number of lazy queue operations required to trigger an explicit garbage collection
425+
%% Number of lazy queue operations required to trigger an explicit garbage collection.
426+
%% Increasing this value may reduce CPU load and increase peak RAM consumption of lazy queues.
418427
%%
419428
%% {lazy_queue_explicit_gc_run_operation_threshold, 1000},
420429

421-
%% Number of times to retry querying disk space usage
430+
%% Number of times disk monitor will retry free disk space queries before
431+
%% giving up.
422432
%%
423433
%% {disk_monitor_failure_retries, 10},
424434

425-
%% Milliseconds to wait before retrying to query disk space usage
435+
%% Milliseconds to wait between disk monitor retries on failures.
426436
%%
427437
%% {disk_monitor_failure_retry_interval, 120000},
428438

@@ -441,11 +451,13 @@
441451
%%
442452
%% {msg_store_file_size_limit, 16777216},
443453

444-
%% Whether or not to enable write file handle cache buffering
454+
%% Whether or not to enable file write buffering.
445455
%%
446456
%% {fhc_write_buffering, true},
447457

448-
%% Whether or not to enable read file handle cache buffering
458+
%% Whether or not to enable file read buffering. Enabling
459+
%% this may slightly speed up reads but will also increase
460+
%% node's memory consumption, in particular on boot.
449461
%%
450462
%% {fhc_read_buffering, false}
451463

@@ -662,18 +674,20 @@
662674
%%
663675
%% {prefetch, 10},
664676

665-
%% TCP/SSL Configuration (as per the broker configuration).
677+
%% TLS listeners.
678+
%% See http://www.rabbitmq.com/networking.html
666679
%%
667680
%% {tcp_listeners, [1883]},
668681
%% {ssl_listeners, []},
669682

670683
%% Number of Erlang processes that will accept connections for the TCP
671-
%% and SSL listeners.
684+
%% and TLS listeners.
685+
%% See http://www.rabbitmq.com/networking.html
672686
%%
673687
%% {num_tcp_acceptors, 10},
674688
%% {num_ssl_acceptors, 1},
675689

676-
%% TCP/Socket options (as per the broker configuration).
690+
%% TCP socket options.
677691
%% See http://www.rabbitmq.com/networking.html
678692
%%
679693
%% {tcp_listen_options, [

0 commit comments

Comments
 (0)