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:
- Spinning up clusters.
- Listing all available clusters (as well as their statuses).
- Submitting jobs to a cluster.
- Opening up a "dashboard process" to allow end-users to connect to a Ray dashboard to view metrics about their cluster.
- Spinning down clusters.
- Creating a default configuration file.
Currently supported cloud providers
- AWS
- GCP
- Azure
Usage
Pre-requisites
- 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.
- You will need to have the AWS CLI installed and configured on your machine.
- 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
Release history Release notifications | RSS feed
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.2.5.tar.gz
(17.1 kB
view hashes)
Built Distribution
Close
Hashes for daft_launcher-0.2.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbed2a705db2730d59ce86767afa5df9efd93b12902c1a935af8ae754e372285 |
|
MD5 | af766fddaaae99520a0726a099e2e348 |
|
BLAKE2b-256 | dcbe080d78d10bb31a61aa2fe6d7ecde7cb952531ccdeabe9f861e323e44cc00 |