From 9b815d14db9568c9d04349915f84365999aa0256 Mon Sep 17 00:00:00 2001 From: bgrozev Date: Tue, 19 Nov 2024 10:46:33 -0600 Subject: [PATCH] feat: Set max-bridge-participants=80 by default. (#1187) * feat: Set max-bridge-participants=80 by default. * squash: Update tests. --- jicofo-selector/src/main/resources/reference.conf | 2 +- .../src/test/kotlin/org/jitsi/jicofo/bridge/BridgeConfigTest.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jicofo-selector/src/main/resources/reference.conf b/jicofo-selector/src/main/resources/reference.conf index de8532a959..c8f15eef31 100644 --- a/jicofo-selector/src/main/resources/reference.conf +++ b/jicofo-selector/src/main/resources/reference.conf @@ -15,7 +15,7 @@ jicofo { // Configuration related to jitsi-videobridge bridge { // The maximum number of participants in a single conference to put on one bridge (use -1 for no maximum). - max-bridge-participants = -1 + max-bridge-participants = 80 // The assumed maximum packet rate that a bridge can handle. max-bridge-packet-rate = 50000 // The assumed average packet rate per participant. diff --git a/jicofo-selector/src/test/kotlin/org/jitsi/jicofo/bridge/BridgeConfigTest.kt b/jicofo-selector/src/test/kotlin/org/jitsi/jicofo/bridge/BridgeConfigTest.kt index b32d8229b9..6cb7768688 100644 --- a/jicofo-selector/src/test/kotlin/org/jitsi/jicofo/bridge/BridgeConfigTest.kt +++ b/jicofo-selector/src/test/kotlin/org/jitsi/jicofo/bridge/BridgeConfigTest.kt @@ -31,7 +31,7 @@ class BridgeConfigTest : ShouldSpec() { init { MetaconfigSettings.cacheEnabled = false context("with no config the defaults from reference.conf should be used") { - config.maxBridgeParticipants shouldBe -1 + config.maxBridgeParticipants shouldBe 80 config.maxBridgePacketRatePps shouldBe 50000 config.averageParticipantPacketRatePps shouldBe 500 }