Use cache for minion lookups, don't hammer apiserver

This commit is contained in:
Daniel Smith
2014-10-13 14:46:31 -07:00
parent 13acb63fb3
commit 0431f2430d
3 changed files with 16 additions and 12 deletions

View File

@@ -137,10 +137,7 @@ func startComponents(manifestURL string) (apiServerURL string) {
// Scheduler
schedulerConfigFactory := &factory.ConfigFactory{cl}
schedulerConfig, err := schedulerConfigFactory.Create()
if err != nil {
glog.Fatalf("Unable to construct scheduler config: %v", err)
}
schedulerConfig := schedulerConfigFactory.Create()
scheduler.New(schedulerConfig).Run()
endpoints := service.NewEndpointController(cl)