Skip to content

Commit 431710f

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Use more RMQ flags for less busy wait" into stable/victoria
2 parents 2357061 + d81a362 commit 431710f

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

ansible/roles/rabbitmq/defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ rabbitmq_user: "openstack"
7171
rabbitmq_cluster_name: "openstack"
7272
rabbitmq_hostname: "{{ ansible_facts.hostname }}"
7373
rabbitmq_pid_file: "/var/lib/rabbitmq/mnesia/rabbitmq.pid"
74-
rabbitmq_server_additional_erl_args: "+S 2:2 +sbwt none"
74+
rabbitmq_server_additional_erl_args: "+S 2:2 +sbwt none +sbwtdcpu none +sbwtdio none"
7575
# Dict of TLS options for RabbitMQ. Keys will be prefixed with 'ssl_options.'.
7676
rabbitmq_tls_options: {}
7777
# To avoid split-brain

doc/source/reference/message-queues/rabbitmq.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ already configures RabbitMQ server for IPv6 (if necessary). Any argument can be
9797
passed there as documented in https://www.rabbitmq.com/runtime.html
9898

9999
The default value for ``rabbitmq_server_additional_erl_args`` is ``+S 2:2 +sbwt
100-
none``.
100+
none +sbwtdcpu none +sbwtdio none``.
101101

102102
By default RabbitMQ starts N schedulers where N is the number of CPU cores,
103103
including hyper-threaded cores. This is fine when you assume all CPUs are
@@ -106,5 +106,6 @@ Here we go for two scheduler threads (``+S 2:2``). More details can be found
106106
here: https://www.rabbitmq.com/runtime.html#scheduling and here:
107107
https://erlang.org/doc/man/erl.html#emulator-flags
108108

109-
The ``+sbwt`` argument prevents busy waiting of the scheduler, for more details
110-
see: https://www.rabbitmq.com/runtime.html#busy-waiting.
109+
The ``+sbwt none +sbwtdcpu none +sbwtdio none`` arguments prevent busy waiting
110+
of the scheduler, for more details see:
111+
https://www.rabbitmq.com/runtime.html#busy-waiting.

etc/kolla/globals.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,8 @@
418418
# https://www.rabbitmq.com/runtime.html#scheduling
419419
# https://www.rabbitmq.com/runtime.html#busy-waiting
420420
# The default tells RabbitMQ to always use two cores (+S 2:2),
421-
# and not to busy wait (+sbwt none):
422-
#rabbitmq_server_additional_erl_args: "+S 2:2 +sbwt none"
421+
# and not to busy wait (+sbwt none +sbwtdcpu none +sbwtdio none):
422+
#rabbitmq_server_additional_erl_args: "+S 2:2 +sbwt none +sbwtdcpu none +sbwtdio none"
423423
# Whether to enable TLS encryption for RabbitMQ client-server communication.
424424
#rabbitmq_enable_tls: "no"
425425
# CA certificate bundle in RabbitMQ container.

releasenotes/notes/reduce-rabbit-busy-waiting-085433c822165eab.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ fixes:
1010
upgrade:
1111
- |
1212
Modifies the default value of ``rabbitmq_server_additional_erl_args`` from
13-
an empty string to ``+S 2:2 +sbwt none``.
13+
an empty string to ``+S 2:2 +sbwt none +sbwtdcpu none +sbwtdio none``.

0 commit comments

Comments
 (0)