Set relay quota per participant at 12 default for dual peer connection + resume scenarios (#4745)
This commit is contained in:
@@ -300,6 +300,10 @@ keys:
|
|||||||
# # set UDP port range for TURN relay to connect to LiveKit SFU, by default it uses a any available port
|
# # set UDP port range for TURN relay to connect to LiveKit SFU, by default it uses a any available port
|
||||||
# relay_range_start: 1024
|
# relay_range_start: 1024
|
||||||
# relay_range_end: 30000
|
# relay_range_end: 30000
|
||||||
|
# # caps the number of concurrent relay allocations a single participant credential may hold.
|
||||||
|
# # prevents one authenticated participant from exhausting the shared relay-port range for everyone else.
|
||||||
|
# # defaults to 12; a value <= 0 disables the quota.
|
||||||
|
# per_user_relay_allocation_limit: 12
|
||||||
# # set external_tls to true if using a L4 load balancer to terminate TLS. when enabled,
|
# # set external_tls to true if using a L4 load balancer to terminate TLS. when enabled,
|
||||||
# # LiveKit expects unencrypted traffic on tls_port, and still advertise tls_port as a TURN/TLS candidate.
|
# # LiveKit expects unencrypted traffic on tls_port, and still advertise tls_port as a TURN/TLS candidate.
|
||||||
# external_tls: true
|
# external_tls: true
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ const (
|
|||||||
// allocations a single participant credential may hold on the embedded TURN
|
// allocations a single participant credential may hold on the embedded TURN
|
||||||
// server. It prevents one authenticated participant from exhausting the
|
// server. It prevents one authenticated participant from exhausting the
|
||||||
// shared relay-port range for everyone else. A value <= 0 disables the quota.
|
// shared relay-port range for everyone else. A value <= 0 disables the quota.
|
||||||
DefaultTURNPerUserRelayAllocationLimit = 4
|
DefaultTURNPerUserRelayAllocationLimit = 12
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
Reference in New Issue
Block a user