Skip to content

Commit 7d702bc

Browse files
committed
Add node_filters into ResourceGroupConfig
Signed-off-by: ryjiang <jiangruiyi@gmail.com>
1 parent a34eed9 commit 7d702bc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

milvus/types/Resource.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1-
import { GrpcTimeOut, resStatusResponse, collectionNameReq } from './Common';
1+
import {
2+
GrpcTimeOut,
3+
resStatusResponse,
4+
collectionNameReq,
5+
KeyValuePair,
6+
} from './Common';
27

38
type ResourceGroupConfig = {
49
requests?: { node_num: number }; // requests node num in resource group, if node num is less than requests.nodeNum, it will be transfer from other resource group.
510
limits?: { node_num: number }; // limited node num in resource group, if node num is more than limits.nodeNum, it will be transfer to other resource group.
611
transfer_from?: { resource_group: string }[]; // missing node should be transfer from given resource group at high priority in repeated list.
712
transfer_to?: { resource_group: string }[]; // redundant node should be transfer to given resource group at high priority in repeated list.
13+
node_filters?: { node_labels: KeyValuePair }; // node in resource group must match node filters
814
};
915

1016
type ResourceGroup = {

0 commit comments

Comments
 (0)