Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

[stable/rabbitmq] Add parameters to limit the number of scheduler threads. #13044

Merged
merged 2 commits into from
Apr 15, 2019
Merged

[stable/rabbitmq] Add parameters to limit the number of scheduler threads. #13044

merged 2 commits into from
Apr 15, 2019

Conversation

juan131
Copy link
Collaborator

@juan131 juan131 commented Apr 15, 2019

Signed-off-by: juan131 [email protected]

What this PR does / why we need it:

RabbitMQ sets the number of threads based on the available CPU cores. Find more information in the link below:

https://hamidreza-s.github.io/erlang/scheduling/real-time/preemptive/migration/2016/02/09/erlang-scheduler-details.html#scheduler-threads

However, on K8s the number of available cores on a K8s node and the amount of CPU assigned to a specific pod can be different.

This PR allows to the user to limit the the number of scheduler threads so RabbitMQ doesn't create too many threads causing high CPU usage.

Which issue this PR fixes

Checklist

  • DCO signed
  • Chart Version bumped
  • Variables are documented in the README.md

@helm-bot helm-bot added Contribution Allowed If the contributor has signed the DCO or the CNCF CLA (prior to the move to a DCO). size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Apr 15, 2019
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 15, 2019
{{- if and .Values.rabbitmq.maxAvailableSchedulers }}
- name: RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS
value: {{ printf "+S %s:%s" (toString .Values.rabbitmq.maxAvailableSchedulers) (toString .Values.rabbitmq.onlineSchedulers) -}}
{{- end }}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this end tag has no the same indentation that the if one

Signed-off-by: juan131 <[email protected]>
Copy link
Collaborator

@tompizmor tompizmor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/ok-to-test
/lgtm

@k8s-ci-robot k8s-ci-robot added ok-to-test lgtm Indicates that a PR is ready to be merged. labels Apr 15, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: juan131, tompizmor

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit e0add8e into helm:master Apr 15, 2019
@juan131 juan131 deleted the rabbitmq_scheduler_threads branch April 15, 2019 08:45
TsuyoshiUshio pushed a commit to TsuyoshiUshio/charts that referenced this pull request Apr 18, 2019
…eads. (helm#13044)

* [stable/rabbitmq] Add parameters to limit the number of scheduler threads.

Signed-off-by: juan131 <[email protected]>

* Fix indentation

Signed-off-by: juan131 <[email protected]>
hajnej pushed a commit to hajnej/charts that referenced this pull request Apr 24, 2019
…eads. (helm#13044)

* [stable/rabbitmq] Add parameters to limit the number of scheduler threads.

Signed-off-by: juan131 <[email protected]>

* Fix indentation

Signed-off-by: juan131 <[email protected]>
devnulled pushed a commit to devnulled/charts that referenced this pull request Apr 25, 2019
…eads. (helm#13044)

* [stable/rabbitmq] Add parameters to limit the number of scheduler threads.

Signed-off-by: juan131 <[email protected]>

* Fix indentation

Signed-off-by: juan131 <[email protected]>
dermorz pushed a commit to dermorz/charts that referenced this pull request Apr 26, 2019
…eads. (helm#13044)

* [stable/rabbitmq] Add parameters to limit the number of scheduler threads.

Signed-off-by: juan131 <[email protected]>

* Fix indentation

Signed-off-by: juan131 <[email protected]>
dpkirchner pushed a commit to dpkirchner/charts that referenced this pull request May 9, 2019
…eads. (helm#13044)

* [stable/rabbitmq] Add parameters to limit the number of scheduler threads.

Signed-off-by: juan131 <[email protected]>

* Fix indentation

Signed-off-by: juan131 <[email protected]>
goshlanguage pushed a commit to goshlanguage/charts that referenced this pull request May 17, 2019
…eads. (helm#13044)

* [stable/rabbitmq] Add parameters to limit the number of scheduler threads.

Signed-off-by: juan131 <[email protected]>

* Fix indentation

Signed-off-by: juan131 <[email protected]>
eyenx pushed a commit to eyenx/charts that referenced this pull request May 28, 2019
…eads. (helm#13044)

* [stable/rabbitmq] Add parameters to limit the number of scheduler threads.

Signed-off-by: juan131 <[email protected]>

* Fix indentation

Signed-off-by: juan131 <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. Contribution Allowed If the contributor has signed the DCO or the CNCF CLA (prior to the move to a DCO). lgtm Indicates that a PR is ready to be merged. ok-to-test size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RabbitMQ high CPU usage on idle VM
4 participants