示例#1
0
文件: main.go 项目: 4T-Shirt/tyrant
func main() {
	resScheduler := mesosrel.NewResMan()
	go func() {
		resScheduler.Run()
	}()
	go func() {
		scheduler.CheckAutoRunJobs(resScheduler)
	}()
	s := scheduler.NewServer(":9090", resScheduler)
	s.Serve()
}
示例#2
0
文件: main.go 项目: NextMark/tyrant
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()
}
示例#3
0
文件: main.go 项目: jackwanger/tyrant
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
}