I’m using openvidu 3.0.0-beta2 community edition. I deployed openvidu to aws ec2 via aws cloud formation.
I want my server to work stably. So I wish I could limit the number of people(publishers or subscribers) in a room, or limit the quality(resolution in pixels or frame rate etc.) of the video. How can I set this up on the server side?
You can limit the number of participants in rooms setting this global option in your livekit.yaml file:
room:
max_participants: 10
(See livekit.yaml file)
To limit the numbre of tracks, you can do so per node, not for room. Use this configurations in livekit.yaml:
limit:
# defaults to 400 tracks in & out per CPU, up to 8000
num_tracks: 500
# defaults to 1 GB/s, or just under 10 Gbps
bytes_per_sec: 1_000_000_000
# how many tracks (audio / video) that a single participant can subscribe at same time.
# if the limit is exceeded, subscriptions will be pending until any subscribed track has been unsubscribed.
# value less or equal than 0 means no limit.
subscription_limit_video: 0
subscription_limit_audio: 0
(See livekit.yaml file)
1 Like
Thank you for your response. It was very helpful. However, I couldn’t find anything related to livekit.yaml etc. in openvidu docs. Could you please let me know what these are described in docs?
You can read about OpenVidu configuration in each specific deployment type.
If you have deployed OpenVidu Single Node: Configuration.
There you have explained in detail how to adjust and modify each configuration of each service to your liking.
1 Like
Thank you for your kind reply!