search health
This commit is contained in:
@@ -104,12 +104,12 @@ message BackupOperationResponse {
|
||||
}
|
||||
|
||||
message BackupInfoResponse {
|
||||
reserved 6, 22, 23, 24;
|
||||
bool success = 1;
|
||||
string output = 2;
|
||||
string server_version = 3;
|
||||
string database_name = 4;
|
||||
bool database_healthy = 5;
|
||||
bool search_healthy = 6;
|
||||
bool ecb_healthy = 7;
|
||||
string ecb_status = 8;
|
||||
string dump_directory = 9;
|
||||
|
||||
@@ -2,11 +2,36 @@
|
||||
syntax = "proto3";
|
||||
package komp_ac.search;
|
||||
|
||||
import "common.proto";
|
||||
|
||||
service Searcher {
|
||||
rpc Search(SearchRequest) returns (SearchResponse);
|
||||
rpc Count(SearchRequest) returns (SearchCountResponse);
|
||||
}
|
||||
|
||||
service SearchHealth {
|
||||
rpc GetHealth(komp_ac.common.Empty) returns (SearchHealthResponse);
|
||||
}
|
||||
|
||||
message SearchIndexError {
|
||||
int64 job_id = 1;
|
||||
string profile_name = 2;
|
||||
string table_name = 3;
|
||||
int64 row_id = 4;
|
||||
string operation = 5;
|
||||
int32 attempts = 6;
|
||||
string last_error = 7;
|
||||
}
|
||||
|
||||
message SearchHealthResponse {
|
||||
bool enabled = 1;
|
||||
bool ready = 2;
|
||||
bool healthy = 3;
|
||||
uint64 pending_jobs = 4;
|
||||
uint64 retrying_jobs = 5;
|
||||
repeated SearchIndexError errors = 6;
|
||||
}
|
||||
|
||||
message SearchCountResponse {
|
||||
uint64 count = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user