[Solved]How to handle the "No pub-sub node mapped" warning

I am following this video to add multiple JVB

the jicofo looks fine except some warn:
Jicofo 2019-08-30 09:59:46.376 INFO: [1] org.jitsi.impl.configuration.ConfigurationServiceImpl.log() org.jitsi.focus.STATS_PUBSUB_NODE=sharedStatsNode
Jicofo 2019-08-30 09:59:46.376 INFO: [1] org.jitsi.impl.configuration.ConfigurationServiceImpl.log() org.jitsi.focus.pubsub.ADDRESS=jitsi.example.com

Jicofo 2019-08-30 09:59:46.840 WARNING: [16] org.jitsi.jicofo.BridgeSelector.log() No pub-sub node mapped for jvb1.jitsi.example.com

I have three questions:

  1. what is pub-sub used for ? collect statistics ?
  2. what’s the logical of the pub-sub mode ? do I need to do any other steps to enable it ?
  3. imaging I have deploy the jitis-web on one machine while jicofo and prosody on the other machine. the org.jitsi.focus.pubsub.ADDRESS should be pointing to jitsi-web or jicofo ?

Yes, based on those statistics jicofo will load balance between multiple bridges.

Nope, this is the pub sub address in the xmpp server, the pubsub component address, this is a virtual address inside the xmpp components and does not need to be resolvable.

thanks for the answer!
I see this warning:
Jicofo 2019-08-30 09:59:46.840 WARNING: [16] org.jitsi.jicofo.BridgeSelector.log() No pub-sub node mapped for jvb1.jitsi.example.com

so the pub sub is not working ?

Do you have in jicofo config: org.jitsi.jicofo.STATS_PUBSUB_NODE=jvb?
Where in jvb config you have:

org.jitsi.videobridge.STATISTICS_TRANSPORT=pubsub
org.jitsi.videobridge.PUBSUB_SERVICE=<your_domain>
org.jitsi.videobridge.PUBSUB_NODE=jvb

yes

on jicofo’s sip-communicator.properties
org.jitsi.focus.pubsub.ADDRESS=jitsi.example.com
org.jitsi.focus.STATS_PUBSUB_NODE=jvb

on jvb’s
org.jitsi.videobridge.ENABLE_STATISTICS=true
org.jitsi.videobridge.STATISTICS_TRANSPORT=pubsub
org.jitsi.videobridge.PUBSUB_SERVICE=jitsi.example.com
org.jitsi.videobridge.PUBSUB_NODE=jvb
org.jitsi.impl.neomedia.transform.srtp.SRTPCryptoContext.checkReplay=false

here is a pubsub log from jvb
JVB 2019-08-30 15:09:39.788 FINE: [24] org.jitsi.videobridge.xmpp.ComponentImpl.log() SENT:

the jvb seem keep posting the statistics to pub/sub.
is there a way to check the pub/sub data ?

problem solved.

on jicofo in the youtube guide is using
org.jitsi.focus.pubsub.ADDRESS=example.com
org.jitsi.focus.STATS_PUBSUB_NODE=sharedStatsNode

but it should be
org.jitsi.focus.pubsub.ADDRESS=example.com
org.jitsi.jicofo.STATS_PUBSUB_NODE=sharedStatsNode

I should use