do not block if one node is availalble

This commit is contained in:
Victor Vieux 2014-11-20 22:39:45 +00:00
parent 20319a5049
commit 16b22dcca2
1 changed files with 22 additions and 20 deletions

View File

@ -41,6 +41,7 @@ func manage(c *cli.Context) {
cluster := cluster.NewCluster()
cluster.Events(&logHandler{})
go func() {
if c.String("token") != "" {
nodes, err := discovery.FetchSlaves(c.String("token"))
if err != nil {
@ -64,6 +65,7 @@ func manage(c *cli.Context) {
log.Fatal(err)
}
}
}()
s := scheduler.NewScheduler(cluster, &strategy.BinPackingPlacementStrategy{}, []filter.Filter{&filter.AttributeFilter{}, &filter.PortFilter{}})