moby/libnetwork/networkdb
Flavio Crisciani 55e4cc7262 Optimize networkDB queue
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>
2018-07-02 16:59:45 -07:00
..
broadcast.go Optimize networkDB queue 2018-07-02 16:59:45 -07:00
cluster.go Optimize networkDB queue 2018-07-02 16:59:45 -07:00
delegate.go Optimize networkDB queue 2018-07-02 16:59:45 -07:00
event_delegate.go Avoid delay on node rejoin, avoid useless witness 2018-01-23 16:21:18 -08:00
message.go NetworkDB allow setting PacketSize 2017-07-26 13:44:33 -07:00
networkdb.go Optimize networkDB queue 2018-07-02 16:59:45 -07:00
networkdb.pb.go networkdb, drivers: Regenerate protocol buffers 2018-06-22 15:03:12 +01:00
networkdb.proto Fix reapTime logic in NetworkDB 2017-09-21 09:37:37 -07:00
networkdb_test.go Adjust corner case for reconnect logic 2018-06-21 18:04:55 -07:00
networkdbdiagnostic.go Enhance testing infra 2018-07-02 16:47:34 -07:00
nodemgmt.go Cleanup node management logic 2017-12-13 09:40:38 -08:00
watch.go Fix leak of handleTableEvents 2017-05-31 11:04:19 -07:00