-
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] Add ClusterID token to GCS server [3/n] #36535
Conversation
c002e55
to
41d8dbd
Compare
62b3e3c
to
f74167c
Compare
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.
Please fix the comments.
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.
LGTM!
src/ray/gcs/gcs_server/gcs_server.cc
Outdated
continuation = std::move(continuation)](std::optional<std::string> token) mutable { | ||
if (!token.has_value()) { | ||
ClusterID cluster_id = ClusterID::FromRandom(); | ||
RAY_LOG(INFO) << "No existing server token found. Generating new token: " |
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.
token -> cluster id
}); | ||
} else { | ||
ClusterID cluster_id = ClusterID::FromBinary(token.value()); | ||
RAY_LOG(INFO) << "Found existing server token: " << cluster_id; |
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.
token -> cluster id
src/ray/gcs/gcs_server/gcs_server.cc
Outdated
kTokenNamespace, | ||
kClusterIdKey, | ||
[this, | ||
continuation = std::move(continuation)](std::optional<std::string> token) mutable { |
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.
token -> cluster_id_binary?
src/ray/gcs/gcs_server/gcs_server.cc
Outdated
continuation(cluster_id); | ||
}); | ||
} else { | ||
ClusterID cluster_id = ClusterID::FromBinary(cluster_id.value()); |
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.
ClusterID cluster_id = ClusterID::FromBinary(cluster_id.value()); | |
ClusterID cluster_id = ClusterID::FromBinary(provided_cluster_id.value()); |
Retrieve the token from the GCS server in the GCS client while connecting, to attach to metadata in requests. Previous PR (GCS server): ray-project#36535 Next PR (auth): ray-project#36073 Signed-off-by: Bhavpreet Singh <singh.bhavpreet00@gmail.com>
Retrieve the token from the GCS server in the GCS client while connecting, to attach to metadata in requests. Previous PR (GCS server): ray-project#36535 Next PR (auth): ray-project#36073 Signed-off-by: Bhavpreet Singh <singh.bhavpreet00@gmail.com>
Retrieve the token from the GCS server in the GCS client while connecting, to attach to metadata in requests. Previous PR (GCS server): ray-project#36535 Next PR (auth): ray-project#36073 Signed-off-by: Bhavpreet Singh <singh.bhavpreet00@gmail.com>
Retrieve the token from the GCS server in the GCS client while connecting, to attach to metadata in requests. Previous PR (GCS server): ray-project#36535 Next PR (auth): ray-project#36073 Signed-off-by: NripeshN <nn2012@hw.ac.uk>
This change adds a Cluster ID to GRPC client (client call, client call manager), and attaches it to the metadata of each ClientCall provided it is non-nil. Previous PR (GRPC server): ray-project#36517 Next PR (GCS server): ray-project#36535 Part 2 of breaking down ray-project#35014 into more digestible parts. Related issue number ray-project#34763 Signed-off-by: e428265 <arvind.chandramouli@lmco.com>
Add support for a GetClusterId RPC call in the GCS server that clients can use to obtain the cluster ID. In particular, GCS server will retrieve the cluster id from the persistent store if it exists, or otherwise generate a new one and store it. Previous PR (GRPC client): ray-project#36526 Next PR (GCS client): ray-project#35014 Part 3 of breaking down ray-project#35014 into more digestible parts. Signed-off-by: e428265 <arvind.chandramouli@lmco.com>
Retrieve the token from the GCS server in the GCS client while connecting, to attach to metadata in requests. Previous PR (GCS server): ray-project#36535 Next PR (auth): ray-project#36073 Signed-off-by: e428265 <arvind.chandramouli@lmco.com>
Add support for a GetClusterId RPC call in the GCS server that clients can use to obtain the cluster ID. In particular, GCS server will retrieve the cluster id from the persistent store if it exists, or otherwise generate a new one and store it.
Previous PR (GRPC client): #36526
Next PR (GCS client): #35014
Part 3 of breaking down #35014 into more digestible parts.
Why are these changes needed?
Related issue number
#34763
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.