/dfleet

CLI to mange fleets of remote Dask clusters via JupyterLab

Primary LanguagePythonMIT LicenseMIT

dfleet

a CLI to mange fleets of remote Dask clusters via JLab Dask extension

Requirements

ssh <username>@cms-it-hub.cloud.cnaf.infn.it -p 32022

Install

  • Install via pip
pip install git+https://github.com/comp-dev-cms-ita/dfleet
  • Setup the environment
# you do NOT need to set JUPYTERHUB_API_TOKEN  if you sit on a jlab instance
# this is only needed if you are running the CLI from your laptop
export JUPYTERHUB_API_TOKEN=<PUT JHUB TOKEN HERE>


export JUPYTERHUB_HOST=https://cms-it-hub.cloud.cnaf.infn.it

Create a cluster

dfleet  cluster create --sitename HTCondor-T2_LNL_PD_CloudVeneto

For more options:

dfleet  cluster create --help

Edit cluster

dfleet  cluster edit --adapt '{"minimum": 20, "maximum": 60}'  <PUT CLUSTER ID HERE>

Get cluster status

dfleet cluster status <PUT CLUSTER ID HERE>

Delete a cluster

dfleet cluster delete <PUT CLUSTER ID HERE>

List created clusters

dfleet cluster list