Configuration for various dask clusters
Project description
dask-hpcconfig
To install, use
python -m pip install git+https://github.com/umr-lops/dask-hpcconfig.git#egg=dask-hpcconfig
or clone the source:
git clone https://github.com/umr-lops/dask-hpcconfig.git
cd dask-hpcconfig
and then install from there:
python -m pip install .
or as "editable":
python -m pip install -e .
Usage
import dask_hpcconfig
To list the available cluster definitions:
dask_hpcconfig.print_clusters()
or, as a mapping of name to type:
clusters = dask_hpcconfig.available_clusters()
To create a cluster, use:
cluster = dask_hpcconfig.cluster(name)
where name is the name of one of the available clusters.
To override any particular setting: For example on 'datarmor-local' to use only 7 workers for increasing memory size of each worker:
overrides = {"cluster.n_workers": 7}
cluster = dask_hpcconfig.cluster("datarmor-local", **overrides)
For example on 'datarmor' to use only 7 workers for increasing memory size of each worker, and use 49 workers (i.e. 7 mpi_1 nodes) :
overrides = {"cluster.cores": 7}
cluster = dask_hpcconfig.cluster("datarmor", **overrides)
cluster.scale(49)
cluster can then be used to create a Client:
from distributed import Client
client = Client(cluster)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dask_hpcconfig-2025.6.0.tar.gz.
File metadata
- Download URL: dask_hpcconfig-2025.6.0.tar.gz
- Upload date:
- Size: 21.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d93823eafe544794202a03f4163c765c8e632262ac1f9209a78ee003ee500085
|
|
| MD5 |
67c796d3f751ef2fd27c29ec0aa72e38
|
|
| BLAKE2b-256 |
bde645ff5d7893f7d49bc878e90306762390238e2007fca3a171a86bf175debf
|
File details
Details for the file dask_hpcconfig-2025.6.0-py3-none-any.whl.
File metadata
- Download URL: dask_hpcconfig-2025.6.0-py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8e17dfac91e5b1c99d57dc104ede4cdeb0aee2de67b199e85c52b99a17cb88c
|
|
| MD5 |
fba3ae0b443312223cc9f0c7750d0510
|
|
| BLAKE2b-256 |
2bebb440b05b33c6c933eac9946fc2334ef0cc19cc1a6ab6125e39bc312c3168
|