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.0.tar.gz
(15.7 kB
view hashes)
Built Distribution
Close
Hashes for daft_launcher-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | abd66e81da77af2f517f2671fe68ecfca22c7e492e0e91fc6a141aacd851dbe8 |
|
MD5 | b92660776eaeb2d73617a37a8ec20c38 |
|
BLAKE2b-256 | a4619543db5f0753b8fa451e0ab3f9c6458db375223c957581338a0e8dc9318a |