You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: main.go
+14-4Lines changed: 14 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -20,8 +20,10 @@ import (
20
20
)
21
21
22
22
const (
23
-
MaximumFailedExecutionBeforePanic=10// Maximum number of allowed failed executions before panicking
24
-
MaximumAcceptableUpdatedNonReadyToUpdatedReadyNodesRatio=0.15// To help with larger clusters
23
+
MaximumFailedExecutionBeforePanic=10// Maximum number of allowed failed executions before panicking
24
+
25
+
MaximumAcceptableUpdatedNonReadyToUpdatedReadyNodesRatio=0.11// To help with larger clusters
26
+
MaximumNumberOfUpdatedNonReadyNodes=5// To prevent too many non-ready nodes from being taken into account when calculating resources available in one node
25
27
)
26
28
27
29
var (
@@ -143,7 +145,7 @@ func DoHandleRollingUpgrade(client k8s.ClientAPI, ec2Service ec2iface.EC2API, au
143
145
log.Printf("[%s] Skipping because ASG has a desired capacity of %d, but only has %d instances", aws.StringValue(autoScalingGroup.AutoScalingGroupName), aws.Int64Value(autoScalingGroup.DesiredCapacity), len(autoScalingGroup.Instances))
log.Printf("[%s] ASG has too many non-ready updated nodes/instances (%d), waiting until they become ready", aws.StringValue(autoScalingGroup.AutoScalingGroupName), numberOfNonReadyUpdatedNodesOrInstances)
0 commit comments