Skip to main content

No project description provided

Project description

dask-iclx

python version Local tests codecov License

Adapts the dask-lxplus package to enable jobs to run on the IC HTCondor cluster.

Setup

pip install dask-iclx

Usage

from distributed import Client
from dask_iclx import ICCluster
import socket

with ICCluster(
    cores = 1,
    memory = '3000MB',
    disk = '10GB',
    death_timeout = '60',
    lcg = False,
    nanny = False,
    container_runtime = 'none',
    log_directory = '/vols/experiment/username/dask-logs',
    scheduler_options = {
        'port': 60000,
        'host': socket.gethostname(),
    },
    job_extra = {
        "+MaxRuntime": "1200",
    },
    name="ClusterName",
) as cluster:
    n_workers = 1
    with Client(cluster) as client:
        futures = []
        cluster.scale(n_workers)
        for _ in range(n_workers):
            f = client.submit(lambda: socket.gethostname())
            futures.append(f)
        print(client.gather(futures))  # ['lxb10.hep.ph.ic.ac.uk']

IC/CERN extras

There are a few changes in the wrapper to address some of the particular features of the IC HTCondor cluster, but there are also a few changes to detail here.

Options

  • lcg: If set to True this will validate and use the LCG python environment per the managed LCG releases. An example use would be to do the following before running:

    source /cvmfs/sft.cern.ch/lcg/views/LCG_107/x86_64-el9-gcc14-opt/setup.sh
    
  • container_runtime: Can be set to "singularity" or "none". If a runtime is needed for the worker, this selects which will be used for the HTCondor job the worker runs. In principle it should not be necessary when using lcg and should therefore be set to "none". Default though is "singularity".

  • worker_image: The image that will be used if container_runtime is defined to use one. The default defined in jobqueue-ic.yaml.

  • name: Optionally set a string that will identify the jobs in HTCondor.

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_iclx-0.5.1.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

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

dask_iclx-0.5.1-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file dask_iclx-0.5.1.tar.gz.

File metadata

  • Download URL: dask_iclx-0.5.1.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for dask_iclx-0.5.1.tar.gz
Algorithm Hash digest
SHA256 f69a6ed68b120faffba7f8e2bcdac2b092043b0b8336f5f9c57a5fc1365ed24d
MD5 48067b54e0b30b7848f5afa58ec4a7b6
BLAKE2b-256 427acba24915c7671affb4c6f9bcdea9068b7611e5d283819559d7d473d74556

See more details on using hashes here.

File details

Details for the file dask_iclx-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: dask_iclx-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for dask_iclx-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c9346a8b47ca15635629a7e914c6e310dc05fc4b654811b01fcab96051914128
MD5 c9ddcf756e5b0caeca31225fd7e0f617
BLAKE2b-256 85227e296f2e6660b044c3ad99667075d15bb0ad9836064f514a6b8f2d6c08aa

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