Skip to content

Commit d168de3

Browse files
authored
fix: ulimit set in ray.sub (#989)
Signed-off-by: Bogdan Salyp <bogdansalyp@gmail.com>
1 parent 8e0daa5 commit d168de3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ray.sub

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ DASHBOARD_GRPC_PORT=${DASHBOARD_GRPC_PORT:-52367}
6666
DASHBOARD_PORT=${DASHBOARD_PORT:-8265} # Also used by debugger
6767
DASHBOARD_AGENT_LISTEN_PORT=${DASHBOARD_AGENT_LISTEN_PORT:-52365}
6868

69+
# Setting ulimit is recommended by ray best practices page
70+
# @ https://docs.ray.io/en/latest/cluster/vms/user-guides/large-cluster-best-practices.html
71+
# It's session based and won't affect the system outside the script
72+
ulimit -Sn 65535
73+
6974
# On our clusters, the largest port range on an idle worker appeared between 52369-64607
7075
# (not including the other ports set by this script). So this range is chosen to be
7176
# somewhere in the middle

0 commit comments

Comments
 (0)