Fix node stats updates on Windows (#1748)

Because we aren't able to get CPU count/load info on Windows, they are
stubbed out to return placeholders. This restores compatibility to run
on Windows.
This commit is contained in:
David Zhao
2023-05-29 10:53:08 -07:00
committed by GitHub
parent fdfd830394
commit 956735ae05
6 changed files with 88 additions and 61 deletions
+4
View File
@@ -8,6 +8,7 @@ import (
"net"
"net/http"
_ "net/http/pprof"
"runtime"
"runtime/pprof"
"time"
@@ -217,6 +218,9 @@ func (s *LivekitServer) Start() error {
values = append(values, "region", s.config.Region)
}
logger.Infow("starting LiveKit server", values...)
if runtime.GOOS == "windows" {
logger.Infow("Windows detected, capacity management is unavailable")
}
for _, promLn := range promListeners {
go s.promServer.Serve(promLn)