功能:扩展云管资源运维、账号授权及监控管理
This commit is contained in:
1 parent
eef485306f
commit
6134d49c16
87 files changed
+29498
-126
No files matched your search
@@ -39,10 +39,12 @@ func main() {
|
||||
}
|
||||
}
|
||||
s := server.New(cfg, db, pve)
|
||||
go s.RunWorker(ctx)
|
||||
if pve != nil {
|
||||
go s.RunSync(ctx)
|
||||
if err = s.RefreshCompute(startup); err != nil {
|
||||
log.Fatal("saved compute configuration unavailable")
|
||||
}
|
||||
go s.RunWorker(ctx)
|
||||
go s.RunObservability(ctx)
|
||||
go s.RunSync(ctx)
|
||||
httpServer := &http.Server{Addr: cfg.Address, Handler: s.Router, ReadHeaderTimeout: 5 * time.Second, ReadTimeout: 20 * time.Second, WriteTimeout: 30 * time.Second, IdleTimeout: 60 * time.Second}
|
||||
go func() {
|
||||
log.Printf("VDI API listening on %s (mode=%s)", cfg.Address, cfg.Mode)
|
||||
|
||||
Reference in new issue
Block a user