2021-01-14 14:24:14 +08:00
|
|
|
syntax = "proto3";
|
|
|
|
package milvus.proto.proxy;
|
|
|
|
|
2021-04-22 14:45:57 +08:00
|
|
|
option go_package = "github.com/milvus-io/milvus/internal/proto/proxypb";
|
2021-01-14 14:24:14 +08:00
|
|
|
|
|
|
|
import "common.proto";
|
|
|
|
import "internal.proto";
|
2021-01-26 14:55:57 +08:00
|
|
|
import "milvus.proto";
|
2021-01-14 14:24:14 +08:00
|
|
|
|
2021-06-22 16:14:09 +08:00
|
|
|
service Proxy {
|
2022-10-10 15:55:22 +08:00
|
|
|
rpc GetComponentStates(milvus.GetComponentStatesRequest) returns (milvus.ComponentStates) {}
|
2021-03-12 14:22:09 +08:00
|
|
|
rpc GetStatisticsChannel(internal.GetStatisticsChannelRequest) returns(milvus.StringResponse){}
|
|
|
|
|
|
|
|
rpc InvalidateCollectionMetaCache(InvalidateCollMetaCacheRequest) returns (common.Status) {}
|
|
|
|
rpc GetDdChannel(internal.GetDdChannelRequest) returns (milvus.StringResponse) {}
|
2021-06-17 17:45:56 +08:00
|
|
|
|
2022-04-11 19:49:34 +08:00
|
|
|
rpc InvalidateCredentialCache(InvalidateCredCacheRequest) returns (common.Status) {}
|
|
|
|
rpc UpdateCredentialCache(UpdateCredCacheRequest) returns (common.Status) {}
|
2022-05-28 00:04:01 +08:00
|
|
|
|
|
|
|
rpc RefreshPolicyInfoCache(RefreshPolicyInfoCacheRequest) returns (common.Status) {}
|
2022-09-16 09:56:47 +08:00
|
|
|
rpc GetProxyMetrics(milvus.GetMetricsRequest) returns (milvus.GetMetricsResponse) {}
|
|
|
|
rpc SetRates(SetRatesRequest) returns (common.Status) {}
|
2023-05-19 12:51:23 +08:00
|
|
|
|
|
|
|
rpc ListClientInfos(ListClientInfosRequest) returns (ListClientInfosResponse) {}
|
2024-03-01 18:31:02 +08:00
|
|
|
|
|
|
|
// importV2
|
|
|
|
rpc ImportV2(internal.ImportRequest) returns(internal.ImportResponse){}
|
|
|
|
rpc GetImportProgress(internal.GetImportProgressRequest) returns(internal.GetImportProgressResponse){}
|
|
|
|
rpc ListImports(internal.ListImportsRequest) returns(internal.ListImportsResponse){}
|
2024-05-08 10:05:29 +08:00
|
|
|
|
|
|
|
rpc InvalidateShardLeaderCache(InvalidateShardLeaderCacheRequest) returns (common.Status) {}
|
2021-03-12 14:22:09 +08:00
|
|
|
}
|
2021-01-14 14:24:14 +08:00
|
|
|
|
|
|
|
message InvalidateCollMetaCacheRequest {
|
2022-09-27 19:18:54 +08:00
|
|
|
// MsgType:
|
|
|
|
// DropCollection -> {meta cache, dml channels}
|
|
|
|
// Other -> {meta cache}
|
2021-01-16 15:06:19 +08:00
|
|
|
common.MsgBase base = 1;
|
2021-01-14 14:24:14 +08:00
|
|
|
string db_name = 2;
|
|
|
|
string collection_name = 3;
|
2022-05-19 10:13:56 +08:00
|
|
|
int64 collectionID = 4;
|
2024-01-30 16:45:02 +08:00
|
|
|
string partition_name = 5;
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
2021-06-17 17:45:56 +08:00
|
|
|
|
2024-05-08 10:05:29 +08:00
|
|
|
message InvalidateShardLeaderCacheRequest {
|
|
|
|
common.MsgBase base = 1;
|
|
|
|
repeated int64 collectionIDs = 2;
|
|
|
|
}
|
|
|
|
|
2022-04-11 19:49:34 +08:00
|
|
|
message InvalidateCredCacheRequest {
|
|
|
|
common.MsgBase base = 1;
|
|
|
|
string username = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message UpdateCredCacheRequest {
|
|
|
|
common.MsgBase base = 1;
|
|
|
|
string username = 2;
|
2022-06-29 20:02:18 +08:00
|
|
|
// password stored in cache
|
2022-04-11 19:49:34 +08:00
|
|
|
string password = 3;
|
|
|
|
}
|
2022-05-28 00:04:01 +08:00
|
|
|
|
|
|
|
message RefreshPolicyInfoCacheRequest {
|
|
|
|
common.MsgBase base = 1;
|
|
|
|
int32 opType = 2;
|
|
|
|
string opKey = 3;
|
2022-09-16 09:56:47 +08:00
|
|
|
}
|
|
|
|
|
2024-04-12 16:01:19 +08:00
|
|
|
// Deprecated: use ClusterLimiter instead it
|
2023-04-25 15:54:35 +08:00
|
|
|
message CollectionRate {
|
|
|
|
int64 collection = 1;
|
2022-09-16 09:56:47 +08:00
|
|
|
repeated internal.Rate rates = 2;
|
2022-12-30 18:35:32 +08:00
|
|
|
repeated milvus.QuotaState states = 3;
|
2023-01-06 14:31:37 +08:00
|
|
|
repeated common.ErrorCode codes = 4;
|
2022-09-16 09:56:47 +08:00
|
|
|
}
|
2023-04-25 15:54:35 +08:00
|
|
|
|
2024-04-12 16:01:19 +08:00
|
|
|
message LimiterNode {
|
|
|
|
// self limiter information
|
|
|
|
Limiter limiter = 1;
|
|
|
|
// db id -> db limiter
|
|
|
|
// collection id -> collection limiter
|
|
|
|
// partition id -> partition limiter
|
|
|
|
map<int64, LimiterNode> children = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Limiter {
|
|
|
|
repeated internal.Rate rates = 1;
|
|
|
|
// we can use map to store quota states and error code, because key in map fields cannot be enum types
|
|
|
|
repeated milvus.QuotaState states = 2;
|
|
|
|
repeated common.ErrorCode codes = 3;
|
|
|
|
}
|
|
|
|
|
2023-04-25 15:54:35 +08:00
|
|
|
message SetRatesRequest {
|
|
|
|
common.MsgBase base = 1;
|
2024-04-12 16:01:19 +08:00
|
|
|
// deprecated
|
2023-04-25 15:54:35 +08:00
|
|
|
repeated CollectionRate rates = 2;
|
2024-04-12 16:01:19 +08:00
|
|
|
LimiterNode rootLimiter = 3;
|
2023-04-25 15:54:35 +08:00
|
|
|
}
|
2023-05-19 12:51:23 +08:00
|
|
|
|
|
|
|
message ListClientInfosRequest {
|
|
|
|
common.MsgBase base = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ListClientInfosResponse {
|
|
|
|
common.Status status = 1;
|
|
|
|
repeated common.ClientInfo client_infos = 2;
|
|
|
|
}
|