Skip to content

Commit

Permalink
Change client port from 50051 to 10001. Remove ray-client-server arg.
Browse files Browse the repository at this point in the history
Ray client now runs on the head node by default using port 10001.
  • Loading branch information
DmitriGekhtman committed Feb 6, 2021
1 parent 0dee6e0 commit 0b96c84
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions python/ray/autoscaler/kubernetes/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ provider:
ports:
- name: client
protocol: TCP
port: 50051
targetPort: 50051
port: 10001
targetPort: 10001
- name: dashboard
protocol: TCP
port: 8265
Expand Down Expand Up @@ -138,7 +138,7 @@ head_node:
args: ["trap : TERM INT; sleep infinity & wait;"]
ports:
- containerPort: 6379 # Redis port
- containerPort: 50051 # Used by Ray Client
- containerPort: 10001 # Used by Ray Client
- containerPort: 8265 # Used by Ray Dashboard

# This volume allocates shared memory for Ray to use for its plasma
Expand Down Expand Up @@ -253,7 +253,7 @@ worker_setup_commands: []
# Note dashboard-host is set to 0.0.0.0 so that kubernetes can port forward.
head_start_ray_commands:
- ray stop
- ulimit -n 65536; ray start --head --autoscaling-config=~/ray_bootstrap_config.yaml --dashboard-host 0.0.0.0 --ray-client-server-port 50051
- ulimit -n 65536; ray start --head --autoscaling-config=~/ray_bootstrap_config.yaml --dashboard-host 0.0.0.0

# Command to start ray on worker nodes. You don't need to change this.
worker_start_ray_commands:
Expand Down
8 changes: 4 additions & 4 deletions python/ray/autoscaler/kubernetes/example-full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ provider:
ports:
- name: client
protocol: TCP
port: 50051
targetPort: 50051
port: 10001
targetPort: 10001
- name: dashboard
protocol: TCP
port: 8265
Expand Down Expand Up @@ -138,7 +138,7 @@ head_node:
args: ["trap : TERM INT; sleep infinity & wait;"]
ports:
- containerPort: 6379 # Redis port
- containerPort: 50051 # Used by Ray Client
- containerPort: 10001 # Used by Ray Client
- containerPort: 8265 # Used by Ray Dashboard

# This volume allocates shared memory for Ray to use for its plasma
Expand Down Expand Up @@ -253,7 +253,7 @@ worker_setup_commands: []
# Note dashboard-host is set to 0.0.0.0 so that kubernetes can port forward.
head_start_ray_commands:
- ray stop
- ulimit -n 65536; ray start --head --autoscaling-config=~/ray_bootstrap_config.yaml --dashboard-host 0.0.0.0 --ray-client-server-port 50051
- ulimit -n 65536; ray start --head --autoscaling-config=~/ray_bootstrap_config.yaml --dashboard-host 0.0.0.0

# Command to start ray on worker nodes. You don't need to change this.
worker_start_ray_commands:
Expand Down
4 changes: 2 additions & 2 deletions python/ray/autoscaler/kubernetes/example-minimal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ provider:
ports:
- name: client
protocol: TCP
port: 50051
targetPort: 50051
port: 10001
targetPort: 10001
- name: dashboard
protocol: TCP
port: 8265
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
Before running this script, you must port-forward from the local host to
the relevant Kubernetes head service e.g.
kubectl -n ray port-forward service/example-cluster-ray-head 50051:50051.
kubectl -n ray port-forward service/example-cluster-ray-head 10001:10001.
Set the constant LOCAL_PORT below to the local port being forwarded.
"""
LOCAL_PORT = 50051
LOCAL_PORT = 10001


@ray.remote
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ spec:
args: ['trap : TERM INT; sleep infinity & wait;']
ports:
- containerPort: 6379 # Redis port
- containerPort: 50051 # Used by Ray Client
- containerPort: 10001 # Used by Ray Client
- containerPort: 8265 # Used by Ray Dashboard

# This volume allocates shared memory for Ray to use for its plasma
Expand Down Expand Up @@ -114,7 +114,7 @@ spec:
# Note dashboard-host is set to 0.0.0.0 so that Kubernetes can port forward.
headStartRayCommands:
- ray stop
- ulimit -n 65536; ray start --head --no-monitor --dashboard-host 0.0.0.0 --ray-client-server-port 50051
- ulimit -n 65536; ray start --head --no-monitor --dashboard-host 0.0.0.0
# Commands to start Ray on worker nodes. You don't need to change this.
workerStartRayCommands:
- ray stop
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ spec:
args: ['trap : TERM INT; sleep infinity & wait;']
ports:
- containerPort: 6379 # Redis port
- containerPort: 50051 # Used by Ray Client
- containerPort: 10001 # Used by Ray Client
- containerPort: 8265 # Used by Ray Dashboard

# This volume allocates shared memory for Ray to use for its plasma
Expand Down Expand Up @@ -114,7 +114,7 @@ spec:
# Note dashboard-host is set to 0.0.0.0 so that Kubernetes can port forward.
headStartRayCommands:
- ray stop
- ulimit -n 65536; ray start --head --no-monitor --dashboard-host 0.0.0.0 --ray-client-server-port 50051
- ulimit -n 65536; ray start --head --no-monitor --dashboard-host 0.0.0.0
# Commands to start Ray on worker nodes. You don't need to change this.
workerStartRayCommands:
- ray stop
Expand Down

0 comments on commit 0b96c84

Please sign in to comment.