Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dashboard] Removes ray.rpc.ReportEventService and Dashboard head as gRPC server. #45219

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

rynewang
Copy link
Contributor

@rynewang rynewang commented May 9, 2024

The Dashboard Head is an HTTP server as well as a gRPC server. The latter only serves 1 single gRPC service: ray.rpc.ReportEventService and its only method's only usage is from the Dashboard Agent in event_agent.py. This PR replaces the RPC with HTTP and removes the Head's ability to serve as a gRPC server. Note, it still has gRPC clients sending RPCs to Agents, Raylets and GCS.

This is a step forward to remove all gRPC usage from the head.

@rynewang rynewang requested a review from a team as a code owner May 9, 2024 13:11
Signed-off-by: Ruiyang Wang <[email protected]>
@@ -149,7 +149,6 @@ In addition to ports specified above, the head node needs to open several more p
- ``--port``: Port of Ray (GCS server). The head node will start a GCS server listening on this port. Default: 6379.
- ``--ray-client-server-port``: Listening port for Ray Client Server. Default: 10001.
- ``--redis-shard-ports``: Comma-separated list of ports for non-primary Redis shards. Default: Random values.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so this change is not backward compatible?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We still accept this arg, just no longer use it, so existing workload won't crash (will receive a warning)

Signed-off-by: Ruiyang Wang <[email protected]>
serialized_proto = request.SerializeToString()
with aiohttp.ClientSession() as session:
async with session.post(
f"http://{self._dashboard_address}/report_events",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
f"http://{self._dashboard_address}/report_events",
f"http://{self._dashboard_address}/events",

?

Comment on lines 677 to +681
def dashboard_grpc_port(self):
"""Get the dashboard head grpc port"""
return self._dashboard_grpc_port
raise AttributeError(
"Dashboard grpc server is removed. There is no port to " "listen."
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this used? If not, we can completely remove it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not used. I kept it for backward compatibility. I can remove it if you like.

@rynewang rynewang self-assigned this May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants