Skip to content

Commit

Permalink
Add nodeInfo grpc endpoint (#765)
Browse files Browse the repository at this point in the history
* Add nodeInfo grpc endpoint

* Address review comments
  • Loading branch information
aprudhomme authored Oct 17, 2024
1 parent 0aed30f commit 0fa982e
Show file tree
Hide file tree
Showing 9 changed files with 1,524 additions and 1,028 deletions.
23 changes: 23 additions & 0 deletions clientlib/src/main/proto/yelp/nrtsearch/luceneserver.proto
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,13 @@ service LuceneServer {
};
}

/** Get information about this node */
rpc nodeInfo (NodeInfoRequest) returns (NodeInfoResponse) {
option (google.api.http) = {
get: "/v1/node_info"
};
}

/* Get the global state of the cluster */
rpc globalState (GlobalStateRequest) returns (GlobalStateResponse) {
option (google.api.http) = {
Expand Down Expand Up @@ -875,6 +882,22 @@ message RestoreIndex {
bool deleteExistingData = 3; // delete any existing data for the index
}

message NodeInfoRequest {
}

message NodeInfoResponse {
// node name
string node_name = 1;
// service name
string service_name = 2;
// host name
string host_name = 3;
// nrtsearch version
string version = 4;
// node ephemeral id
string ephemeral_id = 5;
}

message GlobalStateRequest {
}

Expand Down
Loading

0 comments on commit 0fa982e

Please sign in to comment.