Add batch i/o to improve throughput (#2033)

* Add batch i/o to improve throughput

* remove empty line

* Solve comments

* Change rtcconfig.UDPPort to PortRange

* Fix test
This commit is contained in:
cnderrauber
2023-09-06 10:18:20 +08:00
committed by GitHub
parent 1590b96686
commit 9b9298b927
10 changed files with 21 additions and 15 deletions
+2 -1
View File
@@ -29,6 +29,7 @@ import (
"github.com/livekit/livekit-server/pkg/rtc"
"github.com/livekit/livekit-server/pkg/telemetry/prometheus"
"github.com/livekit/mediatransportutil/pkg/rtcconfig"
"github.com/livekit/protocol/logger"
"github.com/livekit/livekit-server/pkg/config"
@@ -206,7 +207,7 @@ func getConfig(c *cli.Context) (*config.Config, error) {
if c.String("config") == "" && c.String("config-body") == "" && conf.Development {
// use single port UDP when no config is provided
conf.RTC.UDPPort = 7882
conf.RTC.UDPPort = rtcconfig.PortRange{Start: 7882}
conf.RTC.ICEPortRangeStart = 0
conf.RTC.ICEPortRangeEnd = 0
logger.Infow("starting in development mode")