-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: allow multiple videobridges #55
Closed
murme1
wants to merge
8
commits into
systemli:master
from
technischerpunkt:feature/allow-multiple-videobridges
Closed
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
1285f44
move videobridge into seperate role
murme1 0d8dfba
configure for multiple videobridge setup
murme1 93ab0a7
fix prosody warnings
murme1 b011934
fix jicofo logging
murme1 5f463e0
configure octo
murme1 49efb41
make jicofo warning go away
murme1 92d5ce0
make load packet-rate configurable
murme1 f64cf83
make role backwards compatible
murme1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
galaxy_info: | ||
role_name: meet | ||
dependencies: | ||
- role: systemli.apt_repositories | ||
vars: | ||
apt_repositories: | ||
- preset: jitsi | ||
name: download_jitsi_org | ||
packages: "{{ jitsi_meet_packages }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
handlers= java.util.logging.ConsoleHandler | ||
|
||
# Handlers with XMPP debug enabled: | ||
#handlers= java.util.logging.ConsoleHandler, org.jitsi.impl.protocol.xmpp.log.XmppPacketsFileHandler | ||
|
||
# Handlers with syslog enabled: | ||
#handlers= java.util.logging.ConsoleHandler, com.agafua.syslog.SyslogHandler | ||
|
||
java.util.logging.ConsoleHandler.level = {{ jitsi_meet_jicofo_loglevel }} | ||
java.util.logging.ConsoleHandler.formatter = org.jitsi.utils.logging2.JitsiLogFormatter | ||
java.util.logging.ConsoleHandler.filter = org.jitsi.impl.protocol.xmpp.log.ExcludeXmppPackets | ||
|
||
net.java.sip.communicator.util.ScLogFormatter.programname=Jicofo | ||
.level= {{ jitsi_meet_jicofo_loglevel }} | ||
|
||
# To enable XMPP packets logging add XmppPacketsFileHandler to the handlers property | ||
org.jitsi.impl.protocol.xmpp.log.PacketDebugger.level=ALL | ||
org.jitsi.impl.protocol.xmpp.log.XmppPacketsFileHandler.pattern=/var/log/jitsi/jicofo-xmpp.log | ||
org.jitsi.impl.protocol.xmpp.log.XmppPacketsFileHandler.append=true | ||
org.jitsi.impl.protocol.xmpp.log.XmppPacketsFileHandler.limit=200000000 | ||
org.jitsi.impl.protocol.xmpp.log.XmppPacketsFileHandler.count=3 | ||
|
||
# Syslog (uncomment handler to use) | ||
com.agafua.syslog.SyslogHandler.transport = udp | ||
com.agafua.syslog.SyslogHandler.facility = local0 | ||
com.agafua.syslog.SyslogHandler.port = 514 | ||
com.agafua.syslog.SyslogHandler.hostname = localhost | ||
com.agafua.syslog.SyslogHandler.formatter = org.jitsi.utils.logging2.JitsiLogFormatter | ||
com.agafua.syslog.SyslogHandler.escapeNewlines = false | ||
com.agafua.syslog.SyslogHandler.filter = org.jitsi.impl.protocol.xmpp.log.ExcludeXmppPackets | ||
|
||
# to disable double timestamps in syslog uncomment next line | ||
#net.java.sip.communicator.util.ScLogFormatter.disableTimestamp=true | ||
|
||
# time series logging | ||
java.util.logging.SimpleFormatter.format= %5$s%n | ||
java.util.logging.FileHandler.level = ALL | ||
java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter | ||
java.util.logging.FileHandler.pattern = /tmp/jvb-series.log | ||
java.util.logging.FileHandler.limit = 200000000 | ||
java.util.logging.FileHandler.count = 1 | ||
java.util.logging.FileHandler.append = false | ||
|
||
timeseries.level=OFF | ||
timeseries.org.jitsi.videobridge.cc.vp8.level=ALL | ||
timeseries.useParentHandlers = false | ||
timeseries.handlers = java.util.logging.FileHandler | ||
|
||
# uncomment to see how Jicofo talks to the JVB | ||
#org.jitsi.impl.protocol.xmpp.colibri.level=ALL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[email protected].{{ jitsi_meet_server_name }} | ||
|
||
{% if jitsi_meet_octo_enabled -%} | ||
org.jitsi.jicofo.BridgeSelector.BRIDGE_SELECTION_STRATEGY={{ jitsi_meet_octo_selection_strategy }} | ||
org.jitsi.jicofo.SHORT_ID=1 | ||
{% endif -%} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,8 @@ | |
-- Example: admins = { "[email protected]", "[email protected]" } | ||
admins = { } | ||
|
||
network_backend = "epoll" | ||
|
||
-- Enable use of libevent for better performance under high load | ||
-- For more information see: https://prosody.im/doc/libevent | ||
--use_libevent = true | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
# Global | ||
jitsi_meet_server_name: "meet.example.com" | ||
jitsi_meet_config_stun_servers: | ||
- meet-jit-si-turnrelay.jitsi.net:443 | ||
jitsi_meet_jicofo_user: focus | ||
|
||
# Videobridge | ||
jitsi_meet_videobridge_port: 5347 | ||
|
||
## single server vs scalable setup | ||
jitsi_meet_single_instance: True | ||
jitsi_meet_videobridge_prosody_server_ip: "localhost" | ||
jitsi_meet_videobridge_muc_nickname: "{{ jitsi_meet_single_instance | ternary('jvb1', ansible_hostname) }}" | ||
_jitsi_meet_apt_repositories_pin_packages: | ||
- jicofo | ||
- jitsi-meet-prosody | ||
- jitsi-meet-web | ||
- jitsi-meet-web-config | ||
jitsi_meet_apt_repositories_pin_packages: "{{ ['jitsi-videobridge2'] + (jitsi_meet_single_instance | ternary(_jitsi_meet_apt_repositories_pin_packages, [])) }}" | ||
|
||
# Octo | ||
jitsi_meet_octo_enabled: False | ||
jitsi_meet_octo_private_ip: "{{ ansible_default_ipv4.address }}" | ||
jitsi_meet_octo_public_ip: "{{ ansible_default_ipv4.address }}" | ||
jitsi_meet_octo_region: region1 | ||
|
||
## The packet rate (pps) at which we'll consider the bridge overloaded | ||
jitsi_meet_videobridge_load_threshold: 50000 | ||
## The packet rate (pps) at which we'll consider the bridge 'underloaded' enough to start recovery | ||
jitsi_meet_videobridge_recovery_threshold: 40000 | ||
|
||
## Logging | ||
jitsi_meet_videobridge_loglevel: "WARNING" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
- name: restart jitsi-videobridge2 | ||
service: | ||
name: jitsi-videobridge2 | ||
state: restarted |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is ugly, but works.