moby / swarmkit

A toolkit for orchestrating distributed systems at any scale. It includes primitives for node discovery, raft-based consensus, task scheduling and more.
Apache License 2.0
3.31k stars 609 forks source link

Custom scheduling strategy #2874

Open Abdul-Razzak opened 5 years ago

Abdul-Razzak commented 5 years ago

Is there a way I could change the default swarm strategy from spread to bin pack as I need to test the results for different scheduling strategy ? Also, is it possible to create a custom scheduling strategy by extending swarm kit ?

trajano commented 4 years ago

This would be good if it can be extended to support "backoff" so if a service is on a fail loop it can back off a few seconds. But also have swarm use depends_on not to control the start up order but to determine whether to "back off" if their dependent service is not responding as healthy or running.

jigna1985 commented 4 years ago

hello i am new user for using docker swarmkit. how to change default scheduling policy? where to change scheduling policy?