Skip to main content

Configuration for various dask clusters

Reason this release was yanked:

can produce invalid job specs

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-2023.3.1.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

dask_hpcconfig-2023.3.1-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file dask-hpcconfig-2023.3.1.tar.gz.

File metadata

  • Download URL: dask-hpcconfig-2023.3.1.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for dask-hpcconfig-2023.3.1.tar.gz
Algorithm Hash digest
SHA256 68b8c480407228749a1919f1199774e708aa3f9922e361c9591e3520d3df348e
MD5 7c72873db555793b87e21c46b8cbf8f5
BLAKE2b-256 1ffaf955e85f5400b3ef3e4898eb6cf9471974fa2e6e86d8c77aca43cb637d3b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dask_hpcconfig-2023.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 810674634bbdf691d4e1d6edb2aa7e8985978ff7e2e2803ea694ac070cf25927
MD5 3b9fc23c9f9adad7a61a46da9a8e1197
BLAKE2b-256 515a7bac8f87a7cf086a0fdc5af7be98393258545da04c2999ace365f7cd5b65

See more details on using hashes here.

Supported by

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