AggregationFunction#

class ray.serve.config.AggregationFunction(value)[source]#

Bases: str, Enum

Function that aggregates autoscaling metrics over the look-back window.

Set it through AutoscalingConfig.aggregation_function.

  • MEAN: Time-weighted average over the window. This is the default.

  • MAX: Highest value the deployment total reached during the window.

  • MIN: Lowest value the deployment total reached during the window.

PublicAPI (alpha): This API is in alpha and may change before becoming stable.