Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).
1146 Discussions

配置ISP相关内容后无法生效

qian_e_
Beginner
1,040 Views

我在三个设备上分别部署了MCU-Server,三个设备共享数据库和MQ,配置了同一个域名按运营商,当不配置portal和webrtc_agent的ISP的时候,测试页面启动正常,但是一旦为每个设备指定ISP,该测试页面既无法正常工作,createToken会超时,即使token创建成功,也无法正常推流。配置如下

Node1:

portal.toml: isps=['cnn']

webrtc_agent:agent.toml: isps=['cnn']

Node2:

portal.toml: isps=['cnc']

webrtc_agent:agent.toml: isps=['cnc']

Node1:

portal.toml: isps=['cnu']

webrtc_agent:agent.toml: isps=['cnu']

0 Kudos
1 Solution
Lei_Z_Intel1
Employee
1,040 Views

如果设置了服务端的isp和region,只有在createToken时显式设置了isp和region preference的请求才能调度到相应的服务节点。具体参见api文档,,目前的sample可以在basic service里面检测和设置客户端的preference。

https://software.intel.com/sites/products/documentation/webrtc/js/class_n_1_1_a_p_i.html#a1ad5bbb863af0e649715e3896a559949

View solution in original post

0 Kudos
5 Replies
Lei_Z_Intel1
Employee
1,041 Views

如果设置了服务端的isp和region,只有在createToken时显式设置了isp和region preference的请求才能调度到相应的服务节点。具体参见api文档,,目前的sample可以在basic service里面检测和设置客户端的preference。

https://software.intel.com/sites/products/documentation/webrtc/js/class_n_1_1_a_p_i.html#a1ad5bbb863af0e649715e3896a559949

0 Kudos
qian_e_
Beginner
1,040 Views

Lei Zhai (Intel) wrote:

如果设置了服务端的isp和region,只有在createToken时显式设置了isp和region preference的请求才能调度到相应的服务节点。具体参见api文档,,目前的sample可以在basic service里面检测和设置客户端的preference。

https://software.intel.com/sites/products/documentation/webrtc/js/class_...

好的,万分感谢!

我测试的时候发现,启动两个cluster_manager 的时候,过一会儿会有一个提示发现两个master cluster,然后这个就退出了,此时流都会中断,并且刷新测试页面,创建token会超时,不知道这个情况你们有没有遇到过?该如何解决?

0 Kudos
Qiujiao_W_Intel
Employee
1,040 Views

hi,你们是在两台机器上部署了两个cluster_manager然后发现有两个master cluster对吗?这个问题是稳定重现的吗?请提供下出现这个问题时MCU各个module的部署情况

0 Kudos
qian_e_
Beginner
1,040 Views

Qiujiao W. (Intel) wrote:

hi,你们是在两台机器上部署了两个cluster_manager然后发现有两个master cluster对吗?这个问题是稳定重现的吗?请提供下出现这个问题时MCU各个module的部署情况

是的,我们两个设备共用一个DB和MQ,然后分别部署了MCU的除SIP,SIP_PORTAL以及RECORDING以外的其他所有module。

后来我们只启用了一个cluster后就没有问题了,但是遇到了其他问题。

调度策略配置如下:
portal='isp' 
webrtc='isp'

启动日志提示:

Strategy - Invalid specified scheduling strategy: isp , apply "randomly-pick" instead.
0 Kudos
Qiujiao_W_Intel
Employee
1,040 Views

根据这个错误提示,在cluster_manager.toml配置里配置了isp作为调度的strategy,这个是不支持的,我们支持的调度方法是事先定义好的请参照MCU的文档,如果你是想让用户连接调度到设定的isp上,请在用户createToken的时候把相应的isp跟region信息作为preference传进去,这样在配置正确的情况下就能调度到相应isp的module,具体请参考文档https://software.intel.com/sites/products/documentation/webrtc/js/class_n_1_1_a_p_i.html#a1ad5bbb863af0e649715e3896a559949

0 Kudos
Reply