Class ResourceGroupConfig.Builder

java.lang.Object
io.milvus.common.resourcegroup.ResourceGroupConfig.Builder
Enclosing class:
ResourceGroupConfig

public static final class ResourceGroupConfig.Builder extends Object
  • Method Details

    • withRequests

      public ResourceGroupConfig.Builder withRequests(@NonNull @NonNull ResourceGroupLimit requests)
      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

      public ResourceGroupConfig.Builder withLimits(@NonNull @NonNull ResourceGroupLimit limits)
      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

      public ResourceGroupConfig.Builder withFrom(@NonNull @NonNull List<ResourceGroupTransfer> from)
      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

      public ResourceGroupConfig.Builder withTo(@NonNull @NonNull List<ResourceGroupTransfer> to)
      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

      public ResourceGroupConfig build()