Skip to content

Commit c237d34

Browse files
author
Joseph Chen
committed
Faster eni scaleup
1 parent 1de6c1d commit c237d34

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/ipamd/ipamd.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,9 @@ func (c *IPAMContext) updateIPPoolIfRequired(ctx context.Context) {
652652
log.Debugf("IP stats - total IPs: %d, assigned IPs: %d, cooldown IPs: %d", stats.TotalIPs, stats.AssignedIPs, stats.CooldownIPs)
653653

654654
if datastorePoolTooLow {
655-
c.increaseDatastorePool(ctx)
655+
for datastorePoolStillTooLow := datastorePoolTooLow; datastorePoolStillTooLow; datastorePoolStillTooLow, _ = c.isDatastorePoolTooLow() {
656+
c.increaseDatastorePool(ctx)
657+
}
656658
} else if c.isDatastorePoolTooHigh(stats) {
657659
c.decreaseDatastorePool(decreaseIPPoolInterval)
658660
}

0 commit comments

Comments
 (0)