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(helm): allow configuring number of threads for Dask workers #877

Merged
merged 1 commit into from
Feb 20, 2025

Conversation

Alputer
Copy link
Member

@Alputer Alputer commented Feb 18, 2025

Following the integration of Dask into REANA and discussions with several REANA users, we identified the need to make the number of threads configurable.

This commit introduces two variables to be configured by admins.

REANA_DASK_CLUSTER_DEFAULT_SINGLE_WORKER_THREADS defines the default number of threads per worker when not specified in reana.yaml

REANA_DASK_CLUSTER_MAX_SINGLE_WORKER_THREADS sets the upper limit for user-defined values in reana.yaml.

Closes #874

Copy link

codecov bot commented Feb 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 31.04%. Comparing base (251a172) to head (3e3dc24).
Report is 1 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #877   +/-   ##
=======================================
  Coverage   31.04%   31.04%           
=======================================
  Files          26       26           
  Lines        2500     2500           
=======================================
  Hits          776      776           
  Misses       1724     1724           

@@ -196,6 +196,8 @@ spec:
value: {{ .Values.dask.cluster_default_single_worker_memory | default "2Gi" }}
- name: REANA_DASK_CLUSTER_MAX_SINGLE_WORKER_MEMORY
value: {{ .Values.dask.cluster_max_single_worker_memory | default "8Gi" }}
- name: REANA_DASK_CLUSTER_DEFAULT_SINGLE_WORKER_THREADS
value: !!str {{ .Values.dask.cluster_default_single_worker_threads | default 4 }}
Copy link
Member

Choose a reason for hiding this comment

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

todo: ‏What about the following news headline:

feat(helm): allow configuring number of threads for Dask workers (#877)

Alputer added a commit to Alputer/reana that referenced this pull request Feb 20, 2025
…nahub#877)

Following the integration of Dask into REANA and discussions with
several REANA users, we identified the need to make the number of
threads configurable.

This commit introduces two variables to be configured by admins.

`REANA_DASK_CLUSTER_DEFAULT_SINGLE_WORKER_THREADS` defines the
default number of threads per worker when not specified in
`reana.yaml`

`REANA_DASK_CLUSTER_MAX_SINGLE_WORKER_THREADS` sets the upper limit
for user-defined values in `reana.yaml`.

Closes reanahub#874
@Alputer Alputer force-pushed the dask-num-of-threads branch from 39be834 to a9e2a9d Compare February 20, 2025 14:38
Alputer added a commit to Alputer/reana that referenced this pull request Feb 20, 2025
…nahub#877)

Following the integration of Dask into REANA and discussions with
several REANA users, we identified the need to make the number of
threads configurable.

This commit introduces two variables to be configured by admins.

`REANA_DASK_CLUSTER_DEFAULT_SINGLE_WORKER_THREADS` defines the
default number of threads per worker when not specified in
`reana.yaml`

`REANA_DASK_CLUSTER_MAX_SINGLE_WORKER_THREADS` sets the upper limit
for user-defined values in `reana.yaml`.

Closes reanahub#874
@Alputer Alputer force-pushed the dask-num-of-threads branch from a9e2a9d to 744610a Compare February 20, 2025 15:13
…nahub#877)

Following the integration of Dask into REANA and discussions with
several REANA users, we identified the need to make the number of
threads configurable.

This commit introduces two variables to be configured by admins.

`REANA_DASK_CLUSTER_DEFAULT_SINGLE_WORKER_THREADS` defines the
default number of threads per worker when not specified in
`reana.yaml`

`REANA_DASK_CLUSTER_MAX_SINGLE_WORKER_THREADS` sets the upper limit
for user-defined values in `reana.yaml`.

Closes reanahub#874
@Alputer Alputer force-pushed the dask-num-of-threads branch from 744610a to 3e3dc24 Compare February 20, 2025 15:17
@Alputer Alputer changed the title feat(helm): introduce number_of_threads configuration for Dask feat(helm): allow configuring number of threads for Dask workers Feb 20, 2025
Copy link
Member

@tiborsimko tiborsimko left a comment

Choose a reason for hiding this comment

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

Works nicely 👍

@tiborsimko tiborsimko merged commit 3e3dc24 into reanahub:master Feb 20, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

dask: expose number_of_threads option for Dask workers in reana.yaml
2 participants