cars.orchestrator.cluster.pbs_dask_cluster
Contains abstract function for PBS dask Cluster
Module Contents
Classes
PbsDaskCluster |
Functions
|
Create a Dask cluster. |
- class cars.orchestrator.cluster.pbs_dask_cluster.PbsDaskCluster(conf_cluster, out_dir, launch_worker=True)[source]
Bases:
cars.orchestrator.cluster.abstract_dask_cluster.AbstractDaskCluster
PbsDaskCluster
- cars.orchestrator.cluster.pbs_dask_cluster.start_cluster(nb_workers, walltime, out_dir, timeout=600, activate_dashboard=False, python=None)[source]
Create a Dask cluster.
Each worker will be spawned in an independent job with a single CPU allocated to it, and will use a single process. This is done to maximize CPU utilization and minimize scheduling delay.
The CARS_PBS_QUEUE environment variable, if defined, is used to specify the queue in which worker jobs are scheduled.
- Parameters
nb_workers (int) – Number of dask workers
walltime (string) – Walltime for each dask worker
out_dir (string) – Output directory
- Returns
Dask cluster and dask client
- Return type
(dask_jobqueue.PBSCluster, dask.distributed.Client) tuple