Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Fly.io as a provider #417

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ci/scripts/test_imports.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ test_import "aws" "import dask_cloudprovider.aws"
test_import "azure" "import dask_cloudprovider.azure"
test_import "digitalocean" "import dask_cloudprovider.digitalocean"
test_import "gcp" "import dask_cloudprovider.gcp"
test_import "fly" "import dask_cloudprovider.fly"
test_import "ibm" "import dask_cloudprovider.ibm"
test_import "openstack" "import dask_cloudprovider.openstack"
10 changes: 10 additions & 0 deletions dask_cloudprovider/cloudprovider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,16 @@ cloudprovider:
docker_image: "daskdev/dask:latest" # docker image to use
bootstrap: true # It is assumed that the OS image does not have Docker and needs bootstrapping. Set this to false if using a custom image with Docker already installed.

fly:
token: null # API token for interacting with the Fly API
region: "lax" # Region to launch Droplets in
vm_size: "shared-cpu-1x" # Droplet size to launch, default is 1GB RAM, 1 vCPU
image: "ghcr.io/dask/dask:latest" # Operating System image to use
memory_mb: 1024 # Memory in MB to use for the scheduler and workers
cpus: 1 # Number of CPUs to use for the scheduler and workers
app_name: null # Name of Fly app to use. If it is blank, a random name will be generated.
org_slug: "personal" # Organization slug to use. If it is blank, the personal organization will be used.

ibm:
api_key: null
image: "ghcr.io/dask/dask:latest"
Expand Down
6 changes: 6 additions & 0 deletions dask_cloudprovider/fly/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from .machine import (
FlyMachine,
FlyMachineWorker,
FlyMachineScheduler,
FlyMachineCluster,
)
Loading
Loading