-
Notifications
You must be signed in to change notification settings - Fork 4
/
golem-cluster.mini.yaml
70 lines (55 loc) · 2.21 KB
/
golem-cluster.mini.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# This is Ray on Golem Mini yaml - the smallest config for testnet cluster of up to 10 nodes
# Ray on Golem cluster name
cluster_name: "golem-cluster"
# The maximum number of workers the cluster will have at any given time
max_workers: 10
# The number of minutes that need to pass before an idle worker node is removed by the Autoscaler
idle_timeout_minutes: 5
# The cloud provider-specific configuration properties.
provider:
type: "external"
use_internal_ips: true
module: "ray_on_golem.provider.node_provider.GolemNodeProvider"
parameters:
node_config:
# Parameters for golem demands (same for head and workers)
demand:
image_tag: "golem/ray-on-golem:0.13.0-py3.10.13-ray2.9.3"
# Tells the autoscaler the allowed node types and the resources they provide
available_node_types:
ray.head.default:
resources: {}
node_config: {}
ray.worker.default:
resources: {}
node_config: {}
# The files or directories to copy to the head and worker nodes
# Remote workdir is /root/
file_mounts: {
# <remote_path>: <local_path>
# "/absolute/path/dir/": ".",
# "./relative/path/dir/": ".",
# "./relative/path/file.txt": "./file.txt"
}
# A list of paths to the files or directories to copy from the head node to the worker nodes
cluster_synced_files: []
# List of commands that will be run to initialize the nodes (before `setup_commands`)
initialization_commands: []
# 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: [
"ray start --head --node-ip-address $NODE_IP --include-dashboard=True --dashboard-host 0.0.0.0 --disable-usage-stats --autoscaling-config=~/ray_bootstrap_config.yaml",
]
# Command to start ray on worker nodes. You don't need to change this.
worker_start_ray_commands: [
"ray start --address $RAY_HEAD_IP:6379",
]
# Satisfy checks to disable warning about legacy fields at `ray up`.
# This will be removed by ray-on-golem on the fly.
head_node: true
worker_nodes: true