如何加载使用Opentok实现的移动视频流应用的测试/压力测试?

时间:2018-06-04 07:43:28

标签: video-streaming webrtc load-testing stress-testing opentok

我们要求测试交互式广播解决方案,该解决方案允许观众通过实时视频和语音通信与演示者互动,同样也将向更多观众(100个用户)广播。解决方案将被实施使用OPENTOK API(WEBRTC视频流),仅在手机上提供

是否有可以处理此要求的负载/压力/性能测试工具,并且基本上允许我生成可以流式传输交互式广播的这100个虚拟用户?

3 个答案:

答案 0 :(得分:2)

没有这样的公共工具,但在OpenTok测试团队中我们已经成功测试了多达3000个流(发布者数量x用户数),所以,只要网络和设备都很好,你就应该没有1个发布者和100个订阅者的问题。这也可以帮到你:

https://tokbox.com/developer/guides/broadcast/live-interactive-video/

答案 1 :(得分:2)

要大规模测试WebRTC,您可以查看testRTC

这是一项商业服务,使您能够编写一个脚本,然后自动化并扩展到与您的服务交互的数千个并行用户。重点是WebRTC测试和监控,因此您可以解决有关资源分配,用户同步和媒体指标收集和分析的问题。

以下是我们去年撰写的有关如何扩展Kurento服务器(https://testrtc.com/sessions-kurento-server/)的内容 - 相同/类似的内容可应用于任何基于WebRTC的内容应用

答案 2 :(得分:0)

Looking into How we test WebRTC live video sessions for massive audiences article I can see 2 things:

  1. TokBox seems to be carefully load-testing their Cloud API so if your service relies on TokBox Cloud - you should be good to go (or focus your load testing on your application backend)
  2. If you still want to perform the load test you can go for their approach and use one of SDKs in order to create sessions using your favourite programming language and load testing tool. If you don't have any idea regarding which tool to choose you can check out Open Source Load Testing Tools: Which One Should You Use? article for an overview of the most popular and advanced free and open source load testing tools and frameworks.