diff options
| author | Gerhard Lazu <gerhard@lazu.co.uk> | 2017-09-19 11:00:34 +0100 |
|---|---|---|
| committer | Gerhard Lazu <gerhard@lazu.co.uk> | 2017-09-20 17:29:24 +0100 |
| commit | 1bf1f352ba4172e0a1c4bc5eab2edae3b7afb01c (patch) | |
| tree | b205c62a349728be5e4ca5159792991c31f6977d | |
| parent | 131843b54fef5580f4384ae5e662eb36ee082f14 (diff) | |
| download | rabbitmq-server-git-1bf1f352ba4172e0a1c4bc5eab2edae3b7afb01c.tar.gz | |
Add mirroring_sync_batch_size to example config
| -rw-r--r-- | docs/rabbitmq.config.example | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/rabbitmq.config.example b/docs/rabbitmq.config.example index 60452108aa..ebc3c66eeb 100644 --- a/docs/rabbitmq.config.example +++ b/docs/rabbitmq.config.example @@ -299,6 +299,24 @@ %% See https://www.rabbitmq.com/ha.html#queue-master-location for further details %% {queue_master_locator, <<"client-local">>}, + %% Since RabbitMQ 3.6.0, masters perform synchronisation in batches. + %% Earlier versions will synchronise 1 message at a time by default. + %% By synchronising messages in batches, the synchronisation process can be sped up considerably. + %% To choose the right value, you need to consider: + %% * average message size + %% * network throughput between RabbitMQ nodes + %% * net_ticktime value + %% + %% For example, if you set this value to 50000 (messages), + %% and each message in the queue is 1KB, + %% then each synchronisation message between nodes will be ~49MB. + %% + %% You need to make sure that your network between queue mirrors can accomodate this kind of traffic. + %% + %% If the network takes longer than net_ticktime to send one batch of messages, + %% then nodes in the cluster could think they are in the presence of a network partition. + %% {mirroring_sync_batch_size, 4096}, + %% To announce custom properties to clients on connection: %% %% {server_properties, []}, |
