Skip to content

Commit

Permalink
[stable/rabbitmq] Add parameters to limit the number of scheduler thr…
Browse files Browse the repository at this point in the history
…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]>
  • Loading branch information
juan131 authored and eyenx committed May 28, 2019
1 parent d820683 commit 468d9e8
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/rabbitmq/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: rabbitmq
version: 5.1.0
version: 5.2.0
appVersion: 3.7.14
description: Open source message broker software that implements the Advanced Message Queuing Protocol (AMQP)
keywords:
Expand Down
2 changes: 2 additions & 0 deletions stable/rabbitmq/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ The following table lists the configurable parameters of the RabbitMQ chart and
| `rabbitmq.clustering.k8s_domain` | Customize internal k8s cluster domain | `cluster.local` |
| `rabbitmq.logs` | Value for the RABBITMQ_LOGS environment variable | `-` |
| `rabbitmq.ulimitNofiles` | Max File Descriptor limit | `65536` |
| `rabbitmq.maxAvailableSchedulers | RabbitMQ maximum available scheduler threads | `2` |
| `rabbitmq.onlineSchedulers | RabbitMQ online scheduler threads | `1` |
| `rabbitmq.configuration` | Required cluster configuration | See values.yaml |
| `rabbitmq.extraConfiguration` | Extra configuration to add to rabbitmq.conf | See values.yaml |
| `service.type` | Kubernetes Service type | `ClusterIP` |
Expand Down
4 changes: 4 additions & 0 deletions stable/rabbitmq/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ spec:
value: {{ .Values.rabbitmq.logs | quote }}
- name: RABBITMQ_ULIMIT_NOFILES
value: {{ .Values.rabbitmq.ulimitNofiles | quote }}
{{- 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 }}
- name: RABBITMQ_USE_LONGNAME
value: "true"
- name: RABBITMQ_ERL_COOKIE
Expand Down
6 changes: 6 additions & 0 deletions stable/rabbitmq/values-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ rabbitmq:
##
ulimitNofiles: '65536'

## RabbitMQ maximum available scheduler threads and online scheduler threads
## ref: https://hamidreza-s.github.io/erlang/scheduling/real-time/preemptive/migration/2016/02/09/erlang-scheduler-details.html#scheduler-threads
##
maxAvailableSchedulers: 2
onlineSchedulers: 1

## Plugins to enable
plugins: "rabbitmq_management rabbitmq_peer_discovery_k8s"

Expand Down
6 changes: 6 additions & 0 deletions stable/rabbitmq/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ rabbitmq:
##
ulimitNofiles: '65536'

## RabbitMQ maximum available scheduler threads and online scheduler threads
## ref: https://hamidreza-s.github.io/erlang/scheduling/real-time/preemptive/migration/2016/02/09/erlang-scheduler-details.html#scheduler-threads
##
maxAvailableSchedulers: 2
onlineSchedulers: 1

## Plugins to enable
plugins: "rabbitmq_management rabbitmq_peer_discovery_k8s"

Expand Down

0 comments on commit 468d9e8

Please sign in to comment.