当前位置:网站首页>Optimization of channel status offline of other server devices caused by easycvr cluster restart

Optimization of channel status offline of other server devices caused by easycvr cluster restart

2022-07-07 04:21:00 EasyCVR

EasyCVR Recently released the cluster function , Technicians have also been testing and optimizing it , Constantly improve platform functions and improve user experience . In our previous article, we introduced to you about EasyCVR Server cluster related technical articles , Including how to deploy multiple servers on one server EasyCVR wait , Interested users can read our historical articles to learn about .

We found in the test , Multiple EasyCVR After cluster , Restarting one of them will cause all channels on other servers to reconnect . In this case , We optimized it immediately .

EasyCVR On reboot , The device and channel will be set offline in the database first , Then reconnect all channels , As a result, the channels on other servers will restart . So we updated the logic here , Judge at startup , If the cluster function is enabled , Then only the devices and channels on the current server are set offline , Then restart all channels under the current server .

After optimization according to this logic , The test again , In the demonstration , restart 153 The server ,123 Device status is still online :

About cluster deployment ,EasyCVR It can support binding different server databases , Realize the sharing and calling of database , To share the pressure of a single server .EasyCVR The clustering capability of can solve the massive video access and concurrency requirements in the project , Ensure the smoothness of the platform 、 Stable operation . The cluster version of the platform has been online for some time , Simple deployment 、 High compatibility , Interested users can go to the demonstration platform for experience or deployment testing .

原网站

版权声明
本文为[EasyCVR]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207062142413561.html