mirror of
https://github.com/docker/docs.git
synced 2026-04-12 06:19:22 +07:00
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 <grodriguez@cmcrc.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user