Package io.milvus.common.resourcegroup
Class ResourceGroupConfig.Builder
java.lang.Object
io.milvus.common.resourcegroup.ResourceGroupConfig.Builder
- Enclosing class:
ResourceGroupConfig
-
Method Summary
Modifier and TypeMethodDescriptionbuild()withFrom(@NonNull List<ResourceGroupTransfer> from) Set the transfer from list.withLimits(@NonNull ResourceGroupLimit limits) Set the limited node num.withRequests(@NonNull ResourceGroupLimit requests) Set the requests node num.withTo(@NonNull List<ResourceGroupTransfer> to) Set the transfer to list.
-
Method Details
-
withRequests
Set the requests node num.- Parameters:
requests- requests node num in resource group, if node num is less than requests.nodeNum, it will be transfer from other resource group.- Returns:
Builder
-
withLimits
Set the limited node num.- Parameters:
limits- limited node num in resource group, if node num is more than limits.nodeNum, it will be transfer to other resource group.- Returns:
Builder
-
withFrom
Set the transfer from list.- Parameters:
from- missing node should be transfer from given resource group at high priority in repeated list.- Returns:
Builder
-
withTo
Set the transfer to list.- Parameters:
to- redundant node should be transfer to given resource group at high priority in repeated list.- Returns:
Builder
-
build
-