You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ -f /etc/fuse.conf ] && sudo sed -i 's/#user_allow_other/user_allow_other/g' /etc/fuse.conf || (sudo sh -c 'echo "user_allow_other" > /etc/fuse.conf'); # This is needed for `-o allow_other` option for `goofys`;
99
106
100
107
# Command to start ray on the head node. You don't need to change this.
108
+
# NOTE: these are very performance-sensitive. Each new item opens/closes an SSH
109
+
# connection, which is expensive. Try your best to co-locate commands into fewer
110
+
# items! The same comment applies for worker_start_ray_commands.
111
+
#
112
+
# Increment the following for catching performance bugs easier:
113
+
# current num items (num SSH connections): 2
101
114
head_start_ray_commands:
102
115
# Set the ulimit as suggested by ray docs for performance. https://docs.ray.io/en/latest/cluster/guide.html?highlight=ulimit#system-configuration
103
116
# Solution from https://discuss.ray.io/t/setting-ulimits-on-ec2-instances/590
104
117
# This line is intentionally separated from the next line to reload the session after the ulimit is set.
- (ps aux | grep "-m sky.skylet.skylet" | grep -q python3) || nohup python3 -m sky.skylet.skylet >> ~/.sky/skylet.log 2>&1 & # Start skylet daemon. (Should not place it in the head_setup_commands, otherwise it will run before sky is installed.)
108
-
- ray stop; ray start --head --port=6379 --object-manager-port=8076 --autoscaling-config=~/ray_bootstrap_config.yaml {{"--resources='%s'" % custom_resources if custom_resources}}
120
+
# Start skylet daemon. (Should not place it in the head_setup_commands, otherwise it will run before sky is installed.)
121
+
# NOTE: --disable-usage-stats in `ray start` saves 10 seconds of idle wait.
ray stop; ray start --disable-usage-stats --head --port=6379 --object-manager-port=8076 --autoscaling-config=~/ray_bootstrap_config.yaml {{"--resources='%s'" % custom_resources if custom_resources}}
- ray stop; ray start --address=$RAY_HEAD_IP:6379 --object-manager-port=8076 {{"--resources='%s'" % custom_resources if custom_resources}}
129
+
- ray stop; ray start --disable-usage-stats --address=$RAY_HEAD_IP:6379 --object-manager-port=8076 {{"--resources='%s'" % custom_resources if custom_resources}}
[ -f /etc/fuse.conf ] && sudo sed -i 's/#user_allow_other/user_allow_other/g' /etc/fuse.conf || (sudo sh -c 'echo "user_allow_other" > /etc/fuse.conf'); # This is needed for `-o allow_other` option for `gcsfuse`;
0 commit comments