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

Install from either conda-forge

conda install dask-iclx

or PyPI

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.3.tar.gz (13.1 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.3-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dask_iclx-0.5.3.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for dask_iclx-0.5.3.tar.gz
Algorithm Hash digest
SHA256 db7c15fcbd15a5243725ffddd34fabfb8f0b00e28e26e78496b73f06f524f709
MD5 81e539d05af157f923bc04c331355920
BLAKE2b-256 9d45189a48f93f971d2dea16b09c30524685170e5099b1dbc7cd33b796a3f957

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dask_iclx-0.5.3-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for dask_iclx-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0032ea4f75924ee0178eaefc42d9268be45c1853aa0c5d5912d46ea8a4870372
MD5 561efce956430804f3415829e51c7377
BLAKE2b-256 532c99ca10035b293e3df27e82b69a700f64d531aafedca59ff110782bfc960a

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