Skip to main content

A simple launcher for spinning up and managing Ray clusters for Daft.

Project description

Daft Launcher CLI Tool

A simple launcher for spinning up and managing Ray clusters for Daft.

Purpose

What daft-launcher is capable of:

  1. Spinning up clusters.
  2. Listing all available clusters (as well as their statuses).
  3. Submitting jobs to a cluster.
  4. Opening up a "dashboard process" to allow end-users to connect to a Ray dashboard to view metrics about their cluster.
  5. Spinning down clusters.
  6. Creating a default configuration file.

Currently supported cloud providers

  • AWS
  • GCP
  • Azure

Usage

Pre-requisites

  1. You will need a valid AWS account with the necessary IAM role to spin up EC2 instances.
  • This IAM role can either be created by you (assuming you have the appropriate permissions).
  • Or this IAM role will need to be created by your administrator.
  1. You will need to have the AWS CLI installed and configured on your machine.
  2. You will need to login using the AWS CLI. For full instructions, please look here.

Installation

Using uv:

# create project
mkdir my-project
cd my-project

# initialize project and setup virtual env
uv init
uv venv
source .venv/bin/activate

# install launcher
uv pip install daft-launcher

Example

All interactions with daft-launcher are primarily communicated via a configuration file. By default, daft-launcher will look inside your $CWD for a file named .daft-launcher.toml. You can also specify a custom file by passing in the path to the configuration file as an argument, if you wish.

# create a new configuration file
# will create a file named `.daft-launcher.toml` in the current working directory
daft init-config --non-interactive

# spin up a cluster
daft up $CONFIG_FILE
# if you don't include $CONFIG_FILE, it will default to using `.daft-launcher.toml`
# e.g.: `daft up`

# list all the active clusters (can have multiple clusters running at the same time)
daft list

# submit a directory and a command to run on the cluster
daft submit $CONFIG_FILE --working-dir $WORKING_DIR -- command arg1 arg2 ...
# if you don't include $CONFIG_FILE, it will default to using `.daft-launcher.toml`
# e.g.: `daft submit --working-dir $WORKING_DIR -- command arg1 arg2 ...`

# spin down a cluster
daft down $CONFIG_FILE
# if you don't include $CONFIG_FILE, it will default to using `.daft-launcher.toml`
# e.g.: `daft down`

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

daft_launcher-0.3.2.tar.gz (18.7 kB view hashes)

Uploaded Source

Built Distribution

daft_launcher-0.3.2-py3-none-any.whl (19.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page