How to config Loadbalancing JVB use MUC room?

Hi @damencho.

I installed last version jitsi-meet,jicofo,jitsi-videobridge. But I have problem LB jvb, it not balancing.
I know there is another load balancing method using MUC room. Can you show me how to configure that?

Thanks alot

Search the forum for it, there are multiple posts. Search for MUC_JIDS for more results.

Thanks for your reply @damencho

Hi @damencho.
I searched and followed but it not working.

My prosody.cfg.lua


component_ports = {5347}
component_interface = “0.0.0.0”

vcrxdev17.topica.vn.cfg.lua

VirtualHost “vcrxdev17.topica.vn”
authentication = “anonymous”
ssl = {
key = “/etc/prosody/certs/vcrxdev17.topica.vn.key”;
certificate = “/etc/prosody/certs/vcrxdev17.topica.vn.crt”;
}
modules_enabled = {
“bosh”;
“pubsub”;
“ping”;
}
c2s_require_encryption = false

Component “conference.vcrxdev17.topica.vn” “muc”
storage = “null”
–modules_enabled = { “token_verification” }
admins = { “focus@auth.vcrxdev17.topica.vn” }

Component “internal.vcrxdev17.topica.vn” “muc”
modules_enabled = {
“ping”;
}
storage = “null”
muc_room_cache_size = 1000

My JVB sip-communicator

org.jitsi.videobridge.AUTHORIZED_SOURCE_REGEXP=focus@auth.vcrxdev17.topica.vn/.*

org.jitsi.videobridge.ENABLE_STATISTICS=true
org.jitsi.videobridge.STATISTICS_TRANSPORT=pubsub
org.jitsi.videobridge.PUBSUB_SERVICE=vcrxdev17.topica.vn
org.jitsi.videobridge.PUBSUB_NODE=sharedStatsNode

org.jitsi.videobridge.ENABLE_STATISTICS=true
org.jitsi.videobridge.STATISTICS_TRANSPORT=muc
org.jitsi.videobridge.STATISTICS_INTERVAL=2000

org.jitsi.videobridge.xmpp.user.shard.HOSTNAME=vcrxdev17.topica.vn
org.jitsi.videobridge.xmpp.user.shard.DOMAIN=vcrxdev17.topica.vn
org.jitsi.videobridge.xmpp.user.shard.USERNAME=jvb02
org.jitsi.videobridge.xmpp.user.shard.PASSWORD=jvb02pass
org.jitsi.videobridge.xmpp.user.shard.MUC_JIDS=JvbBrewery@internal.vcrxdev17.topica.vn
org.jitsi.videobridge.xmpp.user.shard.MUC_NICKNAME=jvb02
org.jitsi.videobridge.xmpp.user.shard.DISABLE_CERTIFICATE_VERIFICATION=true

My jicofo sip-communicator

org.jitsi.jicofo.ALWAYS_TRUST_MODE_ENABLED=true
org.jitsi.jicofo.BRIDGE_MUC=JvbBrewery@internal.vcrxdev17.topica.vn

jvb error log

JVB 2019-09-26 17:27:20.111 INFO: [11] org.jitsi.videobridge.octo.OctoRelayService.start().112 Octo relay not configured.
JVB 2019-09-26 17:27:20.111 INFO: [1] org.jitsi.impl.configuration.ConfigurationServiceImpl.log() org.jitsi.videobridge.xmpp.user.DISABLE_CERTIFICATE_VERIFICATION=true
JVB 2019-09-26 17:27:20.111 INFO: [1] org.jitsi.impl.configuration.ConfigurationServiceImpl.log() org.jitsi.videobridge.xmpp.user.DOMAIN=vcrxdev17.topica.vn
JVB 2019-09-26 17:27:20.111 INFO: [1] org.jitsi.impl.configuration.ConfigurationServiceImpl.log() org.jitsi.videobridge.xmpp.user.MUC_JIDS=JvbBrewery@internal.vcrxdev17.topica.vn
JVB 2019-09-26 17:27:20.112 INFO: [1] org.jitsi.impl.configuration.ConfigurationServiceImpl.log() org.jitsi.videobridge.xmpp.user.HOSTNAME=118.70.223.185
JVB 2019-09-26 17:27:20.112 INFO: [1] org.jitsi.impl.configuration.ConfigurationServiceImpl.log() org.jitsi.videobridge.xmpp.user.PASSWORD=**********
JVB 2019-09-26 17:27:20.112 INFO: [1] org.jitsi.impl.configuration.ConfigurationServiceImpl.log() org.jitsi.videobridge.AUTHORIZED_SOURCE_REGEXP=focus@auth.vcrxdev17.topica.vn/.*
JVB 2019-09-26 17:27:20.112 INFO: [1] org.jitsi.impl.configuration.ConfigurationServiceImpl.log() org.jitsi.videobridge.STATISTICS_TRANSPORT=muc
JVB 2019-09-26 17:27:20.113 INFO: [1] org.jitsi.impl.configuration.ConfigurationServiceImpl.log() org.jitsi.videobridge.ENABLE_STATISTICS=true
JVB 2019-09-26 17:27:20.113 INFO: [1] org.jitsi.impl.configuration.ConfigurationServiceImpl.log() org.jitsi.videobridge.STATISTICS_INTERVAL=2000
JVB 2019-09-26 17:27:20.113 INFO: [1] org.jitsi.impl.configuration.ConfigurationServiceImpl.log() org.jitsi.videobridge.xmpp.user.MUC_NICKNAME=jvb01
JVB 2019-09-26 17:27:20.113 INFO: [1] org.jitsi.impl.configuration.ConfigurationServiceImpl.log() org.jitsi.videobridge.xmpp.user.USERNAME=jvb01
JVB 2019-09-26 17:27:20.144 INFO: [21] org.ice4j.ice.harvest.MappingCandidateHarvesters.initialize() Initialized mapping harvesters (delay=519ms). stunDiscoveryFailed=false
JVB 2019-09-26 17:27:20.151 WARNING: [22] org.jitsi.xmpp.mucclient.MucClient.log() Disabling certificate verification!
JVB 2019-09-26 17:27:20.165 WARNING: [16] org.jitsi.videobridge.EndpointMessageTransport.log() SCTP connection with 841480643730f3ce not ready yet.
JVB 2019-09-26 17:27:20.165 WARNING: [16] org.jitsi.videobridge.EndpointMessageTransport.log() No available transport channel, can’t send a message
JVB 2019-09-26 17:27:20.254 INFO: [19] org.jitsi.videobridge.IceUdpTransportManager.log() Using component socket: true
JVB 2019-09-26 17:27:20.257 INFO: [19] org.ice4j.ice.harvest.AbstractUdpListener.() Initialized AbstractUdpListener with address 118.70.223.185:10000/udp. Receive buffer size 10485760 (asked for 10485760)
JVB 2019-09-26 17:27:20.260 INFO: [19] org.ice4j.ice.harvest.SinglePortUdpHarvester.() Initialized SinglePortUdpHarvester with address 118.70.223.185:10000/udp
JVB 2019-09-26 17:27:20.272 INFO: [19] org.ice4j.ice.harvest.AbstractTcpListener.addLocalAddresses() Not using link-local address /fe80:0:0:0:250:56ff:fe90:a0e%ens160 for TCP candidates.
JVB 2019-09-26 17:27:20.294 WARNING: [19] org.jitsi.videobridge.IceUdpTransportManager.log() Failed to initialize TCP harvester on port 443: java.net.BindException: Address already in use. Retrying on port 4443.
JVB 2019-09-26 17:27:20.295 INFO: [19] org.ice4j.ice.harvest.AbstractTcpListener.addLocalAddresses() Not using link-local address /fe80:0:0:0:250:56ff:fe90:a0e%ens160 for TCP candidates.
JVB 2019-09-26 17:27:20.302 SEVERE: [25] org.jitsi.meet.ComponentMain.call().299 host-unknown, host:vcrxdev17.topica.vn, port:5347
org.xmpp.component.ComponentException: host-unknown
at org.jivesoftware.whack.ExternalComponent.connect(ExternalComponent.java:243)
at org.jivesoftware.whack.ExternalComponentManager.addComponent(ExternalComponentManager.java:242)
at org.jivesoftware.whack.ExternalComponentManager.addComponent(ExternalComponentManager.java:222)
at org.jitsi.meet.ComponentMain$3.call(ComponentMain.java:291)
at org.jitsi.meet.ComponentMain$3.call(ComponentMain.java:276)
at org.jitsi.retry.RetryStrategy$TaskRunner.run(RetryStrategy.java:193)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

jicofo log

Jicofo 2019-09-26 17:28:35.776 WARNING: [104] org.jitsi.jicofo.JvbDoctor.log() Health check failed on: 0c39424f-1134-4dd4-a41d-b2bae7a985b4@vcrxdev17.topica.vn/1aa98a35-8c91-47d0-9240-b91623c6b99f error: java.lang.Exception: No XMPP components
Jicofo 2019-09-26 17:28:35.777 INFO: [56] org.jitsi.jicofo.BridgeSelector.log() Removing JVB: 0c39424f-1134-4dd4-a41d-b2bae7a985b4@vcrxdev17.topica.vn/1aa98a35-8c91-47d0-9240-b91623c6b99f
Jicofo 2019-09-26 17:28:35.777 INFO: [56] org.jitsi.jicofo.JvbDoctor.log() Stopping health-check task for: 0c39424f-1134-4dd4-a41d-b2bae7a985b4@vcrxdev17.topica.vn/1aa98a35-8c91-47d0-9240-b91623c6b99f
Jicofo 2019-09-26 17:28:37.772 INFO: [37] org.jitsi.jicofo.BridgeSelector.log() Added videobridge: 0c39424f-1134-4dd4-a41d-b2bae7a985b4@vcrxdev17.topica.vn/1aa98a35-8c91-47d0-9240-b91623c6b99f v: null
Jicofo 2019-09-26 17:28:37.772 WARNING: [37] org.jitsi.jicofo.BridgeSelector.log() No pub-sub node mapped for 0c39424f-1134-4dd4-a41d-b2bae7a985b4@vcrxdev17.topica.vn/1aa98a35-8c91-47d0-9240-b91623c6b99f
Jicofo 2019-09-26 17:28:37.773 INFO: [56] org.jitsi.jicofo.JvbDoctor.log() Scheduled health-check task for: 0c39424f-1134-4dd4-a41d-b2bae7a985b4@vcrxdev17.topica.vn/1aa98a35-8c91-47d0-9240-b91623c6b99f

I missed anything?
Thanks.