Skip to content

[Backport 17.06] allocator: Retry failed allocations immediately upon a deallocation#2711

Merged
anshulpundir merged 1 commit into
moby:bump_v17.06from
anshulpundir:b1706
Jul 27, 2018
Merged

[Backport 17.06] allocator: Retry failed allocations immediately upon a deallocation#2711
anshulpundir merged 1 commit into
moby:bump_v17.06from
anshulpundir:b1706

Conversation

@anshulpundir
Copy link
Copy Markdown
Contributor

Cherry pick #2235.

git cherry-pick -s -x e913523
Cherry-pick was clean.

We retry failed allocations every 5 minutes. If something else gets
deallocated, we should trigger the retry immediately in case the
allocations were failing due to IP exhaustion, and the deallocation
freed up an IP.

Signed-off-by: Aaron Lehmann aaron.lehmann@docker.com
(cherry picked from commit e913523)
Signed-off-by: Anshul Pundir anshul.pundir@docker.com

@thaJeztah
Copy link
Copy Markdown
Member

I see this was already cherry-picked in #2642 - was that reverted?

@anshulpundir
Copy link
Copy Markdown
Contributor Author

I see this was already cherry-picked in #2642 - was that reverted?

17.06 was reset for the EE16 release.

@thaJeztah
Copy link
Copy Markdown
Member

17.06 was reset for the EE16 release.

Ah, right; I thought we marked all those PR's (or left a comment); do you have an overview of the ones that are no longer in there? We should mark them (and check the release-tracking status for those)

@andrewhsu
Copy link
Copy Markdown

@anshulpundir seeing failure with 92833fd:

--- FAIL: TestManager (0.18s)
	testing.go:610: race detected during execution of test

@anshulpundir
Copy link
Copy Markdown
Contributor Author

this should help #2715 @andrewhsu

We retry failed allocations every 5 minutes. If something else gets
deallocated, we should trigger the retry immediately in case the
allocations were failing due to IP exhaustion, and the deallocation
freed up an IP.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
(cherry picked from commit e913523)
Signed-off-by: Anshul Pundir <anshul.pundir@docker.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Jul 26, 2018

Codecov Report

Merging #2711 into bump_v17.06 will decrease coverage by 3.73%.
The diff coverage is 53.84%.

@@               Coverage Diff               @@
##           bump_v17.06    #2711      +/-   ##
===============================================
- Coverage        65.23%   61.49%   -3.74%     
===============================================
  Files               59      121      +62     
  Lines             8816    20215   +11399     
===============================================
+ Hits              5751    12431    +6680     
- Misses            2470     6424    +3954     
- Partials           595     1360     +765

@anshulpundir anshulpundir merged commit 308e8cf into moby:bump_v17.06 Jul 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants