Comments (10)
Not sure about a proper long-term solution, but a workaround is to use the single-port mode, in which case the portBase value will be (effectively) not used.
from jitsi-videobridge.
Thanks @bgrozev, we'll check out this mode.
from jitsi-videobridge.
@bgrozev the last time I looked the single port harvester just added this additional port. Is there a way to disable anything but that port?
from jitsi-videobridge.
@fippo that's pretty much the default behavior actually. The harvester itself only adds a port, but there is logic in the bridge which disables the dynamically allocated candidates if single-port is in use. This way we only use the single port for browsers, but use dynamic ports for endpoints without rtcpmux support (i.e. jigasi).
from jitsi-videobridge.
@bgrozev hah, that looks much better than what I remembered. Thanks!
from jitsi-videobridge.
d6610fd provides a fix for a related issue (which may have actually cause what you observed). The TCP and/or "single-port" port were used when updating the value, which resulted in it always staying at "minPort". The race condition is still there, but I believe it is very unlikely to cause any problems in practice.
from jitsi-videobridge.
Closing because no further problems have been reported for over a year. Please reopen if necessary.
from jitsi-videobridge.
We moved to single port mode, which has worked mostly fine for us and doesn't have this port-search issue.
We did have to increase the socket OS receive buffer sizes for the single port harvester. With the default limits, we were saturating these buffers and this led to audio drop outs. The settings we now use are as follows:
sysctl -w net.core.rmem_default=20971520
sysctl -w net.core.rmem_max=33554432
sysctl -w net.core.wmem_default=65536
sysctl -w net.core.wmem_max=33554432
from jitsi-videobridge.
from jitsi-videobridge.
Thanks, thats a good tip. Perhaps it could be added to the official documentation, here: https://github.com/jitsi/jitsi-videobridge/blob/master/doc/single-port.md
I'm not sure what the recommended value would be. We chose 20MB based on empirical tests with bots and how much memory our systems had available.
We've also experimented with a custom modification where we have multiple single port harvesters (i.e one per core), on different ports. The idea being that each SPH can use a smaller buffer size and gets its own IO input thread. However, we've never observed any benefit from that, except for perhaps a small improvement in ice candidate selection (less TCP and more direct and TURN-UDP in an videobridge under load.)
from jitsi-videobridge.
Related Issues (20)
- Videobridge considers endpoints with muted video when building lastN list HOT 10
- Question on "Improving WebRTC Call Quality with Machine Learning"
- jvb: false Warning: [...] thread limit null (hard null). These values are too low [...]
- Jigasi is not working after Updating from jitsi-videobridge2=2.2-45* to jitsi-videobridge2_2.2-61* HOT 1
- Bug with Jitsi Videobridge and Jigasi still exists and is not fixed HOT 1
- AV1 support? HOT 17
- Potential bug causing ReceiverConstraintsMap's maxHeight not being updated HOT 1
- Connection Idle Timeout
- Late joiners not receiving remote tracks HOT 7
- Deploying multiple video bridges does not work properly HOT 3
- The Videbridge needs a long time to fix connection problems to the XMPP server. HOT 8
- What happened to COLIBRI documentation? HOT 1
- Collibri relay ws connection problem HOT 3
- jvb HeapDumpOnOutOfMemoryError HOT 1
- JVB drops service after one minute with Failed to run health check: singlePortHarvesters must not be null HOT 1
- How to monitor Video Bridge using Prometheus/ Blackbox exporter? HOT 3
- Does initial-last-n actually works? HOT 10
- Crashes on Browser (Tabs) when screensharing / "Colibri websocket error: null" shown on JVB when tcp websocket connection is unexpectedly aborted (client) HOT 5
- jitsi-video bridge starting error. HOT 6
- No audio in either direction HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jitsi-videobridge.