|
25 | 25 | REANA_KUBERNETES_JOBS_MAX_USER_TIMEOUT_LIMIT,
|
26 | 26 | REANA_INTERACTIVE_SESSION_MAX_INACTIVITY_PERIOD,
|
27 | 27 | DASK_ENABLED,
|
| 28 | + DASK_AUTOSCALER_ENABLED, |
28 | 29 | REANA_DASK_CLUSTER_DEFAULT_NUMBER_OF_WORKERS,
|
29 | 30 | REANA_DASK_CLUSTER_MAX_MEMORY_LIMIT,
|
30 | 31 | REANA_DASK_CLUSTER_DEFAULT_SINGLE_WORKER_MEMORY,
|
@@ -137,6 +138,13 @@ def info(user, **kwargs): # noqa
|
137 | 138 | value:
|
138 | 139 | type: string
|
139 | 140 | type: object
|
| 141 | + dask_autoscaler_enabled: |
| 142 | + properties: |
| 143 | + title: |
| 144 | + type: string |
| 145 | + value: |
| 146 | + type: string |
| 147 | + type: object |
140 | 148 | dask_cluster_max_memory_limit:
|
141 | 149 | properties:
|
142 | 150 | title:
|
@@ -209,6 +217,10 @@ def info(user, **kwargs): # noqa
|
209 | 217 | "title": "Dask workflows allowed in the cluster",
|
210 | 218 | "value": "False"
|
211 | 219 | },
|
| 220 | + "dask_autoscaler_enabled": { |
| 221 | + "title": "Dask autoscaler enabled in the cluster", |
| 222 | + "value": "False" |
| 223 | + }, |
212 | 224 | "dask_cluster_max_memory_limit": {
|
213 | 225 | "title": "The maximum memory limit for Dask clusters created by users",
|
214 | 226 | "value": "16Gi"
|
@@ -283,6 +295,10 @@ def info(user, **kwargs): # noqa
|
283 | 295 | ),
|
284 | 296 | )
|
285 | 297 | if DASK_ENABLED:
|
| 298 | + cluster_information["dask_autoscaler_enabled"] = dict( |
| 299 | + title="Dask autoscaler enabled in the cluster", |
| 300 | + value=bool(DASK_AUTOSCALER_ENABLED), |
| 301 | + ) |
286 | 302 | cluster_information["dask_cluster_default_number_of_workers"] = dict(
|
287 | 303 | title="The number of Dask workers created by default",
|
288 | 304 | value=REANA_DASK_CLUSTER_DEFAULT_NUMBER_OF_WORKERS,
|
@@ -345,6 +361,7 @@ class InfoSchema(Schema):
|
345 | 361 | kubernetes_max_memory_limit = fields.Nested(StringInfoValue)
|
346 | 362 | dask_enabled = fields.Nested(StringInfoValue)
|
347 | 363 | if DASK_ENABLED:
|
| 364 | + dask_autoscaler_enabled = fields.Nested(StringInfoValue) |
348 | 365 | dask_cluster_default_number_of_workers = fields.Nested(StringInfoValue)
|
349 | 366 | dask_cluster_max_memory_limit = fields.Nested(StringInfoValue)
|
350 | 367 | dask_cluster_default_single_worker_memory = fields.Nested(StringInfoValue)
|
|
0 commit comments