CN116193165A - A Distributed Cluster Scheduling Method and System for Efficient Video Protocol Conversion - Google Patents
A Distributed Cluster Scheduling Method and System for Efficient Video Protocol Conversion Download PDFInfo
- Publication number
- CN116193165A CN116193165A CN202211698061.0A CN202211698061A CN116193165A CN 116193165 A CN116193165 A CN 116193165A CN 202211698061 A CN202211698061 A CN 202211698061A CN 116193165 A CN116193165 A CN 116193165A
- Authority
- CN
- China
- Prior art keywords
- routing
- protocol conversion
- node
- video
- video protocol
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
- H04N21/2343—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
- H04N21/234309—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4 or from Quicktime to Realvideo
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1034—Reaction to server failures by a load balancer
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/40—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using video transcoding, i.e. partial or full decoding of a coded input stream followed by re-encoding of the decoded output stream
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/643—Communication protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/643—Communication protocols
- H04N21/6437—Real-time Transport Protocol [RTP]
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
本发明涉及分布式集群调度技术,公开了一种高效视频协议转换分布式集群调度方法及系统,提供视频协议转换节点进行注册及视频协议转换节点状态保持,根据视频协议转换请求,进行路由调度;路由任务的分配,依据不同的路由策略及规则进行路由任务的分配;故障迁移,对视频协议转换故障节点的迁移;视频流的断流恢复,对输入输出的视频流发生断流告警时,通过缓存路由按原路由重启任务进行视频流断流的恢复。本发明支持横向节点扩容,不受单节点服务器能力限制,提升平台最大并发数量;支持多种分布式轮询策略,可按业务场景不同,进行配置调整。结合视频监控联网实际业务场景,基于视频协议转换需求进行按需动态路由,贴合业务,便于调整。
The invention relates to distributed cluster scheduling technology, and discloses a distributed cluster scheduling method and system for efficient video protocol conversion, which provides video protocol conversion nodes for registration and video protocol conversion node status maintenance, and performs routing scheduling according to video protocol conversion requests; Distribution of routing tasks, according to different routing strategies and rules for routing task distribution; fault migration, migration of video protocol conversion fault nodes; video stream interruption recovery, when the input and output video stream interruption alarm occurs, through The cache route restarts the task according to the original route to restore the video stream interruption. The invention supports horizontal node expansion without being limited by the capacity of a single node server, and increases the maximum number of concurrency of the platform; supports multiple distributed polling strategies, and can be configured and adjusted according to different business scenarios. Combined with the actual business scenario of video surveillance networking, on-demand dynamic routing is performed based on video protocol conversion requirements, which fits the business and is easy to adjust.
Description
技术领域technical field
本发明涉及分布式集群调度技术,尤其涉及了一种高效视频协议转换分布式集群调度方法及系统。The invention relates to a distributed cluster scheduling technology, in particular to a distributed cluster scheduling method and system for high-efficiency video protocol conversion.
背景技术Background technique
在联网汇聚平台系统中,明确定义尽可能最大化支持大规模视频并发接入及协议转换输出,受限于网络网口带宽及单节点视频转换处理能力,平台接入路数受限。In the network aggregation platform system, it is clearly defined to support large-scale concurrent video access and protocol conversion output as much as possible. Limited by the bandwidth of the network port and the video conversion processing capability of a single node, the number of access channels of the platform is limited.
如现有技术,CN201811610264.3,分布式任务调度方法、装置和系统;CN202110604591.3,一种基于ZOOKEEPER的分布式任务调度系统;现有技术中分布式集群调度一般都是跟ZOOKEEPER强绑定了;这样不便于扩展其他节点注册机制,整改的工作量非常大。Such as prior art, CN201811610264.3, distributed task scheduling method, device and system; CN202110604591.3, a distributed task scheduling system based on ZOOKEEPER; distributed cluster scheduling in the prior art is generally strongly bound to ZOOKEEPER It is not convenient to expand other node registration mechanisms, and the workload of rectification is very large.
发明内容Contents of the invention
本发明针对现有技术中现有技术中分布式集群调度跟ZOOKEEPER强绑定了;这样不便于扩展其他节点注册机制整改的工作量大的问题,提供了一种高效视频协议转换分布式集群调度方法及系统。The present invention aims at the problem that the distributed cluster scheduling in the prior art is strongly bound to ZOOKEEPER; it is not convenient to expand the workload of other node registration mechanism rectification, and provides a high-efficiency video protocol conversion distributed cluster scheduling methods and systems.
为了解决上述技术问题,本发明通过下述技术方案得以解决:In order to solve the above technical problems, the present invention is solved through the following technical solutions:
一种高效视频协议转换分布式集群调度方法,其方法包括:An efficient video protocol conversion distributed cluster scheduling method, the method comprising:
视频协议转换节点管理,提供视频协议转换节点进行注册及视频协议转换节点状态保持;Video protocol conversion node management, providing video protocol conversion node registration and video protocol conversion node status maintenance;
路由调度,根据视频协议转换请求,进行路由调度;Routing scheduling, according to the video protocol conversion request, routing scheduling;
路由任务的分配,依据不同的路由策略及规则进行路由任务的分配;Distribution of routing tasks, according to different routing strategies and rules for routing task distribution;
故障迁移,对视频协议转换故障节点的迁移;Fault migration, the migration of video protocol conversion failure nodes;
视频流的断流恢复,对输入输出的视频流发生断流告警时,通过缓存路由按原路由重启任务进行视频流断流的恢复。Recovery of video stream disconnection. When a disconnection alarm occurs for the input and output video streams, the task is restarted through the cached route according to the original route to recover the video stream disconnection.
作为优选,视频协议转换节点管理通过zookeeper+dubbo注册进行实现。Preferably, the video protocol conversion node management is implemented through zookeeper+dubbo registration.
作为优选,视频协议转换节点管理还提供路由调度查询;且不同的节点支持不同的视频协议转换类型。Preferably, the video protocol conversion node management also provides routing scheduling query; and different nodes support different video protocol conversion types.
作为优选,路由调度包括,Preferably, the routing scheduling includes,
处理视频协议转换请求,根据请求协议转换类型,结合是否转码、感知压缩,区分透传路由调度或转码路由调度,按路由策略动态平衡到集群中各个类型节点,同时在redis缓存中保存当前路由节点信息,以保障相同请求时,快速找到对应节点。Process video protocol conversion requests, according to the conversion type of the request protocol, combined with whether to transcode or perceive compression, distinguish between transparent transmission routing scheduling or transcoding routing scheduling, dynamically balance to each type of node in the cluster according to the routing strategy, and save the current data in the redis cache Routing node information to ensure that the corresponding node can be quickly found for the same request.
作为优选,路由策略包括透传路由和转码路由,透传路由配置所有可接入视频节点;转码路由配置支持转码节点。Preferably, the routing policy includes transparent transmission routing and transcoding routing, and the transparent transmission routing configures all accessible video nodes; the transcoding routing configuration supports transcoding nodes.
作为优选,路由规则按照能力值调度算法进行路由节点的计算;Preferably, the routing rules calculate the routing nodes according to the capability value scheduling algorithm;
根据平台标准机型设定基准能力值Sb,结合视频协议转换任务类型Tb,各个待路由节点当前能力值Bb,计算公式如下:Set the benchmark capability value S b according to the standard model of the platform, combined with the video protocol conversion task type T b , the current capability value B b of each node to be routed, the calculation formula is as follows:
IPb=Max{Sb-Bb}-Tb IP b =Max{S b -B b }-T b
其中,IPb为路由调度结果节点。。Among them, IP b is the route scheduling result node. .
作为优选,故障迁移包括,Preferably, failover includes,
故障节点自动检测,对已有缓存路由任务,再次路由时,发现原路由无法连接,设定故障时间点,并定期检测;若超过设定时间未完成恢复,则判断为节点故障,将原节点的缓存路由重新路由至新节点,若未超过设定时间内,节点离线变为在线,则继续保持路由,并清理当前节点的故障时间点缓存数据,再次发生时重新记录。Automatic detection of faulty nodes. For existing cached routing tasks, when rerouting, it is found that the original route cannot be connected, and the failure time point is set, and regular detection is performed; The cached route of the current node is rerouted to the new node. If the node is offline and becomes online within the set time, the route will continue to be maintained, and the current node’s cached data at the time of failure will be cleared, and it will be re-recorded when it occurs again.
为了解决上述技术问题,本发明还提供了一种高效视频协议转换分布式集群调度系统,其通过所述的一种高效视频协议转换分布式集群调度方法实现的系统,包括视频协议转换节点管理模块、路由调度模块、路由策略及规则模块、故障迁移模块和断流恢复模块;In order to solve the above technical problems, the present invention also provides a high-efficiency video protocol conversion distributed cluster scheduling system, which is implemented by the above-mentioned high-efficiency video protocol conversion distributed cluster scheduling method, including a video protocol conversion node management module , routing scheduling module, routing policy and rule module, fault migration module and power failure recovery module;
视频协议转换节点管理模块,用于视频协议转换节点进行注册及状态保持;The video protocol conversion node management module is used for the registration and state maintenance of the video protocol conversion node;
路由调度模块,根据请求视频协议转换类型,进行任务的调度;The routing scheduling module schedules tasks according to the conversion type of the requested video protocol;
路由策略及规则模块,依据不同的路由策略及规则进行任务的分配;Routing strategy and rule module, assign tasks according to different routing strategies and rules;
故障迁移模块,用于对视频协议转换故障节点的迁移;The failure migration module is used for the migration of video protocol conversion failure nodes;
断流恢复模块,用于对输入输出的视频流发生断流告警时,通过缓存路由按原路由重启任务。The cut-off recovery module is used to restart the task according to the original route through the cache route when a cut-off alarm occurs for the input and output video streams.
作为优选,视频协议转换节点管理模块通过zookeeper进行节点注册。Preferably, the video protocol conversion node management module performs node registration through zookeeper.
本发明由于采用了以上技术方案,具有显著的技术效果:The present invention has remarkable technical effect owing to adopted above technical scheme:
本发明的方式进行视频协议转换,支持横向动态扩展,因此对于大批量视频协议转换需求,此技术可以有效增强系统的处理能力,支持节点故障动态迁移,在节点故障发生时,将已调度在此节点的视频协议转换任务迁移到其他节点,可有效增强系统稳定性。支持按集群各节点服务器配置能力,动态均衡视频协议转换任务,最大限度充分利用集群资源,实现最大化资源利用率。The method of the present invention performs video protocol conversion and supports horizontal dynamic expansion. Therefore, for large-scale video protocol conversion requirements, this technology can effectively enhance the processing capacity of the system and support dynamic migration of node failures. When a node failure occurs, the scheduled The video protocol conversion task of the node is migrated to other nodes, which can effectively enhance the system stability. It supports the server configuration capabilities of each node in the cluster, dynamically balances video protocol conversion tasks, and makes full use of cluster resources to maximize resource utilization.
本发明支持横向节点扩容,不受单节点服务器能力限制,提升平台最大并发数量;The invention supports horizontal node expansion, is not limited by the capacity of a single node server, and increases the maximum concurrent number of platforms;
本发明支持多种分布式轮询策略,可按业务场景不同,进行配置调整;The present invention supports multiple distributed polling strategies, and configuration adjustments can be made according to different business scenarios;
本发明同时支持国标、rtsp、rtmp接入路由,支持rtmp、srt主动推流接入路由;支持透传及转码任务路由;The present invention supports national standard, rtsp, rtmp access routing at the same time, supports rtmp, srt active streaming access routing; supports transparent transmission and transcoding task routing;
本发明支持任务重试机制,如业务接收到无信源告警后,可再次经过路由调度尝试恢复任务,业务接收到无人观看告警后,可通过路由调度关闭任务。可以更灵活的切换,整体调度代码调整工作量都非常小。The invention supports a task retry mechanism. For example, after a service receives an alarm of no source, it can try to resume the task through routing scheduling again. After the service receives an alarm that no one is watching, it can close the task through routing scheduling. It can be switched more flexibly, and the overall scheduling code adjustment workload is very small.
附图说明Description of drawings
图1是本发明的系统图;Fig. 1 is a system diagram of the present invention;
图2是本发明的流程图;Fig. 2 is a flow chart of the present invention;
具体实施方式Detailed ways
下面结合附图与实施例对本发明作进一步详细描述。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments.
实施例1Example 1
一种高效视频协议转换分布式集群调度方法,其方法包括:An efficient video protocol conversion distributed cluster scheduling method, the method comprising:
视频协议转换节点管理,提供视频协议转换节点进行注册及视频协议转换节点状态保持;Video protocol conversion node management, providing video protocol conversion node registration and video protocol conversion node status maintenance;
路由调度,根据视频协议转换请求,进行路由调度;Routing scheduling, according to the video protocol conversion request, routing scheduling;
路由任务的分配,依据不同的路由策略及规则进行路由任务的分配;Distribution of routing tasks, according to different routing strategies and rules for routing task distribution;
故障迁移,对视频协议转换故障节点的迁移;Fault migration, the migration of video protocol conversion failure nodes;
视频流的断流恢复,对输入输出的视频流发生断流告警时,通过缓存路由按原路由重启任务进行视频流断流的恢复。Recovery of video stream disconnection. When a disconnection alarm occurs for the input and output video streams, the task is restarted through the cached route according to the original route to recover the video stream disconnection.
视频协议转换节点管理通过zookeeper+dubbo注册进行实现。Video protocol conversion node management is implemented through zookeeper+dubbo registration.
视频协议转换节点管理还提供路由调度查询;且不同的节点支持不同的视频协议转换类型。The video protocol conversion node management also provides routing scheduling query; and different nodes support different video protocol conversion types.
路由调度包括,Routing scheduling includes,
处理视频协议转换请求,根据请求协议转换类型,结合是否转码、感知压缩,区分透传路由调度或转码路由调度,按路由策略动态平衡到集群中各个类型节点,同时在redis缓存中保存当前路由节点信息,以保障相同请求时,快速找到对应节点。Process video protocol conversion requests, according to the conversion type of the request protocol, combined with whether to transcode or perceive compression, distinguish between transparent transmission routing scheduling or transcoding routing scheduling, dynamically balance to each type of node in the cluster according to the routing strategy, and save the current data in the redis cache Routing node information to ensure that the corresponding node can be quickly found for the same request.
路由策略包括透传路由和转码路由,透传路由配置所有可接入视频节点;转码路由配置支持转码节点。The routing strategy includes transparent transmission routing and transcoding routing. Transparent transmission routing configures all accessible video nodes; transcoding routing configuration supports transcoding nodes.
路由规则按照能力值调度算法进行路由节点的计算;Routing rules calculate routing nodes according to the ability value scheduling algorithm;
根据平台标准机型设定基准能力值Sb,结合视频协议转换任务类型Tb,各个待路由节点当前能力值Bb,计算公式如下:Set the benchmark capability value S b according to the standard model of the platform, combined with the video protocol conversion task type T b , the current capability value B b of each node to be routed, the calculation formula is as follows:
IPb=Max{Sb-Bb}-Tb IP b =Max{S b -B b }-T b
其中,IPb为路由调度结果节点。,在完成此次路由后的剩余能力值,业务可据此判断若结果小于0,则不足以承载当前任务,需集群扩容,若结果大于0,则直接按本次调度结果节点返回结果。Among them, IP b is the route scheduling result node. , the remaining capacity value after this routing is completed, the business can judge based on this. If the result is less than 0, it is not enough to carry the current task, and the cluster needs to be expanded. If the result is greater than 0, the node returns the result directly according to the scheduling result.
故障迁移包括,Failover includes,
故障节点自动检测,对已有缓存路由任务,再次路由时,发现原路由无法连接,设定故障时间点,并定期检测;若超过设定时间未完成恢复,则判断为节点故障,将原节点的缓存路由重新路由至新节点,若未超过设定时间内,节点离线变为在线,则继续保持路由,并清理当前节点的故障时间点缓存数据,再次发生时重新记录。Automatic detection of faulty nodes. For existing cached routing tasks, when rerouting, it is found that the original route cannot be connected, and the failure time point is set, and regular detection is performed; The cached route of the current node is rerouted to the new node. If the node is offline and becomes online within the set time, the route will continue to be maintained, and the current node’s cached data at the time of failure will be cleared, and it will be re-recorded when it occurs again.
实施例2Example 2
在实施例1基础上,本实施例为一种高效视频协议转换分布式集群调度系统,其通过所述的一种高效视频协议转换分布式集群调度方法实现的系统,包括视频协议转换节点管理模块、路由调度模块、路由策略及规则模块、故障迁移模块和断流恢复模块;On the basis of Embodiment 1, this embodiment is a distributed cluster scheduling system for high-efficiency video protocol conversion, which is implemented by the above-mentioned high-efficiency video protocol conversion distributed cluster scheduling method, including a video protocol conversion node management module , routing scheduling module, routing policy and rule module, fault migration module and power failure recovery module;
视频协议转换节点管理模块,用于视频协议转换节点进行注册及状态保持;The video protocol conversion node management module is used for the registration and state maintenance of the video protocol conversion node;
路由调度模块,根据请求视频协议转换类型,进行任务的调度;The routing scheduling module schedules tasks according to the conversion type of the requested video protocol;
路由策略及规则模块,依据不同的路由策略及规则进行任务的分配;Routing strategy and rule module, assign tasks according to different routing strategies and rules;
故障迁移模块,用于对视频协议转换故障节点的迁移;The failure migration module is used for the migration of video protocol conversion failure nodes;
断流恢复模块,用于对输入输出的视频流发生断流告警时,通过缓存路由按原路由重启任务。The cut-off recovery module is used to restart the task according to the original route through the cache route when a cut-off alarm occurs for the input and output video streams.
视频协议转换节点管理模块通过zookeeper进行节点注册。The video protocol conversion node management module performs node registration through zookeeper.
实施例3Example 3
在上述实施例基础上,汇聚平台产品立足泛安防领域,致力于感知数据的汇聚和整合,从传统的数据管理模式延伸到数据深度应用的云服务模式,如预览调阅服务、录像回放、电子地图、权限控制、事件中心、感知压缩服务、视频处理服务等,有效解决业务平台数据接入难、整合难、应用难、开发周期长等问题,降低业务建设成本。推动大数据融合,运用20多年视频领域的技术积累,为公安、交通、金融、教育、消防、社区、铁塔、加油站、水电站、海事、军队等行业用户提供完整的解决方案。On the basis of the above-mentioned embodiments, the aggregation platform products are based on the pan-security field, and are committed to the aggregation and integration of perceptual data, extending from the traditional data management model to the cloud service model of deep data application, such as preview access service, video playback, electronic Maps, authority control, event center, perception compression service, video processing service, etc., effectively solve the problems of difficult data access, integration, application, and long development cycle of the business platform, and reduce the cost of business construction. Promote the integration of big data and use more than 20 years of technology accumulation in the video field to provide complete solutions for users in industries such as public security, transportation, finance, education, fire protection, communities, iron towers, gas stations, hydropower stations, maritime affairs, and the military.
其中视频协议转换分布式集群调度技术承载整体视频接入、压缩转码、录像、远程录像回放等视频相关集群调度;Among them, video protocol conversion distributed cluster scheduling technology carries video-related cluster scheduling such as overall video access, compression transcoding, video recording, and remote video playback;
通过图2可知,集群部署完毕后,标识各节点类型,透传、H264转码、H265转码;平台接入设备,如GB28181、摄像机RTSP/RTMP、SDK接入、Arclink等;It can be seen from Figure 2 that after the cluster is deployed, identify the type of each node, transparent transmission, H264 transcoding, H265 transcoding; platform access devices, such as GB28181, camera RTSP/RTMP, SDK access, Arclink, etc.;
平台发起设备视频流透传接入,生成路由key,根据接入类型发起不同任务请求,如GB28181发起RTP收流、RTSP/RTMP直接拉流、ArcLink的SRT收流等;The platform initiates device video stream transparent transmission access, generates routing keys, and initiates different task requests according to the access type, such as GB28181 initiates RTP receiving stream, RTSP/RTMP direct streaming, ArcLink's SRT receiving stream, etc.;
路由调度根据请求参数如路由key,根据配置执行已配置路由策略(默认按能力值调度算法路由),优先查询redis缓存中是否已有分配节点,若有,保持原路由,若无,于整体集群节点按路由策略查询各节点能力值情况,找到剩余能力值最多节点IP,若整体均无剩余能力值剩余,则抛出能力不足异常。完成分配后,存储路由key及对应路由节点IP到redis缓存,并将请求按路由转到路由分配节点上;Routing scheduling executes the configured routing policy according to the request parameters such as routing key (the default routing algorithm is based on the capability value), and first checks whether there is an assigned node in the redis cache. If so, keep the original route; The node queries the capability value of each node according to the routing strategy, and finds the IP of the node with the largest remaining capability value. If there is no remaining capability value in the whole, an exception of insufficient capability is thrown. After the allocation is completed, the routing key and the corresponding routing node IP are stored in the redis cache, and the request is routed to the routing allocation node;
路由请求过程中获取到已分配路由IP后,检查当前路由IP在线状态,若当前节点暂时不在线,标识IP离线时间到redis中,若截止配置判定截止节点失效时间已到,则所有路由到当前节点的key,删除缓存中路由记录,平台再次发起路由任务时,重新进行分配,此时离线节点若未在线,新发起的路由任务均会分配到其他节点,若节点离线变为在线,则重新加入待路由节点,继续支持路由任务分配;After obtaining the assigned routing IP during the routing request process, check the online status of the current routing IP. If the current node is temporarily offline, mark the offline time of the IP in redis. The key of the node deletes the routing record in the cache. When the platform initiates the routing task again, it will be redistributed. If the offline node is not online at this time, the newly initiated routing task will be assigned to other nodes. Join the node to be routed and continue to support the distribution of routing tasks;
路由完成处理后,平台根据路由IP及路由key,结合平台已配置网络映射ip及端口,生成外部访问流地址;After the routing is processed, the platform generates an external access flow address based on the routing IP and routing key, combined with the configured network mapping ip and port of the platform;
当已接入流发生告警时,集群节点流媒体服务回调相应告警到本机服务,推送到集群MQ消息队列,平台订阅MQ,收到无信源告警时,按原路由重启任务,收到无人观看告警时,按原路由关闭任务;When an alarm occurs on the connected stream, the cluster node stream media service calls back the corresponding alarm to the local service, pushes it to the cluster MQ message queue, and the platform subscribes to MQ. When people watch the alarm, close the task according to the original route;
平台对某路视频发起转码请求时,根据视频源对应路由key,获取源视频rtsp地址,并读取视频源编码类型,平台综合视频源地址、源编码类型、转码输出编码类型,进行路由请求,路由调度根据源编码类型、转码输出编码类型判断所需转码节点类型为H264或H265,根据所需转码节点类型,在转码路由节点中查询可用路由节点,按路由策略查询各节点能力值情况,找到剩余能力值最多节点IP,若能力值剩余最多为0,则抛出能力不足异常。完成分配后,存储路由key及对应路由节点IP到redis缓存,并将请求按路由转到路由分配节点上;已接入的透传视频或转码视频任务,平台发起录像、转发、录像等请求时,均按原路由保持完成调度。已接入视频触发无信源告警、无人观看告警、发送超时等告警时,也按原路由保持完成调度恢复或关闭。When the platform initiates a transcoding request for a certain video channel, it obtains the rtsp address of the source video according to the routing key corresponding to the video source, and reads the encoding type of the video source. The platform integrates the video source address, source encoding type, and transcoding output encoding type for routing. According to the source code type and the transcode output code type, the route scheduling judges that the required transcoding node type is H264 or H265. According to the required transcoding node type, query the available routing nodes in the transcoding routing node, and query each In terms of node capability value, find the IP of the node with the most remaining capability value. If the remaining capability value is at most 0, an exception of insufficient capability will be thrown. After the distribution is completed, the routing key and the corresponding routing node IP are stored in the redis cache, and the request is forwarded to the routing distribution node according to the routing; for the transparently transmitted video or transcoding video tasks that have been accessed, the platform initiates recording, forwarding, recording and other requests , keep scheduling according to the original route. When the connected video triggers alarms such as no source alarm, no one watching alarm, and sending timeout, the original route will also be maintained to complete the scheduling recovery or shut down.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211698061.0A CN116193165A (en) | 2022-12-28 | 2022-12-28 | A Distributed Cluster Scheduling Method and System for Efficient Video Protocol Conversion |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211698061.0A CN116193165A (en) | 2022-12-28 | 2022-12-28 | A Distributed Cluster Scheduling Method and System for Efficient Video Protocol Conversion |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN116193165A true CN116193165A (en) | 2023-05-30 |
Family
ID=86437574
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211698061.0A Pending CN116193165A (en) | 2022-12-28 | 2022-12-28 | A Distributed Cluster Scheduling Method and System for Efficient Video Protocol Conversion |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116193165A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119299738A (en) * | 2024-12-11 | 2025-01-10 | 杭州阿启视科技有限公司 | National standard cascade platform flow optimization method based on Redis storage and management |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR101678743B1 (en) * | 2014-11-26 | 2016-11-22 | 건국대학교 산학협력단 | Hadoop-based system for providing distributed multimedia streaming service and operating the same |
| CN108600322A (en) * | 2018-03-27 | 2018-09-28 | 通号通信信息集团有限公司 | Integrated video monitoring cloud service system and method based on railway video technical specification |
| CN109151038A (en) * | 2018-09-05 | 2019-01-04 | 浙江树人学院 | A kind of green video monitoring system server group system and its implementation |
| CN115474079A (en) * | 2022-08-11 | 2022-12-13 | 中国电信股份有限公司 | Media stream migration method, device, electronic device and storage medium |
-
2022
- 2022-12-28 CN CN202211698061.0A patent/CN116193165A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR101678743B1 (en) * | 2014-11-26 | 2016-11-22 | 건국대학교 산학협력단 | Hadoop-based system for providing distributed multimedia streaming service and operating the same |
| CN108600322A (en) * | 2018-03-27 | 2018-09-28 | 通号通信信息集团有限公司 | Integrated video monitoring cloud service system and method based on railway video technical specification |
| CN109151038A (en) * | 2018-09-05 | 2019-01-04 | 浙江树人学院 | A kind of green video monitoring system server group system and its implementation |
| CN115474079A (en) * | 2022-08-11 | 2022-12-13 | 中国电信股份有限公司 | Media stream migration method, device, electronic device and storage medium |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119299738A (en) * | 2024-12-11 | 2025-01-10 | 杭州阿启视科技有限公司 | National standard cascade platform flow optimization method based on Redis storage and management |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103856760B (en) | Longitudinal virtualization device between video surveillance devices | |
| EP2761459B1 (en) | System and method for disaster recovery | |
| WO2017198144A1 (en) | Disaster tolerance method for iptv system, and iptv disaster tolerance system | |
| CN109379254B (en) | Network connection detection method and system based on video conference | |
| CN113489601A (en) | Anti-destruction method and device based on video networking autonomous cloud network architecture | |
| CN114629782B (en) | Anti-destruction succession method among multiple cloud platforms | |
| CN109379209B (en) | Method and device for upgrading storage service of video network | |
| CN111224889A (en) | A method and device for data transmission | |
| CN110971872B (en) | Video image information acquisition method based on distributed cluster | |
| CN109729388B (en) | Method and device for switching video networking servers | |
| CN109660753B (en) | Resource synchronization method and device | |
| CN109246135B (en) | Method and system for acquiring streaming media data | |
| CN102098270A (en) | System and method for realizing load balance of streaming media server | |
| CN111031084A (en) | Method and device for remote maintenance of video network terminal | |
| CN116193165A (en) | A Distributed Cluster Scheduling Method and System for Efficient Video Protocol Conversion | |
| CN108551571B (en) | A monitoring video distribution method, device, system and distribution server | |
| CN110049280B (en) | Method and device for processing monitoring data | |
| CN109525663B (en) | Video data display method and system | |
| CN109151519B (en) | Configuration distribution method and system based on video network | |
| CN111064988A (en) | Log saving method and device | |
| CN119155467A (en) | Visual network AI computing method and system based on SIP signaling and video gateway | |
| CN110557273A (en) | Terminal state warning method and device | |
| CN110134892B (en) | Loading method and system of monitoring resource list | |
| CN111182024A (en) | Data synchronization method, device and storage medium | |
| CN109819209B (en) | System, method and device for monitoring resource calling |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20230530 |
|
| RJ01 | Rejection of invention patent application after publication |