Skip to content

Conversation

@thaJeztah
Copy link
Member

@thaJeztah thaJeztah commented Jul 7, 2018

backport of #2216 for the 18.03 branch

git checkout -b 18.03-backport-netdb-qlen-issue upstream/bump_18.03
git cherry-pick -s -S -x dd5a9eaba3974e06f7b678c6cc02c58d2e18dd30
git cherry-pick -s -S -x 5ed38221164e04c78d20f17839aab52fafd7fe88
git push -u origin

cherry-pick was clean, no conflicts

@thaJeztah
Copy link
Member Author

ping @fcrisciani @ctelfer I wasn't sure if this was intended to be in 18.03

@thaJeztah
Copy link
Member Author

thaJeztah commented Jul 9, 2018

edit: never mind; I managed to cherry-pick the same commit twice 😂

Flavio Crisciani added 2 commits July 9, 2018 13:01
Allow to write and delete X number of entries
Allow to query the queue length

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
(cherry picked from commit dd5a9ea)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Added some optimizations to reduce the messages in the queue:
1) on join network the node execute a tcp sync with all the nodes that
it is aware part of the specific network. During this time before the
node was redistributing all the entries. This meant that if the network
had 10K entries the queue of the joining node will jump to 10K. The fix
adds a flag on the network that would avoid to insert any entry in the
queue till the sync happens. Note that right now the flag is set in
a best effort way, there is no real check if at least one of the nodes
succeed.
2) limit the number of messages to redistribute coming from a TCP sync.
Introduced a threshold that limit the number of messages that are
propagated, this will disable this optimization in case of heavy load.

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
(cherry picked from commit 5ed3822)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah force-pushed the 18.03-backport-netdb-qlen-issue branch from aa73776 to 07ba6c3 Compare July 9, 2018 11:02
Copy link

@fcrisciani fcrisciani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fcrisciani fcrisciani merged commit 31a03fe into moby:bump_18.03 Jul 10, 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.

2 participants