powered by
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")
autoscaler_profile(name = "Profile", minsize = 1, maxsize = NA, default = NA, scale_out = 0.75, scale_in = 0.25, interval = "PT1M", window = "PT5M")
A list of autoscaling profiles, each obtained via a call to autoscaler_profile.
autoscaler_profile
Other named arguments that will be treated as resource properties.
For autoscaler_profile, a name for the profile.
For autoscaler_profile, the minimum, maximum and default number of instances.
For autoscaler_profile, the CPU usage (a fraction between 0 and 1) at which to scale out and in, respectively.
For autoscaler_profile, The interval between samples, in ISO 8601 format. The default is 1 minute.
For autoscaler_profile, the window width over which to compute the percentage CPU. The default is 5 minutes.
create_vm_scaleset, vmss_config
# NOT RUN { autoscaler_config() autoscaler_config(list( autoscaler_profile(minsize=2, maxsize=50, scale_out=0.9, scale_in=0.1) )) # }
Run the code above in your browser using DataLab