[jitsi-dev] Is my config for Jicofo Load balancing right?


#1

Dear Jitsi Team,

I have installed the whole jitsi-meet, jicofo and jitsi-videobridge on 2
different server. All 2 server is running normally.

In the first server with domain is server1.jitsi.com, my config for
sip-communicator.properties file in distribution package of jitsi-video
bridge is:

*org.jitsi.videobridge.ENABLE_STATISTICS=trueorg.jitsi.videobridge.STATISTICS_TRANSPORT=pubsuborg.jitsi.videobridge.PUBSUB_SERVICE=server1.jitsi.com
<http://server1.jitsi.com>org.jitsi.videobridge.PUBSUB_NODE=sharedStatsNode*
In prosody config file, I added these following lines:

*admins = {server2.jitsi.com <http://server2.jitsi.com>}*
Then my config for sip-communicator.properties file in distrubution package
of Jicofo is:
org.jitsi.focus.pubsub.ADDRESS=server1.jitsi.com
org.jitsi.jicofo.STATS_PUBSUB_NODE=sharedStatsNode

In the second server with domain is server2.jitsi.com, my config for
sip-communicator.properties file in distribution package of jitsi-video
bridge is:

*org.jitsi.videobridge.ENABLE_STATISTICS=trueorg.jitsi.videobridge.STATISTICS_TRANSPORT=pubsuborg.jitsi.videobridge.PUBSUB_SERVICE=server1.jitsi.com
<http://server1.jitsi.com>org.jitsi.videobridge.PUBSUB_NODE=sharedStatsNode*

I tested by add 4 conference with the server1.jitsi.com domain, when I see
the log of video-bridge in both server, I only see the first server working
very hard, the second server seem doesn't received and sent anything.

So I wonder if I config wrong or the load balancing of jicofo only work
when the first server almost limit? Right now, I suppose that when I
created 4 conference on Server 1 and using load balancing with Server 2,
both Server 1 and Server 2 will work equally (2 conference will be created
on Server 1 and 2 conference will be created on Server 2).

Thank you so much.


#2

You need to have only 1 server, that is, 1 instance of prosody and 1 jicofo. The configure the multiple jvbs to publish statistics to the pubs node (which you also configured in jicofo). Have a look at this: https://github.com/jitsi/jicofo/blob/master/doc/load_balancing.md

···

On Mar 25, 2018, at 18:48, Nam Hoai <namhoai1995@gmail.com> wrote:

Dear Jitsi Team,

I have installed the whole jitsi-meet, jicofo and jitsi-videobridge on 2 different server. All 2 server is running normally.

In the first server with domain is server1.jitsi.com, my config for sip-communicator.properties file in distribution package of jitsi-video bridge is:
org.jitsi.videobridge.ENABLE_STATISTICS=true
org.jitsi.videobridge.STATISTICS_TRANSPORT=pubsub
org.jitsi.videobridge.PUBSUB_SERVICE=server1.jitsi.com
org.jitsi.videobridge.PUBSUB_NODE=sharedStatsNode
In prosody config file, I added these following lines:
admins = {
server2.jitsi.com
}
Then my config for sip-communicator.properties file in distrubution package of Jicofo is:
org.jitsi.focus.pubsub.ADDRESS=server1.jitsi.com
org.jitsi.jicofo.STATS_PUBSUB_NODE=sharedStatsNode

In the second server with domain is server2.jitsi.com, my config for sip-communicator.properties file in distribution package of jitsi-video bridge is:
org.jitsi.videobridge.ENABLE_STATISTICS=true
org.jitsi.videobridge.STATISTICS_TRANSPORT=pubsub
org.jitsi.videobridge.PUBSUB_SERVICE=server1.jitsi.com
org.jitsi.videobridge.PUBSUB_NODE=sharedStatsNode

I tested by add 4 conference with the server1.jitsi.com domain, when I see the log of video-bridge in both server, I only see the first server working very hard, the second server seem doesn't received and sent anything.

So I wonder if I config wrong or the load balancing of jicofo only work when the first server almost limit? Right now, I suppose that when I created 4 conference on Server 1 and using load balancing with Server 2, both Server 1 and Server 2 will work equally (2 conference will be created on Server 1 and 2 conference will be created on Server 2).

Thank you so much.

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

--
Saúl


#3

Dear Saul,

I have config like the load_balancing.md, but I still have this error when
running jitsi video bridge on server 2:

org.jitsi.meet.ComponentMain.call().278 java.io.EOFException: input
contained no data, host:domain.of.server1, port:8888

Do you know how to fix it, or where I wrong? Thank you so much.

···

On Wed, Mar 28, 2018 at 2:37 PM, Saúl Ibarra Corretgé < scorretge@atlassian.com> wrote:

You need to have only 1 server, that is, 1 instance of prosody and 1
jicofo. The configure the multiple jvbs to publish statistics to the pubs
node (which you also configured in jicofo). Have a look at this:
https://github.com/jitsi/jicofo/blob/master/doc/load_balancing.md

> On Mar 25, 2018, at 18:48, Nam Hoai <namhoai1995@gmail.com> wrote:
>
> Dear Jitsi Team,
>
> I have installed the whole jitsi-meet, jicofo and jitsi-videobridge on 2
different server. All 2 server is running normally.
>
> In the first server with domain is server1.jitsi.com, my config for
sip-communicator.properties file in distribution package of jitsi-video
bridge is:
> org.jitsi.videobridge.ENABLE_STATISTICS=true
> org.jitsi.videobridge.STATISTICS_TRANSPORT=pubsub
> org.jitsi.videobridge.PUBSUB_SERVICE=server1.jitsi.com
> org.jitsi.videobridge.PUBSUB_NODE=sharedStatsNode
> In prosody config file, I added these following lines:
> admins = {
> server2.jitsi.com
> }
> Then my config for sip-communicator.properties file in distrubution
package of Jicofo is:
> org.jitsi.focus.pubsub.ADDRESS=server1.jitsi.com
> org.jitsi.jicofo.STATS_PUBSUB_NODE=sharedStatsNode
>
> In the second server with domain is server2.jitsi.com, my config for
sip-communicator.properties file in distribution package of jitsi-video
bridge is:
> org.jitsi.videobridge.ENABLE_STATISTICS=true
> org.jitsi.videobridge.STATISTICS_TRANSPORT=pubsub
> org.jitsi.videobridge.PUBSUB_SERVICE=server1.jitsi.com
> org.jitsi.videobridge.PUBSUB_NODE=sharedStatsNode
>
> I tested by add 4 conference with the server1.jitsi.com domain, when I
see the log of video-bridge in both server, I only see the first server
working very hard, the second server seem doesn't received and sent
anything.
>
> So I wonder if I config wrong or the load balancing of jicofo only work
when the first server almost limit? Right now, I suppose that when I
created 4 conference on Server 1 and using load balancing with Server 2,
both Server 1 and Server 2 will work equally (2 conference will be created
on Server 1 and 2 conference will be created on Server 2).
>
> Thank you so much.
>
> _______________________________________________
> dev mailing list
> dev@jitsi.org
> Unsubscribe instructions and other list options:
> http://lists.jitsi.org/mailman/listinfo/dev

--
Saúl

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev