Skip to content

Instantly share code, notes, and snippets.

@xwjiang2010
Created September 15, 2021 21:38
Show Gist options
  • Save xwjiang2010/3e6808fda3941f58f492fb1c891374ca to your computer and use it in GitHub Desktop.
Save xwjiang2010/3e6808fda3941f58f492fb1c891374ca to your computer and use it in GitHub Desktop.
cluster_name: RAT-cluster
min_workers: 20
initial_workers: 20
max_workers: 20
autoscaling_mode: aggressive
idle_timeout_minutes: 20
provider:
type: aws
region: us-west-2
availability_zone: us-west-2a
cache_stopped_nodes: False
# security_group:
# GroupName: test_security_group_name
# IpPermissions:
# - FromPort: 10001
# ToPort: 10001
# IpProtocol: TCP
# IpRanges:
# - CidrIp: 0.0.0.0/0
# - FromPort: 10000
# ToPort: 10000
# IpProtocol: TCP
# IpRanges:
# - CidrIp: 0.0.0.0/0
available_node_types:
ray.head.default:
min_workers: 0
max_workers: 0
# resources: {"CPU": 0}
node_config:
InstanceType: c5.2xlarge
ImageId: latest_dlami
KeyName: xwjiang-test
BlockDeviceMappings:
- DeviceName: /dev/sda1
Ebs:
VolumeSize: 300
ray.worker.default:
min_workers: 4
max_workers: 4
resources: {}
node_config:
InstanceType: c5.2xlarge
ImageId: latest_dlami
KeyName: xwjiang-test
BlockDeviceMappings:
- DeviceName: /dev/sda1
Ebs:
VolumeSize: 300
head_node_type: ray.head.default
auth:
ssh_user: ubuntu
ssh_private_key: ~/Documents/aws_secrets/xwjiang-test.pem
file_mounts: {
# /home/ubuntu/anaconda3/lib/python3.7/site-packages/ray/tune: /Users/xwjiang/ray/python/ray/tune,
/home/ubuntu/Downloads/datasets/train.csv: /Users/xwjiang/Downloads/datasets/train.csv
}
rsync_exclude:
- "**/.git"
- "**/.git/**"
rsync_filter:
- ".gitignore"
initialization_commands: []
setup_commands: [
"pip install -U ray",
"pip install 'ray[default]'",
"pip install 'ray[tune]'",
"pip install ipdb",
"pip install xgboost",
"pip install tune-sklearn",
"pip install hpbandster ConfigSpace",
# "pip install https://s3-us-west-2.amazonaws.com/ray-wheels/master/d43d297d9ab5c69f75b854419fa8e4fd70caec44/ray-2.0.0.dev0-cp37-cp37m-manylinux2014_x86_64.whl"
# "sudo apt-get update",
# "sudo apt-get install -y build-essential curl unzip psmisc",
# "pip install cython==0.29.0 pytest",
# "rm -rf my_ray_project",
# "git clone --branch client_closed https://github.com/xwjiang2010/ray.git my_ray_project",
# "my_ray_project/ci/travis/install-bazel.sh",
# "pip install -e my_ray_project/python --verbose",
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment