Skip to content

Commit

Permalink
Add rpc method to get cluster global state
Browse files Browse the repository at this point in the history
  • Loading branch information
aprudhomme committed Sep 17, 2024
1 parent ab103d0 commit 37d3451
Show file tree
Hide file tree
Showing 9 changed files with 2,402 additions and 1,873 deletions.
16 changes: 16 additions & 0 deletions clientlib/src/main/proto/yelp/nrtsearch/luceneserver.proto
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,14 @@ service LuceneServer {
};
}

/* Get the global state of the cluster */
rpc globalState (GlobalStateRequest) returns (GlobalStateResponse) {
option (google.api.http) = {
post: "/v1/global_state"
body: "*"
};
}

/* Gets the state of a started index, includes settings, live_settings, search schema, suggest schema */
rpc state (StateRequest) returns (StateResponse) {
option (google.api.http) = {
Expand Down Expand Up @@ -891,6 +899,14 @@ message RestoreIndex {
bool deleteExistingData = 3; // delete any existing data for the index
}

message GlobalStateRequest {
}

message GlobalStateResponse {
// cluster global state
GlobalStateInfo global_state = 1;
}

message StateRequest {
string indexName = 1; //index name
}
Expand Down
Loading

0 comments on commit 37d3451

Please sign in to comment.