Use discreet ports by default due to write bottleneck (#40)

This commit is contained in:
David Zhao
2021-07-06 15:08:46 -07:00
committed by GitHub
parent 08e8827d53
commit 4ec2959950
4 changed files with 35 additions and 29 deletions
+26 -20
View File
@@ -12,21 +12,25 @@ redis:
# username: myuser
# password: mypassword
# when enabled, LiveKit will expose prometheus metrics on :6789/metrics
#prometheus_port: 6789
# WebRTC configuration
rtc:
# the main UDP port to transport WebRTC data
udp_port: 9000
# UDP ports to use for client traffic.
# this port range should be open for inbound traffic on the firewall
port_range_start: 50000
port_range_end: 60000
# when set, LiveKit enable WebRTC ICE over TCP when UDP isn't available
# this port *cannot* be behind load balancer or TLS, and must be exposed on the node
# WebRTC transports are encrypted and do not require additional encryption
tcp_port: 7881
# when set to true, attempts to discover the host's public IP via STUN
# this is useful for cloud environments such as AWS, where hosts have an internal IP
# this is useful for cloud environments such as AWS & Google where hosts have an internal IP
# that maps to an external one
use_external_ip: true
# when set, LiveKit will attempt to use a UDP mux so all UDP traffic goes through
# a single port. This simplifies deployment, but mux will become an overhead for
# highly trafficked deployments.
# port_range_start & end must not be set for this config to take effect
# udp_port: 7882
# optional settings
# # when using REMB, the max bitrate that the SFU would accept, defaults to 3Mbps
# max_bitrate: 3145728
@@ -44,6 +48,8 @@ rtc:
# mid_quality: 1s
# high_quality: 1s
# when enabled, LiveKit will expose prometheus metrics on :6789/metrics
#prometheus_port: 6789
# API key / secret pairs.
# Keys are used for JWT authentication, server APIs would require a keypair in order to generate access tokens
@@ -82,17 +88,17 @@ keys:
# smooth_samples: 8
# turn server
turn:
# Uses TLS. Requires cert and key pem files by either:
# - using turn.secretName if deploying with our helm chart, or
# - setting LIVEKIT_TURN_CERT and LIVEKIT_TURN_KEY env vars with file locations, or
# - using cert_file and key_file below
# defaults to false
enabled: false
# needs to match tls cert domain
domain: turn.myhost.com
# defaults to 3478 - if not using a load balancer, this must be set to 443
tls_port: 3478
# optional
# cert_file: /path/to/cert.pem
# key_file: /path/to/key.pem
#turn:
# # Uses TLS. Requires cert and key pem files by either:
# # - using turn.secretName if deploying with our helm chart, or
# # - setting LIVEKIT_TURN_CERT and LIVEKIT_TURN_KEY env vars with file locations, or
# # - using cert_file and key_file below
# # defaults to false
# enabled: false
# # needs to match tls cert domain
# domain: turn.myhost.com
# # defaults to 3478 - if not using a load balancer, this must be set to 443
# tls_port: 3478
# # optional
# # cert_file: /path/to/cert.pem
# # key_file: /path/to/key.pem