Skip to content

Commit 91a0731

Browse files
author
Joseph Chen
committed
Faster eni scaleup
1 parent 3c20f2b commit 91a0731

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/ipamd/ipamd.go

+4
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,10 @@ func (c *IPAMContext) updateIPPoolIfRequired(ctx context.Context) {
636636

637637
if c.isDatastorePoolTooLow() {
638638
c.increaseDatastorePool(ctx)
639+
// Speeds up ENI scale up
640+
for c.isDatastorePoolTooLow() {
641+
c.increaseDatastorePool(ctx)
642+
}
639643
} else if c.isDatastorePoolTooHigh() {
640644
c.decreaseDatastorePool(decreaseIPPoolInterval)
641645
}

0 commit comments

Comments
 (0)