search health

This commit is contained in:
Priec
2026-09-02 14:51:00 +02:00
parent 3fc21bcca3
commit acef57c63b
9 changed files with 371 additions and 8 deletions

View File

@@ -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;
}