Modify the default distribution link buffer

It makes a big difference for stable throughput. See screenshots from
https://bugs.erlang.org/browse/ERL-959

We need to test this in a real network - I'm thinking GCP -, outside of
Docker. The results will inform whether we should change the default -
which is 1436 bytes.

[#166419953]
This commit is contained in:
Gerhard Lazu 2019-06-03 18:00:26 +01:00
parent e7fa4a2753
commit ebd4ffc67f
2 changed files with 6 additions and 5 deletions

View File

@ -53,14 +53,14 @@ services:
- "5678:5672" - "5678:5672"
- "15678:15672" - "15678:15672"
- "15698:15692" - "15698:15692"
stress_distribution: stress_dist:
# https://hub.docker.com/r/pivotalrabbitmq/perf-test/tags # https://hub.docker.com/r/pivotalrabbitmq/perf-test/tags
image: &perf-test-image pivotalrabbitmq/perf-test:2.8.0-ubuntu image: &perf-test-image pivotalrabbitmq/perf-test:2.8.0-ubuntu
networks: networks:
- "rabbitmq-prometheus" - "rabbitmq-prometheus"
environment: environment:
URI: "amqp://guest:guest@rabbitmq-dist-tls1:5672/%2f" URI: "amqp://guest:guest@rabbitmq-dist-tls1:5672/%2f"
QUEUE_PATTERN: "ha3-max1-%d" QUEUE_PATTERN: "ha3-stress_dist-%d"
QUEUE_PATTERN_FROM: 1 QUEUE_PATTERN_FROM: 1
QUEUE_PATTERN_TO: 10 QUEUE_PATTERN_TO: 10
PRODUCERS: 10 PRODUCERS: 10

View File

@ -1,3 +1,4 @@
INET_TLS="-proto_dist inet_tls -ssl_dist_optfile /etc/rabbitmq/ssl_dist.config" export INET_TLS="-proto_dist inet_tls -ssl_dist_optfile /etc/rabbitmq/ssl_dist.config"
SERVER_ADDITIONAL_ERL_ARGS="$INET_TLS" export INET_DIST_BUFFER="-kernel inet_dist_connect_options [{buffer,1048576}] -kernel inet_dist_listen_options [{buffer,1048576}]"
CTL_ERL_ARGS="$INET_TLS" export SERVER_ADDITIONAL_ERL_ARGS="$INET_TLS $INET_DIST_BUFFER"
export CTL_ERL_ARGS="$INET_TLS $INET_DIST_BUFFER"