当前位置:网站首页>How to perform concurrent stress testing on RTSP video streams distributed by audio and video streaming servers?

How to perform concurrent stress testing on RTSP video streams distributed by audio and video streaming servers?

2022-06-24 16:38:00 Tsingsee green rhino video

For ordinary video sites , Concurrency quantity is a very valuable data , In part of the time , The number of concurrencies may be small , But it can also soar in a short period of time and there is no upper limit , At this point, the system needs to have good expansion ability and load balancing ability . So how to distribute for streaming media server RTSP Flow concurrent stress testing to understand the ability of the system ? I'd like to share with you our testing process .

By using multiple channels RTSP The client pulls the stream , Can achieve concurrent stress testing . about RTSP Client selection , You can choose open source OpenRTSP The client performs pull flow test .

OpenRTSP Is used as follows :

1、 Download the source code wget http://www.live555.com/liveMedia/public/live555-latest.tar.gz http://www.live555.com/liveMedia/#license

2、 Compile source code tar -xvf live555-latest.tar.gz cd live

make after Get into testProgs Catalog stay testProgs Generated in directory openRTSP Executable file

3、 How to use it is as follows

Pull from local server rtsp flow openRTSP -b 1024000 rtsp://127.0.0.1:554/live

Using concurrent pull streaming , You can do this by using scripts , Call it many times , Such as 100 The script is as follows :

If you want to modify the number of concurrent paths of the test , modify seq The following parameters are OK .

原网站

版权声明
本文为[Tsingsee green rhino video]所创,转载请带上原文链接,感谢
https://yzsam.com/2021/04/20210413184329080i.html