From b830f9f269e53c670969fb82a4a9949895d5532e Mon Sep 17 00:00:00 2001 From: Guillermo Rodriguez Date: Wed, 27 Jan 2016 12:12:36 +1100 Subject: [PATCH] Fixes swarm overloading slaves when using the mesos drivers. The problem is described here: https://github.com/docker/swarm/issues/1588 This fix also allows reducing the offer timeout which reduces problems with mesos resource consolidation described here: https://github.com/docker/swarm/issues/1655 Signed-off-by: Guillermo Rodriguez --- cluster/mesos/cluster.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cluster/mesos/cluster.go b/cluster/mesos/cluster.go index fd08f5cb1e..7750e4c854 100644 --- a/cluster/mesos/cluster.go +++ b/cluster/mesos/cluster.go @@ -444,6 +444,7 @@ func (c *Cluster) removeOffer(offer *mesosproto.Offer) bool { found := s.removeOffer(offer.Id.GetValue()) if s.empty() { // Disconnect from engine + s.engine.Disconnect() delete(c.agents, offer.SlaveId.GetValue()) } return found