autoscaler_config function

Autoscaler configuration

Autoscaler configuration

autoscaler_config(profiles = list(autoscaler_profile()), ...) autoscaler_profile(name = "Profile", minsize = 1, maxsize = NA, default = NA, scale_out = 0.75, scale_in = 0.25, interval = "PT1M", window = "PT5M")

Arguments

  • profiles: A list of autoscaling profiles, each obtained via a call to autoscaler_profile.
  • ...: Other named arguments that will be treated as resource properties.
  • name: For autoscaler_profile, a name for the profile.
  • minsize, maxsize, default: For autoscaler_profile, the minimum, maximum and default number of instances.
  • scale_out, scale_in: For autoscaler_profile, the CPU usage (a fraction between 0 and 1) at which to scale out and in, respectively.
  • interval: For autoscaler_profile, The interval between samples, in ISO 8601 format. The default is 1 minute.
  • window: For autoscaler_profile, the window width over which to compute the percentage CPU. The default is 5 minutes.

Examples

autoscaler_config() autoscaler_config(list( autoscaler_profile(minsize=2, maxsize=50, scale_out=0.9, scale_in=0.1) ))

See Also

create_vm_scaleset , vmss_config

  • Maintainer: Hong Ooi
  • License: MIT + file LICENSE
  • Last published: 2020-10-14