Class ScalingConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • minReplica

        public ScalingConfig.Builder minReplica​(Integer minReplica)
        Minimum number of replicas to keep running.
        Parameters:
        minReplica - the value to set
        Returns:
        this builder
      • maxReplica

        public ScalingConfig.Builder maxReplica​(Integer maxReplica)
        Maximum number of replicas allowed.
        Parameters:
        maxReplica - the value to set
        Returns:
        this builder
      • targetCpuThreshold

        public ScalingConfig.Builder targetCpuThreshold​(Integer targetCpuThreshold)
        Scale up if average CPU utilization exceeds this threshold.
        Parameters:
        targetCpuThreshold - the value to set
        Returns:
        this builder
      • targetMemoryThreshold

        public ScalingConfig.Builder targetMemoryThreshold​(Integer targetMemoryThreshold)
        Scale up if average memory utilization exceeds this threshold.
        Parameters:
        targetMemoryThreshold - the value to set
        Returns:
        this builder
      • targetConcurrencyThreshold

        public ScalingConfig.Builder targetConcurrencyThreshold​(Integer targetConcurrencyThreshold)
        number of simultaneous requests that can be processed by each replica.
        Parameters:
        targetConcurrencyThreshold - the value to set
        Returns:
        this builder
      • targetRpsThreshold

        public ScalingConfig.Builder targetRpsThreshold​(Integer targetRpsThreshold)
        requests-per-second per replica of an application.
        Parameters:
        targetRpsThreshold - the value to set
        Returns:
        this builder