-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add --scheduler option in manage command to prepare pluggable schedulers #178
Add --scheduler option in manage command to prepare pluggable schedulers #178
Conversation
Hi @francisbouvier thanks for the contribution! First tests are failing: https://travis-ci.org/docker/swarm/builds/44228278 I would love to see your ApiScheduler or any other scheduler before merging this, to make sure the interface is correct. |
Thanks for your quick reply. I've updated the pull request, tests are passing now: https://travis-ci.org/docker/swarm/builds/44246565. Yes the |
@francisbouvier why not, that's why I'd love to see your scheduler |
😈 |
@vieux I'm working on it :) |
…e schedulers Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
6490f01
to
d3b148e
Compare
Hi, I've commited the ApiScheduler. For the option I've created a I've created a basic implementation of the corresponding API swarm-scheduler-api. It's a very basic API with random strategy, for tests purposes. |
@francisbouvier thanks, I'll get back to this tomorrow once I have tried it out. |
@francisbouvier sorry for the delay. If I understand correctly your api scheduler creates the container on the node ? I think it should only return the right node and let swarm create the container. |
@vieux |
@francisbouvier thank for this, but it's a bit too abstract for us to merge. Be sure we are going to discuss the scheduler API publicly and I'm going to include you in the discussions. |
See #213 for reference |
Hi,
I've made some changes in order to add pluggable schedulers in the future.
Scheduler is an interface and SwarmScheduler its default implementation.
My idea is to add other scheduler, e.g. an ApiScheduler to connect to external services.