-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enhance: resource group declarative api
- Add resource group configuration proto. - Add UpdateResourceGroups and modify AddResourceGroup api. Signed-off-by: chyezh <[email protected]>
- Loading branch information
Showing
7 changed files
with
1,168 additions
and
730 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
syntax = "proto3"; | ||
package milvus.proto.rg; | ||
|
||
option go_package = "github.com/milvus-io/milvus-proto/go-api/v2/rgpb"; | ||
|
||
option java_multiple_files = true; | ||
option java_package = "io.milvus.grpc"; | ||
option java_outer_classname = "ResourceGroupProto"; | ||
option java_generate_equals_and_hash = true; | ||
|
||
option csharp_namespace = "Milvus.Client.Grpc"; | ||
|
||
message ResourceGroupLimit { | ||
int32 nodeNum = 1; | ||
// preserve for other limit. | ||
} | ||
|
||
message ResourceGroupTransfer { | ||
string resource_group = 1; // resource groups can be transfered with current resource group. | ||
// preserve for other option, such as lazy transfer, disable default resource group transfer or affinity setup. | ||
} | ||
|
||
message ResourceGroupConfig { | ||
ResourceGroupLimit requests = 1; // requests node num in resource group, if node num is less than requests.nodeNum, it will be transfer from other resource group. | ||
ResourceGroupLimit limits = 2; // limited node num in resource group, if node num is more than limits.nodeNum, it will be transfer to other resource group. | ||
repeated ResourceGroupTransfer from = 3; // missing node should be transfer from given resource group at high priority in repeated list. | ||
repeated ResourceGroupTransfer to = 4; // redundant node should be transfer to given resource group at high priority in repeated list. | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters