尝试加载测试Kurento设置(从浏览器和网络摄像头提供的WebRTC视频+音频流,以及在EC2实例内的Xvfb内的Choromium中运行的浏览器接收/播放,启动 en masse )。使用的应用程序是对一对多示例的略微修改,而它的原始版本提供相同的结果。
直到大约800个连接的观众,事情正常,但随后连接开始失败,如:
Fri Jun 17 2016 10:05:31 GMT+0000 (UTC) connecting presenter 4 with viewer 817
Fri Jun 17 2016 10:05:31 GMT+0000 (UTC) connecting presenter 4 with viewer 819
Fri Jun 17 2016 10:05:50 GMT+0000 (UTC) some error connecting presenter 4 with viewer 812 : Error: Request has timed out
Fri Jun 17 2016 10:05:50 GMT+0000 (UTC) some error connecting presenter 4 with viewer 806 : Error: Request has timed out
Fri Jun 17 2016 10:05:50 GMT+0000 (UTC) some error connecting presenter 4 with viewer 807 : Error: Request has timed out
Fri Jun 17 2016 10:05:50 GMT+0000 (UTC) some error connecting presenter 4 with viewer 810 : Error: Request has timed out
Fri Jun 17 2016 10:05:50 GMT+0000 (UTC) some error connecting presenter 4 with viewer 811 : Error: Request has timed out
Fri Jun 17 2016 10:05:50 GMT+0000 (UTC) some error connecting presenter 4 with viewer 809 : Error: Request has timed out
Fri Jun 17 2016 10:05:50 GMT+0000 (UTC) gather candidates error
Fri Jun 17 2016 10:05:50 GMT+0000 (UTC) gather candidates error
Fri Jun 17 2016 10:05:50 GMT+0000 (UTC) gather candidates error
Fri Jun 17 2016 10:05:50 GMT+0000 (UTC) gather candidates error
,在源头,
presenter[presenterId].webRtcEndpoint.connect(webRtcEndpoint, function(error) {
if (error) {
console_log("some error connecting presenter "+presenterId+
" with viewer "+sessionId+" : "+error);
stop(sessionId);
return callback(error);
}
800个连接是Kurento的限制吗?网络接口是10 gbit,根本没有加载,流量<1gbit / s。机器是一个16核的Xeon,带有128Gb的RAM。
如果我尝试使用更简单的机器(4核Xeon,32 RAM和1gbit接口),它可以正常工作,直到500个连接,然后网络和处理器负载达到60%(这是可以预期的,应该是这样)并且我不# 39;敢于加载它,但没有失败的连接或任何东西。我有点期望至少2000用于4倍更强大的机器,但它在800上失败...
是否可以扩展到超过800个连接?