Skip to content

volga-project/volga-ops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Running on Kubernetes

Launching EKS cluster

Make sure you have a proper AWS account with right permissions. Install eksctl Locate cluster_config.yaml on your machine (cd into this dir)

Start Cluster

  • eksctl create cluster -f cluster_config.yaml

Scale Cluster

  • eksctl scale nodegroup --cluster=volga-test-cluster --nodes=16 --name=ray-workers --nodes-min=0 --nodes-max=16

Delete Cluster

  • eksctl delete cluster -f cluster_config.yaml --disable-nodegroup-eviction --force

Note that the config uses hard-coded VPC configuration, you will need to create your own (or use default values given by eksctl)

Launching Minikube cluster

Start Minikube cluster

  • minikube config set memory 8192 # sets memory per node

  • minikube start --driver docker --nodes 5 # cluster with 5 nodes

Deploy

Deploy Ray cluster

  • Intsall helmfile - https://github.com/helmfile/helmfile

  • Make sure clusterType env val is set to minikube in helm/env_values.yaml

  • Install kuberay (from /helm folder):

    helmfile --selector name=kuberay-operator sync

  • Install Ray Cluster:

    helmfile --selector name=ray-cluster sync

  • To delete/recreate:

    helmfile --selector name=ray-cluster delete, helmfile --selector name=ray-cluster sync

  • helm/values/kuberay/ray-cluster/values.yaml.gotmpl contains cluster configuration values (head/worker specs, ports, CPU/MEM reqs, etc.)

Make sure RayCluster's memory and CPU specs in helm values match whatever node you are using for your EKS cluster.

To run Volga tests (https://github.com/volga-project/volga/blob/master/volga/streaming/runtime/network/test_remote_transfer.py as example)

Running tests in Docker

cd docker
docker build . -t volga_perf
docker run volga_perf

Test script is in perf_test.py. Everytime script is updated image needs to be re-built (docker build . -t volga_perf)

About

Operational utilities to run Volga

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published