Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce wait time when talking to the api server #552

Merged
merged 1 commit into from
Aug 1, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions ipamd/ipamd.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ const (
eniAttachTime = 10 * time.Second
nodeIPPoolReconcileInterval = 60 * time.Second
decreaseIPPoolInterval = 30 * time.Second
maxK8SRetries = 12
retryK8SInterval = 5 * time.Second
maxK8SRetries = 5
retryK8SInterval = 3 * time.Second

// ipReconcileCooldown is the amount of time that an IP address must wait until it can be added to the data store
// during reconciliation after being discovered on the EC2 instance metadata.
Expand Down Expand Up @@ -315,6 +315,7 @@ func (c *IPAMContext) nodeInit() error {
}

usedIPs, err := c.getLocalPodsWithRetry()
log.Debugf("getLocalPodsWithRetry() found %d used IPs.", len(usedIPs))
if err != nil {
log.Warnf("During ipamd init, failed to get Pod information from kubelet %v", err)
ipamdErrInc("nodeInitK8SGetLocalPodIPsFailed")
Expand Down