-
Notifications
You must be signed in to change notification settings - Fork 22
/
params_main_auto_scaling_group.go
55 lines (52 loc) · 2.47 KB
/
params_main_auto_scaling_group.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package template
type ParamsMainAutoScalingGroup struct {
AvailabilityZones []string
Cluster ParamsMainAutoScalingGroupCluster
DesiredCapacity int
LifeCycleHookName string
MaxBatchSize string
MaxSize int
MinInstancesInService string
MinSize int
NodePool ParamsMainIAMPoliciesNodePool
Subnets []string
// OnDemandPercentageAboveBaseCapacity controls the percentages of On-Demand
// Instances and Spot Instances for your additional capacity beyond
// OnDemandBaseCapacity.
OnDemandPercentageAboveBaseCapacity int
// OnDemandBaseCapacity defines the minimum amount of the Auto Scaling group's
// capacity that must be fulfilled by On-Demand Instances. This base portion is
// provisioned first as your group scales.
OnDemandBaseCapacity int
// PauseTime is defining the pause time between each batch in the ASG update
PauseTime string
// SpotAllocationStrategy If the allocation strategy is lowest-price, the Auto
// Scaling group launches instances using the Spot pools with the lowest price,
// and evenly allocates your instances across the number of Spot pools that you
// specify. If the allocation strategy is capacity-optimized, the Auto Scaling
// group launches instances using Spot pools that are optimally chosen based on
// the available Spot capacity.
SpotAllocationStrategy string
// SpotInstancePools The number of Spot pools to use to allocate your Spot
// capacity. The Spot pools are determined from the different instance types
// in the Overrides array of LaunchTemplate. The range is 1–20. The default
// value is 2.
SpotInstancePools int
// LaunchTemplateOverrides is an optional setting. Any parameters that you
// specify override the same parameters in the launch template. Currently,
// the only supported override is instance type. You can specify between 1 and
// 20 instance types.
LaunchTemplateOverrides []LaunchTemplateOverride
}
type ParamsMainAutoScalingGroupCluster struct {
ID string
}
type LaunchTemplateOverride struct {
InstanceType string
// WeightedCapacity defines the number of capacity units, which gives the
// instance type a proportional weight to other instance types. For example,
// larger instance types are generally weighted more than smaller instance
// types. These are the same units that you chose to set the desired capacity
// in terms of instances, or a performance attribute such as vCPUs, memory, or I/O.
WeightedCapacity int
}