Skip to content

Commit

Permalink
Add checker activation (#228)
Browse files Browse the repository at this point in the history
add checker list/activate/deactivate command. act like this: 

![image](https://github.com/milvus-io/birdwatcher/assets/9817127/094233a4-18c7-401a-a4ec-f5c4734cf566)

---------

Signed-off-by: sunby <sunbingyi1992@gmail.com>
  • Loading branch information
sunby authored Dec 26, 2023
1 parent 9911d5b commit 19741bb
Show file tree
Hide file tree
Showing 8 changed files with 892 additions and 364 deletions.
46 changes: 15 additions & 31 deletions proto/v2.2/milvuspb/milvus.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions proto/v2.2/proxypb/proxy.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions proto/v2.2/query_coord.proto
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ service QueryCoord {
rpc TransferReplica(TransferReplicaRequest) returns (common.Status) {}
rpc ListResourceGroups(milvus.ListResourceGroupsRequest) returns (milvus.ListResourceGroupsResponse) {}
rpc DescribeResourceGroup(DescribeResourceGroupRequest) returns (DescribeResourceGroupResponse) {}

rpc ListCheckers(ListCheckersRequest) returns (ListCheckersResponse) {}
rpc ActivateChecker(ActivateCheckerRequest) returns (common.Status) {}
rpc DeactivateChecker(DeactivateCheckerRequest) returns (common.Status) {}
}

service QueryNode {
Expand Down Expand Up @@ -634,3 +638,31 @@ message DeleteRequest {
schema.IDs primary_keys = 6;
repeated uint64 timestamps = 7;
}

message ActivateCheckerRequest {
common.MsgBase base = 1;
int32 checkerID = 2;
}

message DeactivateCheckerRequest {
common.MsgBase base = 1;
int32 checkerID = 2;
}

message ListCheckersRequest {
common.MsgBase base = 1;
repeated int32 checkerIDs = 2;
}

message ListCheckersResponse {
common.Status status = 1;
repeated CheckerInfo checkerInfos = 2;
}

message CheckerInfo {
int32 id = 1;
string desc = 2;
bool activated = 3;
bool found = 4;
}

Loading

0 comments on commit 19741bb

Please sign in to comment.