@@ -86,12 +86,25 @@ internal VIP. As such, traffic to this endpoint is encrypted when
86
86
Passing arguments to RabbitMQ server's Erlang VM
87
87
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
88
88
89
- Erlang programs run in Erlang VM (virtual machine) and use Erlang runtime.
90
- Erlang VM can be configured.
89
+ Erlang programs run in an Erlang VM (virtual machine) and use the Erlang
90
+ runtime. The Erlang VM can be configured.
91
91
92
92
Kolla Ansible makes it possible to pass arguments to the Erlang VM via the
93
- usage of ``rabbitmq_server_additional_erl_args `` variable. The contents of it
94
- are appended to ``RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS `` environment variable
95
- passed to RabbitMQ server startup script. Kolla Ansible already configures
96
- RabbitMQ server for IPv6 (if necessary). Any argument can be passed there as
97
- documented in https://www.rabbitmq.com/runtime.html
93
+ usage of the ``rabbitmq_server_additional_erl_args `` variable. The contents of
94
+ it are appended to the ``RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS `` environment
95
+ variable which is passed to the RabbitMQ server startup script. Kolla Ansible
96
+ already configures RabbitMQ server for IPv6 (if necessary). Any argument can be
97
+ passed there as documented in https://www.rabbitmq.com/runtime.html
98
+
99
+ The default value for ``rabbitmq_server_additional_erl_args `` is ``+S 2:2 +sbwt
100
+ none ``.
101
+
102
+ By default RabbitMQ starts N schedulers where N is the number of CPU cores,
103
+ including hyper-threaded cores. This is fine when you assume all CPUs are
104
+ dedicated to RabbitMQ. Its not a good idea in a typical Kolla Ansible setup.
105
+ Here we go for two scheduler threads (``+S 2:2 ``). More details can be found
106
+ here: https://www.rabbitmq.com/runtime.html#scheduling and here:
107
+ https://erlang.org/doc/man/erl.html#emulator-flags
108
+
109
+ The ``+sbwt `` argument prevents busy waiting of the scheduler, for more details
110
+ see: https://www.rabbitmq.com/runtime.html#busy-waiting.
0 commit comments