milvus/internal/proto/proxy.proto
yihao.dai a434d33e75
feat: Add import scheduler and manager (#29367)
This PR introduces novel managerial roles for importv2:
1. ImportMeta: To manage all the import tasks;
2. ImportScheduler: To process tasks and modify their states;
3. ImportChecker: To ascertain the completion of all tasks and instigate
relevant operations.

issue: https://github.com/milvus-io/milvus/issues/28521

---------

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
2024-03-01 18:31:02 +08:00

81 lines
2.4 KiB
Protocol Buffer

syntax = "proto3";
package milvus.proto.proxy;
option go_package = "github.com/milvus-io/milvus/internal/proto/proxypb";
import "common.proto";
import "internal.proto";
import "milvus.proto";
service Proxy {
rpc GetComponentStates(milvus.GetComponentStatesRequest) returns (milvus.ComponentStates) {}
rpc GetStatisticsChannel(internal.GetStatisticsChannelRequest) returns(milvus.StringResponse){}
rpc InvalidateCollectionMetaCache(InvalidateCollMetaCacheRequest) returns (common.Status) {}
rpc GetDdChannel(internal.GetDdChannelRequest) returns (milvus.StringResponse) {}
rpc InvalidateCredentialCache(InvalidateCredCacheRequest) returns (common.Status) {}
rpc UpdateCredentialCache(UpdateCredCacheRequest) returns (common.Status) {}
rpc RefreshPolicyInfoCache(RefreshPolicyInfoCacheRequest) returns (common.Status) {}
rpc GetProxyMetrics(milvus.GetMetricsRequest) returns (milvus.GetMetricsResponse) {}
rpc SetRates(SetRatesRequest) returns (common.Status) {}
rpc ListClientInfos(ListClientInfosRequest) returns (ListClientInfosResponse) {}
// importV2
rpc ImportV2(internal.ImportRequest) returns(internal.ImportResponse){}
rpc GetImportProgress(internal.GetImportProgressRequest) returns(internal.GetImportProgressResponse){}
rpc ListImports(internal.ListImportsRequest) returns(internal.ListImportsResponse){}
}
message InvalidateCollMetaCacheRequest {
// MsgType:
// DropCollection -> {meta cache, dml channels}
// Other -> {meta cache}
common.MsgBase base = 1;
string db_name = 2;
string collection_name = 3;
int64 collectionID = 4;
string partition_name = 5;
}
message InvalidateCredCacheRequest {
common.MsgBase base = 1;
string username = 2;
}
message UpdateCredCacheRequest {
common.MsgBase base = 1;
string username = 2;
// password stored in cache
string password = 3;
}
message RefreshPolicyInfoCacheRequest {
common.MsgBase base = 1;
int32 opType = 2;
string opKey = 3;
}
message CollectionRate {
int64 collection = 1;
repeated internal.Rate rates = 2;
repeated milvus.QuotaState states = 3;
repeated common.ErrorCode codes = 4;
}
message SetRatesRequest {
common.MsgBase base = 1;
repeated CollectionRate rates = 2;
}
message ListClientInfosRequest {
common.MsgBase base = 1;
}
message ListClientInfosResponse {
common.Status status = 1;
repeated common.ClientInfo client_infos = 2;
}