Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dask_hpcconfig-2025.6.0.tar.gz (21.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dask_hpcconfig-2025.6.0-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

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

Hashes for dask_hpcconfig-2025.6.0.tar.gz
Algorithm Hash digest
SHA256 d93823eafe544794202a03f4163c765c8e632262ac1f9209a78ee003ee500085
MD5 67c796d3f751ef2fd27c29ec0aa72e38
BLAKE2b-256 bde645ff5d7893f7d49bc878e90306762390238e2007fca3a171a86bf175debf

See more details on using hashes here.

File details

Details for the file dask_hpcconfig-2025.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for dask_hpcconfig-2025.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d8e17dfac91e5b1c99d57dc104ede4cdeb0aee2de67b199e85c52b99a17cb88c
MD5 fba3ae0b443312223cc9f0c7750d0510
BLAKE2b-256 2bebb440b05b33c6c933eac9946fc2334ef0cc19cc1a6ab6125e39bc312c3168

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page