mirror of https://github.com/docker/docs.git
do not block if one node is availalble
This commit is contained in:
parent
20319a5049
commit
16b22dcca2
|
@ -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{}})
|
||||
|
||||
|
|
Loading…
Reference in New Issue