Skip to main content

Utilities for expanding dask-jobqueue with appropriate settings for NCAR's clusters

Project description

GitHub Workflow Status Python Package Index

ncar-jobqueue

Utilities for expanding dask-jobqueue with appropriate settings for NCAR’s clusters.

Supported clusters:

  • Cheyenne

  • Casper (DAV)

  • CGD’s Hobart

Installation

ncar-jobqueue can be installed from PyPI with pip:

pip install ncar-jobqueue

Usage

Casper

>>> from ncar_jobqueue import NCARCluster
>>> from dask.distributed import Client
>>> cluster = NCARCluster()
>>> cluster
NCARCluster(cores=0, memory=0 B, workers=0/0, jobs=0/0)
>>> cluster.scale(2)
>>> cluster
NCARCluster(cores=2, memory=50.00 GB, workers=2/2, jobs=2/2)
>>> client = Client(cluster)

Cheyenne

>>> from ncar_jobqueue import NCARCluster
>>> from dask.distributed import Client
>>> cluster = NCARCluster()
>>> cluster
NCARCluster(cores=0, memory=0 B, workers=0/0, jobs=0/0)
>>> cluster.scale(2)
>>> cluster
NCARCluster(cores=72, memory=218.00 GB, workers=2/2, jobs=2/2)
>>> client = Client(cluster)

Hobart

>>> from ncar_jobqueue import NCARCluster
>>> from dask.distributed import Client
>>> cluster = NCARCluster()
>>> cluster
NCARCluster(cores=0, memory=0 B, workers=0/0, jobs=0/0)
>>> cluster.scale(2)
>>> cluster
NCARCluster(cores=96, memory=192.00 GB, workers=2/2, jobs=2/2)
>>> client = Client(cluster)

Non-NCAR machines

On non-NCAR machines, ncar-jobqueue will warn the user, and it will use distributed.LocalCluster:

>>> from ncar_jobqueue import NCARCluster
.../ncar_jobqueue/cluster.py:42: UserWarning: Unable to determine which NCAR cluster you are running on... Returning a `distributed.LocalCluster` class.
warn(message)
>>> from dask.distributed import Client
>>> cluster = NCARCluster()
>>> cluster
NCARCluster('tcp://127.0.0.1:49334', workers=4, threads=8, memory=17.18 GB)

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

ncar-jobqueue-2020.3.4.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

ncar_jobqueue-2020.3.4-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file ncar-jobqueue-2020.3.4.tar.gz.

File metadata

  • Download URL: ncar-jobqueue-2020.3.4.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

File hashes

Hashes for ncar-jobqueue-2020.3.4.tar.gz
Algorithm Hash digest
SHA256 d3fa3d6d3663cfd170a1e40c4c81fc3a1fb1b25caa1626460e9f39600d961638
MD5 d075f45bd70eb68b36863fb64c5cab96
BLAKE2b-256 0364a68989f7d654c40a042f9ac519f734b97ed9664a1fa011e7d67b57ff4eec

See more details on using hashes here.

File details

Details for the file ncar_jobqueue-2020.3.4-py3-none-any.whl.

File metadata

  • Download URL: ncar_jobqueue-2020.3.4-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

File hashes

Hashes for ncar_jobqueue-2020.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b69aef256ca4d4bc2baee2ce5b46e85e10e6a70318264c14fb5431df566ecc56
MD5 14fb6274d1155b9593116a185743e1a3
BLAKE2b-256 fbef68af97949cef378a7df475bf83e0128bb4345420b6bdaeec97f0e6c07577

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