当前位置:网站首页>流媒体集群应用与配置:如何在一台服务器部署多个EasyCVR?
流媒体集群应用与配置:如何在一台服务器部署多个EasyCVR?
2022-06-29 00:45:00 【EasyCVR】
我们在此前的文章中和大家介绍过关于EasyCVR平台的集群功能,感兴趣的用户可以翻阅我们往期的文章进行了解。集群作为一种高效的服务器协作方式,它不仅能实现服务器负载均衡,并且还具备高可靠性、高可扩展性,以及较强的可伸缩性等特点,在项目的实际应用中发挥了极大的作用。

今天我们以实际项目为例子,和大家分享一下如何在一台服务器中部署多个EasyCVR。
用户反馈,利用国标注册工具大量注册国标设备,当达到3000左右的时候,EasyCVR平台原来的设备会停止拉流,过一段时间后会自动恢复。在不进行大量注册的时候,拉流是比较稳定的。我们对此进行了排查,猜测可能是因为大量注册设备时,15060端口出现了堵塞情况。
为了解决这一问题,我们考虑使用EasyCVR集群功能来完成。因为用户只有一台服务器,实际接入量大概为6000路左右。而集群所具备的功能,刚好可以满足不同服务器之间的数据共享需求。
在同一台服务器部署多个EasyCVR,首先需要解决的就是端口冲突问题。
1)首先,在一台服务器上创建多个相同的EasyCVR版本(不同软件版本,数据库表结构可能会有差异,因此建议使用同一版本)。在这里为了方便演示,我们开了3路EasyCVR。

2)在此处三个EasyCVR软件包里,修改easycvr.ini(路径为:.\EasyCVR_clu1-windows-2.3.2-2206212142\easycvr.ini)和tsingsee.ini(路径为:.\EasyCVR_clu1-windows-2.3.2-2206212142\mediaserver\tsingsee.ini)


3)在easycvr.ini中修改数据库的连接以及server-id:


4)演示修改端口如下:

5)修改完成后,在任务管理器—性能—打开资源监视器—网络—侦听端口,查看修改的端口是否已被占用,如图:

6)在确保端口无误后,即能以进程方式启动这三个EasyCVR进程。
7)以不同的http端口打开平台,在配置中心—集群配置中启用集群,并做好相应的配置。

8)现在就可以往不同的SIP端口批量注册设备了。

集群方案可通过分担服务器压力来解决大并发的需求,保障平台的流畅、稳定运行。
EasyCVR的集群不仅提升了平台视频服务能力的灵活性与拓展性,而且也极大提升了服务器的计算与处理能力,在场景应用上更加能满足用户的多业务拓展需求。感兴趣的用户可以前往演示平台进行体验或部署测试。

边栏推荐
- 浏览器缓存库设计总结(localStorage/indexedDB)
- Jbridge bridging frame technology for AI computing power landing
- Install MySQL on Windows platform (with Navicat premium 12 "using" tutorial)
- Analysis Framework -- establishment of user experience measurement data system
- Haskell 配置 VS code 开发环境 (2022年6月)
- 机器视觉系统的配件及工作过程
- sql入门
- MySQL high availability dual master synchronization
- [Gym 102423]-Elven Efficiency | 思维
- Daily question 1: missing numbers
猜你喜欢

What is contemporaneous group analysis? Teach you to use SQL to handle
![[MCU club] design of GSM version of range hood based on MCU [simulation design]](/img/8c/933ebfaeec63c0d1ffe361cb2bb91a.jpg)
[MCU club] design of GSM version of range hood based on MCU [simulation design]

Redis是什么
![[gym 102423]-elven efficiency | thinking](/img/cf/b65f3db1580a83478f8351cea22040.png)
[gym 102423]-elven efficiency | thinking

Blazor University (34)表单 —— 获得表单状态
![[image detection] line recognition based on Hough transform (fitting angle bisector) with matlab code](/img/29/a3dc68ebc958ff96c3d8cc771a84f1.jpg)
[image detection] line recognition based on Hough transform (fitting angle bisector) with matlab code

How the slip ring motor works
【架构师(第三十八篇)】 服务端开发之本地安装最新版 MySQL 数据库

Difference between applying for trademark in the name of individual and company

每日一题:消失的数字
随机推荐
Introduction to JVM working principle
Basic use of Chrome browser
[image registration] improved SAR image registration based on sar-sift with matlab code
11. target segmentation
Install MySQL on Windows platform (with Navicat premium 12 "using" tutorial)
[leetcode] 522. 最长特殊序列 II 暴力 + 双指针
[MCU club] design of classroom number detection based on MCU [simulation design]
PR 2021 quick start tutorial, how to use audio editing in PR?
Pinhole camera with added lens
旋转接头安装使用注意事项
Excel使用过程中的参考资料
Reference materials in the process of using Excel
【UVM】我的 main_phase 都跑完了,为啥 case 无法退出?太不讲道理!
[agile 5.1] core of planning: user stories
Daily practice: delete duplicates in the ordered array
戴口罩人臉數據集和戴口罩人臉生成方法
MySQL high availability dual master synchronization
Mapbox GL loading local publishing DEM data
MySQL 8.0 above reporting 2058 solution
请问基金是否靠谱,安全吗