How to get real-time stat information of conference

sangsoo

Member
hello.
We did a load test referring to a recent blog post.

1. What kind of server do you need to run a thousand WebRTC streams?​
2. 10 Important WebRTC Streaming Metrics and Configuring Prometheus + Grafana Monitoring​
3. WebRTC Back and Forth​

-----Version info-----​
wcs_version=5.2.1165-c8fde39f1f6647be8d3471ba45a96199b3e63731​
wcs_client_version=2.0.217-fa5907cf761725e141a785b586e5051a74dab905​

I got the results I needed.
As a result, our service was suitable for operating 60 rooms per server(WCS).

Our service is getting WS connection and in/out stream information from "action=stat",
Likewise, could you provide additional conference stats (number of rooms in use)?
If possible, it will be helpful for our service operation.

By collecting conference (room) real-time stat information of multiple WCS with Prometheus,
I would like to choose a WCS with a small number of rooms.

Please review.
thank you
 

Max

Administrator
Staff member
Good day.
Likewise, could you provide additional conference stats (number of rooms in use)?
If possible, it will be helpful for our service operation.
Under the hoods, there is no any room on server if you're using RoomApi. A room is not an object. We just added some signaling to an usual WebRTC publishing and playback. That's what we call RoomApi.
But you can use streams statistics http://wcs:8081/?action=stat&groups=streams_stats to get all the streams published per room:
Code:
-----Stream Stats-----
...
streams_viewers=room-048536-user2-1982/1;room-048536-user1-fec5/1
streams_synchronization=room-048536-user2-1982/-5;room-048536-user1-fec5/-13
...
So you have a room name room-048536 and user streams names user1-fec5, user2-1982. Then, you can collect all the rooms per server by name, and compute a streams per room count. More streams, more server load.
 

sangsoo

Member
Thank you for answer.

It's a little disappointing, but I think it's a good way to use it enough.
We will collect room information as streams_viewers value.
It was very helpful. thank you
 
Top