autoscaler_config: Autoscaler configuration

Description Usage Arguments See Also Examples

View source: R/autoscaler_config.R

Description

Autoscaler configuration

Usage

1
2
3
4
5
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.

See Also

create_vm_scaleset, vmss_config

Examples

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

AzureVM documentation built on Oct. 23, 2020, 5:20 p.m.