update long running release tests

This commit is contained in:
Max Fitton
2020-12-11 10:22:10 -08:00
parent 6532e30402
commit 9b3863b81b
2 changed files with 20 additions and 52 deletions
+9 -40
View File
@@ -1,48 +1,17 @@
cluster_name: default
min_workers: 0
max_workers: 0
target_utilization_fraction: 0.8
idle_timeout_minutes: 5
cluster_name: ray-release-long-running-tests
docker:
image: anyscale/ray:latest
container_name: ray_container
pull_before_run: False
# Cloud-provider specific configuration.
provider:
type: aws
region: us-west-2
availability_zone: us-west-2a
availability_zone: us-west-2a, us-west-2b, us-west-2c
auth:
ssh_user: ubuntu
head_node:
InstanceType: m5.2xlarge
ImageId: ami-0888a3b5189309429 # DLAMI 7/1/19
BlockDeviceMappings:
- DeviceName: /dev/sda1
Ebs:
VolumeSize: 150
worker_nodes:
InstanceType: m5.large
ImageId: ami-0888a3b5189309429 # DLAMI 7/1/19
BlockDeviceMappings:
- DeviceName: /dev/sda1
Ebs:
VolumeSize: 150
# Run workers on spot by default. Comment this out to use on-demand.
InstanceMarketOptions:
MarketType: spot
# List of shell commands to run to set up nodes.
setup_commands: []
# Custom commands that will be run on the head node after common setup.
head_setup_commands: []
# Custom commands that will be run on worker nodes after common setup.
worker_setup_commands: []
# Command to start ray on the head node. You don't need to change this.
head_start_ray_commands: []
# Command to start ray on worker nodes. You don't need to change this.
worker_start_ray_commands: []
InstanceType: m5.xlarge
+11 -12
View File
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
ray_version=""
ray_version=""
commit=""
ray_branch=""
workload=""
@@ -48,20 +48,19 @@ echo "commit: $commit"
echo "branch: $ray_branch"
echo "workload: $workload"
wheel="https://s3-us-west-2.amazonaws.com/ray-wheels/$ray_branch/$commit/ray-$ray_version-cp36-cp36m-manylinux2014_x86_64.whl"
wheel="https://s3-us-west-2.amazonaws.com/ray-wheels/$ray_branch/$commit/ray-$ray_version-cp37-cp37m-manylinux2014_x86_64.whl"
echo set-window-option -g mouse on > ~/.tmux.conf
echo 'termcapinfo xterm* ti@:te@' > ~/.screenrc
# Serve load testing tool
rm -r wrk || true && git clone https://github.com/wg/wrk.git wrk && cd wrk && make -j && sudo cp wrk /usr/local/bin
pip install -U pip
unset RAY_ADDRESS
source activate tensorflow_p36
conda remove -y --force wrapt || true
cur_dir=$(pwd)
cd /tmp && rm -rf wrk && git clone https://github.com/wg/wrk.git wrk && cd wrk && make -j && cp wrk /usr/local/bin
cd $cur_dir
pip install --upgrade pip
pip install -U tensorflow==1.14
pip install -q -U "$wheel" Click
pip install -q -U "$wheel"
pip install -q "ray[all]" "gym[atari]"
cd ..
python "./workloads/$workload.py"
ray stop && sleep 2
unset RAY_ADDRESS
python "./workloads/$workload.py"