Exemplo n.º 1
0
func main() {
	resScheduler := mesosrel.NewResMan()
	go func() {
		resScheduler.Run()
	}()
	go func() {
		scheduler.CheckAutoRunJobs(resScheduler)
	}()
	s := scheduler.NewServer(":9090", resScheduler)
	s.Serve()
}
Exemplo n.º 2
0
func main() {
	flag.Parse()
	Init()
	resScheduler := mesosrel.NewResMan()
	go func() {
		log.Debug("master:", *master)
		resScheduler.Run(*master)
	}()

	go func() {
		scheduler.CheckAutoRunJobs(resScheduler)
	}()
	s := scheduler.NewServer(":9090", resScheduler)
	s.Serve()
}
Exemplo n.º 3
0
func (self *LeaderTask) Run() error {
	resScheduler := mesosrel.NewResMan()
	go func() {
		log.Debug("master:", *master)
		resScheduler.Run(*master)
	}()

	go func() {
		scheduler.CheckAutoRunJobs(resScheduler)
	}()

	go func() {
		http.ListenAndServe(":9091", nil)
	}()

	s := scheduler.NewServer(":9090", resScheduler)
	s.Serve()

	log.Fatal("End of Run()")

	return nil
}