Class ResourceGroupConfig.Builder

    • Method Detail

      • withRequests

        public ResourceGroupConfig.Builder withRequests​(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​(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
      • withNodeFilter

        public ResourceGroupConfig.Builder withNodeFilter​(ResourceGroupNodeFilter nodeFilter)
        Set the node filter.
        Parameters:
        nodeFilter - if node filter set, resource group will prefer to accept node which match node filter.
        Returns:
        Builder