Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(config): set maximum limit for number of workers #842

Merged
merged 1 commit into from
Nov 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions helm/reana/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ This Helm automatically prefixes all names using the release name to avoid colli
| `dask.autoscaler_enabled` | Enable Dask autoscaler | true |
| `dask.cluster_max_memory_limit` | The maximum memory limit for Dask clusters created by users | "16Gi" |
| `dask.cluster_default_number_of_workers` | The number of Dask workers created by default | 2 |
| `dask.cluster_max_number_of_workers` | The maximum number of Dask workers that users can ask for | 20 |
| `dask.cluster_default_single_worker_memory` | The amount of memory used by default by a single Dask worker | "2Gi" |
| `dask.cluster_max_single_worker_memory` | The maximum amount of memory that users can ask for the single Dask worker | "8Gi" |
| `db_env_config.REANA_DB_HOST` | Environment variable to connect to external databases | `<chart-release-name>-db` |
Expand Down
2 changes: 2 additions & 0 deletions helm/reana/templates/reana-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ spec:
value: {{ .Values.dask.cluster_max_memory_limit | default "16Gi" }}
- name: REANA_DASK_CLUSTER_DEFAULT_NUMBER_OF_WORKERS
value: !!str {{ .Values.dask.cluster_default_number_of_workers | default 2 }}
- name: REANA_DASK_CLUSTER_MAX_NUMBER_OF_WORKERS
value: !!str {{ .Values.dask.cluster_max_number_of_workers | default 20 }}
- name: REANA_DASK_CLUSTER_DEFAULT_SINGLE_WORKER_MEMORY
value: {{ .Values.dask.cluster_default_single_worker_memory | default "2Gi" }}
- name: REANA_DASK_CLUSTER_MAX_SINGLE_WORKER_MEMORY
Expand Down
1 change: 1 addition & 0 deletions helm/reana/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ dask:
autoscaler_enabled: true
cluster_max_memory_limit: "16Gi"
cluster_default_number_of_workers: 2
cluster_max_number_of_workers: 20
cluster_default_single_worker_memory: "2Gi"
cluster_max_single_worker_memory: "8Gi"

Expand Down
Loading