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.

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.0.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.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dask_iclx-0.5.0.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.0.tar.gz
Algorithm Hash digest
SHA256 8ba39b1ab48b6bd487b64b916d7d7c0d0d10c01a08f9831800487615aadb05ec
MD5 86e9e55611dc1a8bc6799cf417f64fe4
BLAKE2b-256 fe61c5f35f75644a9a72e7066774ae25e5cc41396b24e81fc9ffe81ed46c70ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dask_iclx-0.5.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 728fd7453bb70e96ea050db9e942e524f3d95f326a78af065a3a9286a97de213
MD5 4c2253252edee6edc5d96ed9b801b639
BLAKE2b-256 0f9351a6095da829d70b242f7d7014a829ef110fc4685150e9b77f410401173d

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