2021-01-14 14:24:14 +08:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package milvus.proto.index;
|
|
|
|
|
|
|
|
option go_package = "github.com/zilliztech/milvus-distributed/internal/proto/indexpb";
|
|
|
|
|
|
|
|
import "common.proto";
|
|
|
|
import "internal.proto";
|
2021-01-26 19:24:09 +08:00
|
|
|
import "milvus.proto";
|
2021-01-14 14:24:14 +08:00
|
|
|
|
2021-03-12 14:22:09 +08:00
|
|
|
service IndexService {
|
|
|
|
rpc GetComponentStates(internal.GetComponentStatesRequest) returns (internal.ComponentStates) {}
|
|
|
|
rpc GetTimeTickChannel(internal.GetTimeTickChannelRequest) returns(milvus.StringResponse) {}
|
|
|
|
rpc GetStatisticsChannel(internal.GetStatisticsChannelRequest) returns(milvus.StringResponse){}
|
|
|
|
rpc RegisterNode(RegisterNodeRequest) returns (RegisterNodeResponse) {}
|
|
|
|
rpc BuildIndex(BuildIndexRequest) returns (BuildIndexResponse){}
|
|
|
|
rpc GetIndexStates(GetIndexStatesRequest) returns (GetIndexStatesResponse) {}
|
|
|
|
rpc GetIndexFilePaths(GetIndexFilePathsRequest) returns (GetIndexFilePathsResponse){}
|
|
|
|
rpc NotifyBuildIndex(NotifyBuildIndexRequest) returns (common.Status) {}
|
|
|
|
rpc DropIndex(DropIndexRequest) returns (common.Status) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
service IndexNode {
|
|
|
|
rpc GetComponentStates(internal.GetComponentStatesRequest) returns (internal.ComponentStates) {}
|
|
|
|
rpc GetTimeTickChannel(internal.GetTimeTickChannelRequest) returns(milvus.StringResponse) {}
|
|
|
|
rpc GetStatisticsChannel(internal.GetStatisticsChannelRequest) returns(milvus.StringResponse){}
|
|
|
|
rpc BuildIndex(BuildIndexRequest) returns (common.Status){}
|
|
|
|
rpc DropIndex(DropIndexRequest) returns (common.Status) {}
|
|
|
|
}
|
2021-01-14 14:24:14 +08:00
|
|
|
|
|
|
|
message RegisterNodeRequest {
|
2021-01-16 15:06:19 +08:00
|
|
|
common.MsgBase base = 1;
|
2021-01-14 14:24:14 +08:00
|
|
|
common.Address address = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message RegisterNodeResponse {
|
2021-01-20 15:02:23 +08:00
|
|
|
common.Status status = 1;
|
|
|
|
internal.InitParams init_params = 2;
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
2021-03-12 14:22:09 +08:00
|
|
|
message GetIndexStatesRequest {
|
2021-02-02 19:56:04 +08:00
|
|
|
repeated int64 indexBuildIDs = 1;
|
2021-01-20 15:02:23 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message IndexInfo {
|
|
|
|
common.IndexState state = 1;
|
2021-02-02 19:56:04 +08:00
|
|
|
int64 indexBuildID = 2;
|
|
|
|
int64 indexID = 3;
|
|
|
|
string index_name = 4;
|
2021-03-12 14:22:09 +08:00
|
|
|
string reason = 5;
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
2021-03-12 14:22:09 +08:00
|
|
|
message GetIndexStatesResponse {
|
2021-01-14 14:24:14 +08:00
|
|
|
common.Status status = 1;
|
2021-01-20 15:02:23 +08:00
|
|
|
repeated IndexInfo states = 2;
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message BuildIndexRequest {
|
2021-03-12 14:22:09 +08:00
|
|
|
int64 indexBuildID = 1;
|
|
|
|
string index_name = 2;
|
|
|
|
int64 indexID = 3;
|
|
|
|
repeated string data_paths = 4;
|
|
|
|
repeated common.KeyValuePair type_params = 5;
|
|
|
|
repeated common.KeyValuePair index_params = 6;
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message BuildIndexResponse {
|
|
|
|
common.Status status = 1;
|
2021-02-02 19:56:04 +08:00
|
|
|
int64 indexBuildID = 2;
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
2021-03-12 14:22:09 +08:00
|
|
|
message NotifyBuildIndexRequest {
|
2021-01-15 14:38:36 +08:00
|
|
|
common.Status status = 1;
|
2021-02-02 19:56:04 +08:00
|
|
|
int64 indexBuildID = 2;
|
2021-01-15 14:38:36 +08:00
|
|
|
repeated string index_file_paths = 3;
|
2021-01-26 09:38:40 +08:00
|
|
|
int64 nodeID = 4;
|
2021-01-15 14:38:36 +08:00
|
|
|
}
|
|
|
|
|
2021-03-12 14:22:09 +08:00
|
|
|
message GetIndexFilePathsRequest {
|
2021-02-02 19:56:04 +08:00
|
|
|
repeated int64 indexBuildIDs = 1;
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
2021-01-21 10:01:29 +08:00
|
|
|
message IndexFilePathInfo {
|
2021-01-14 14:24:14 +08:00
|
|
|
common.Status status = 1;
|
2021-02-02 19:56:04 +08:00
|
|
|
int64 indexBuildID = 2;
|
2021-01-14 14:24:14 +08:00
|
|
|
repeated string index_file_paths = 3;
|
|
|
|
}
|
|
|
|
|
2021-03-12 14:22:09 +08:00
|
|
|
message GetIndexFilePathsResponse {
|
2021-01-21 10:01:29 +08:00
|
|
|
common.Status status = 1;
|
|
|
|
repeated IndexFilePathInfo file_paths = 2;
|
|
|
|
}
|
|
|
|
|
2021-01-14 14:24:14 +08:00
|
|
|
message IndexMeta {
|
2021-03-12 14:22:09 +08:00
|
|
|
int64 indexBuildID = 1;
|
2021-02-02 19:56:04 +08:00
|
|
|
common.IndexState state = 2;
|
2021-01-26 09:38:40 +08:00
|
|
|
string fail_reason = 3;
|
|
|
|
BuildIndexRequest req = 4;
|
|
|
|
repeated string index_file_paths = 5;
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
2021-02-20 10:14:03 +08:00
|
|
|
message DropIndexRequest {
|
2021-02-20 15:38:44 +08:00
|
|
|
int64 indexID = 1;
|
2021-02-20 10:14:03 +08:00
|
|
|
}
|