-
Notifications
You must be signed in to change notification settings - Fork 6k
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
[core] Remove grpc client thread number #49237
[core] Remove grpc client thread number #49237
Conversation
Signed-off-by: hjiang <[email protected]>
Signed-off-by: hjiang <[email protected]>
|
||
channel_ = BuildChannel(address, port, argument); | ||
stub_ = GrpcService::NewStub(channel_); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change places where this constructor is used too? Are the other uses casting num_threads to bool rn?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't find it used anywhere via simple grep
, but I will wait for CI results.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ray/src/ray/rpc/object_manager/object_manager_client.h
Lines 51 to 52 in 2385b18
grpc_clients_.emplace_back(new GrpcClient<ObjectManagerService>( | |
address, port, client_call_manager, num_connections_)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! Updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do we make sure we removed all usages of this constructor and didn't accidentally call the one above by converting int to bool?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made an extra test PR: #49283, which throws exception on the grpc client overload removed in this PR; and it turns out all CI tests pass.
Signed-off-by: hjiang <[email protected]>
Signed-off-by: hjiang <[email protected]> Signed-off-by: ujjawal-khare <[email protected]>
This PR resolves #49240
From my understanding:
Performance test commit: d631f40
Performance dashboard: https://b534fd88.us1a.app.preset.io/superset/dashboard/19/?native_filters_key=LosP6LvuIiFtoQC_7slPcR-99euapUl2IU9rKLMjMntJgZz6LtYnyGly9fhI5oJ1
Average perf metrics value for latency: 16.832991340999996
Release test for this branch: https://buildkite.com/ray-project/release/builds/27984#0193bd0f-098b-4df9-9504-e23263a6b30f
Perf latency metrics for this PR: 14.782282467999991