openstack-helm-infra/rabbitmq/templates
Andrii Ostapenko 1a8536fd5d Explicitly set number of schedulers for Erlang VM
By default erlang VM determines a number of scheduler threads equal to a
number of CPU cores it detects [0]. Running rabbitmq in container makes
Erlang VM to think it has all host CPU power, making extra scheduler
threads competing for CPU time and, depending on a difference between
a number host CPU cores and container limits, causing CPU throttling even
while idle.

This commit limits a number of schedulers to a value actually available
to container via k8s resource limits (min 1) emulating the default
behavior.

[0] https://www.rabbitmq.com/runtime.html#scheduling

Change-Id: If36f63173de4c8035daf7aac4014c027c579b58f
2020-05-29 14:26:00 -05:00
..
bin Remove OSH Authors copyright 2020-05-07 02:11:15 +00:00
etc Remove OSH Authors copyright 2020-05-07 02:11:15 +00:00
monitoring/prometheus Remove OSH Authors copyright 2020-05-07 02:11:15 +00:00
utils Remove OSH Authors copyright 2020-05-07 02:11:15 +00:00
configmap-bin.yaml Remove OSH Authors copyright 2020-05-07 02:11:15 +00:00
configmap-etc.yaml Remove OSH Authors copyright 2020-05-07 02:11:15 +00:00
ingress-management.yaml Remove OSH Authors copyright 2020-05-07 02:11:15 +00:00
job-cluster-wait.yaml Enable Apparmor to all rabbitmq test pods 2020-05-18 21:33:27 +00:00
job-image-repo-sync.yaml Remove OSH Authors copyright 2020-05-07 02:11:15 +00:00
network_policy.yaml Remove OSH Authors copyright 2020-05-07 02:11:15 +00:00
pod-test.yaml Enable Apparmor to all rabbitmq test pods 2020-05-18 21:33:27 +00:00
secret-erlang-cookie.yaml Remove OSH Authors copyright 2020-05-07 02:11:15 +00:00
secret-rabbit-admin.yaml Remove OSH Authors copyright 2020-05-07 02:11:15 +00:00
service-ingress-management.yaml Remove OSH Authors copyright 2020-05-07 02:11:15 +00:00
service.yaml Remove OSH Authors copyright 2020-05-07 02:11:15 +00:00
statefulset.yaml Explicitly set number of schedulers for Erlang VM 2020-05-29 14:26:00 -05:00