-
Notifications
You must be signed in to change notification settings - Fork 54
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): add initial Dask support #821
Conversation
bd35dcc
to
aed3588
Compare
aed3588
to
81a79a8
Compare
81a79a8
to
302172f
Compare
302172f
to
5d9c0c0
Compare
5d9c0c0
to
0e74810
Compare
@@ -22,6 +22,16 @@ rules: | |||
- apiGroups: ["metrics.k8s.io"] | |||
resources: ["pods", "nodes"] | |||
verbs: ["get", "list", "watch"] | |||
# Custom dask kubernetes resources |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be good to wrap the Dask stuff into a conditional variable such as dask.enabled
-- similarly as we have traefik.enabled
-- because some REANA deployments may not want to (or may not be allowed to) support Dask operators in their deployments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, when dask.enabled
is true, it would be good to deploy Dask operator automatically, in quite the same way as we do for traefik; see the dependencies in Chart.yaml
.
a939c31
to
79e08ba
Compare
79e08ba
to
c3c3a8d
Compare
7873d62
to
7f8fc41
Compare
7f8fc41
to
d97d228
Compare
d97d228
to
c48c45a
Compare
c927f28
to
1d04b4d
Compare
1d04b4d
to
9fefa51
Compare
9fefa51
to
7729cc7
Compare
7729cc7
to
c6faf71
Compare
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" }} | ||
{{- end }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a trailing white space that you can remove here.
helm/reana/README.md
Outdated
@@ -68,6 +68,11 @@ This Helm automatically prefixes all names using the release name to avoid colli | |||
| `components.reana_workflow_engine_snakemake.environment` | [REANA-Workflow-Engine-Snakemake](https://github.com/reanahub/reana-workflow-engine-snakemake) environment variables | `{}` | | |||
| `components.reana_workflow_engine_snakemake.image` | [REANA-Workflow-Engine-Snakemake image](https://hub.docker.com/r/reanahub/reana-workflow-engine-snakemake) to use | `docker.io/reanahub/reana-workflow-engine-snakemake:<chart-release-version>` | | |||
| `compute_backends` | List of supported compute backends (kubernetes, htcondorcern, slurmcern) | "kubernetes" | | |||
| `dask.enabled` | Install dask-kubernetes-operator custom resources in the cluster to support Dask workflows | false | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please indent the table so that |
separators would appear under previous ones.
There is also trailing white space at some of the line ends.
helm/reana/values.yaml
Outdated
cluster_max_memory_limit: "16Gi" | ||
cluster_default_number_of_workers: 2 | ||
cluster_default_single_worker_memory: "2Gi" | ||
cluster_max_single_worker_memory: "4Gi" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The value of 4Gi does not correspond to what was advertised in the README file. Please change to 8Gi.
helm/reana/README.md
Outdated
@@ -68,6 +68,11 @@ This Helm automatically prefixes all names using the release name to avoid colli | |||
| `components.reana_workflow_engine_snakemake.environment` | [REANA-Workflow-Engine-Snakemake](https://github.com/reanahub/reana-workflow-engine-snakemake) environment variables | `{}` | | |||
| `components.reana_workflow_engine_snakemake.image` | [REANA-Workflow-Engine-Snakemake image](https://hub.docker.com/r/reanahub/reana-workflow-engine-snakemake) to use | `docker.io/reanahub/reana-workflow-engine-snakemake:<chart-release-version>` | | |||
| `compute_backends` | List of supported compute backends (kubernetes, htcondorcern, slurmcern) | "kubernetes" | | |||
| `dask.enabled` | Install dask-kubernetes-operator custom resources in the cluster to support Dask workflows | false | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The help could be shorter: Enable support for running Dask workflows.
helm/reana/README.md
Outdated
@@ -68,6 +68,11 @@ This Helm automatically prefixes all names using the release name to avoid colli | |||
| `components.reana_workflow_engine_snakemake.environment` | [REANA-Workflow-Engine-Snakemake](https://github.com/reanahub/reana-workflow-engine-snakemake) environment variables | `{}` | | |||
| `components.reana_workflow_engine_snakemake.image` | [REANA-Workflow-Engine-Snakemake image](https://hub.docker.com/r/reanahub/reana-workflow-engine-snakemake) to use | `docker.io/reanahub/reana-workflow-engine-snakemake:<chart-release-version>` | | |||
| `compute_backends` | List of supported compute backends (kubernetes, htcondorcern, slurmcern) | "kubernetes" | | |||
| `dask.enabled` | Install dask-kubernetes-operator custom resources in the cluster to support Dask workflows | false | | |||
| `dask.cluster_max_memory_limit` | Max memory limit for Dask clusters | "16Gi" | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The maximum memory limit for Dask clusters created by users
helm/reana/README.md
Outdated
@@ -68,6 +68,11 @@ This Helm automatically prefixes all names using the release name to avoid colli | |||
| `components.reana_workflow_engine_snakemake.environment` | [REANA-Workflow-Engine-Snakemake](https://github.com/reanahub/reana-workflow-engine-snakemake) environment variables | `{}` | | |||
| `components.reana_workflow_engine_snakemake.image` | [REANA-Workflow-Engine-Snakemake image](https://hub.docker.com/r/reanahub/reana-workflow-engine-snakemake) to use | `docker.io/reanahub/reana-workflow-engine-snakemake:<chart-release-version>` | | |||
| `compute_backends` | List of supported compute backends (kubernetes, htcondorcern, slurmcern) | "kubernetes" | | |||
| `dask.enabled` | Install dask-kubernetes-operator custom resources in the cluster to support Dask workflows | false | | |||
| `dask.cluster_max_memory_limit` | Max memory limit for Dask clusters | "16Gi" | | |||
| `dask.cluster_default_number_of_workers` | Number of workers in Dask clusters by default | 2 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The number of Dask workflows created by default
helm/reana/README.md
Outdated
| `dask.enabled` | Install dask-kubernetes-operator custom resources in the cluster to support Dask workflows | false | | ||
| `dask.cluster_max_memory_limit` | Max memory limit for Dask clusters | "16Gi" | | ||
| `dask.cluster_default_number_of_workers` | Number of workers in Dask clusters by default | 2 | | ||
| `dask.cluster_default_single_worker_memory` | Amount of memory used by a single Dask worker by default | "2Gi" | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The amount of memory used by default by a single Dask worker
helm/reana/README.md
Outdated
| `dask.cluster_max_memory_limit` | Max memory limit for Dask clusters | "16Gi" | | ||
| `dask.cluster_default_number_of_workers` | Number of workers in Dask clusters by default | 2 | | ||
| `dask.cluster_default_single_worker_memory` | Amount of memory used by a single Dask worker by default | "2Gi" | | ||
| `dask.cluster_max_single_worker_memory` | Maximum amount of memory that can be used by a single Dask worker | "8Gi" | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The maximum amount of memory that users can ask for the single Dask worker
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW we may want to chat IRL about these, since the autoscaler could affect the variables and their names and/or documentation strings.
c6faf71
to
6bd0da3
Compare
6bd0da3
to
89d079f
Compare
89d079f
to
c0d2e92
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works nicely 👍
This pull request contains the ongoing work of dask integration into REANA.