CN115484139A - Video strategy management decentralized method based on video network monitoring - Google Patents
Video strategy management decentralized method based on video network monitoring Download PDFInfo
- Publication number
- CN115484139A CN115484139A CN202211069498.8A CN202211069498A CN115484139A CN 115484139 A CN115484139 A CN 115484139A CN 202211069498 A CN202211069498 A CN 202211069498A CN 115484139 A CN115484139 A CN 115484139A
- Authority
- CN
- China
- Prior art keywords
- video
- strategy
- information
- server
- cluster
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 50
- 238000012544 monitoring process Methods 0.000 title claims abstract description 33
- 230000008569 process Effects 0.000 claims abstract description 10
- 230000002085 persistent effect Effects 0.000 claims abstract description 9
- 238000012545 processing Methods 0.000 claims description 10
- 230000006870 function Effects 0.000 abstract description 5
- 230000007547 defect Effects 0.000 abstract description 3
- 230000006872 improvement Effects 0.000 abstract description 3
- 238000013461 design Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000010076 replication Effects 0.000 description 1
- VEMKTZHHVJILDY-UHFFFAOYSA-N resmethrin Chemical compound CC1(C)C(C=C(C)C)C1C(=O)OCC1=COC(CC=2C=CC=CC=2)=C1 VEMKTZHHVJILDY-UHFFFAOYSA-N 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/04—Network management architectures or arrangements
- H04L41/042—Network management architectures or arrangements comprising distributed management centres cooperatively managing the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/30—Decision processes by autonomous network management units using voting and bidding
-
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/18—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Multimedia (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
A video strategy management decentralized method based on video network monitoring is characterized in that a cluster of a high-availability storage unit is copied from a master to a slave to receive an external video strategy, and a manager of the cluster receives and processes the video strategy, wherein the process comprises compiling strategy executor information, task information, video source nodes and other information and storing the information into a shared memory in an overwriting mode; and the executer and the observer nodes in the cluster read the strategy from the shared memory, select the tasks to be processed according to the strategy information, acquire the video streams of the corresponding video point positions according to the task information and the information of the video source nodes and then complete the persistent storage of the video data. The invention can effectively solve the defects brought by the traditional C/S management mode and the technical architecture, and can realize the improvement of the video recording service function in the current video network video monitoring system under the condition of not changing other software architectures of the original system in the specific implementation process.
Description
Technical Field
The invention relates to the distributed field, in particular to a video strategy management decentralized method based on video network monitoring.
Background
The traditional video network monitoring system adopts a C/S management mode and a technical framework of a video center management unit for a plurality of storage units, and the video center management unit transmits a video strategy to the storage units through a network control signaling to implement a video task. The above-described traditional centralized management model and technical architecture expose the following two serious drawbacks:
1. the video center management unit is not only responsible for strategy editing, but also responsible for strategy execution; the strategy read-write inseparable framework is often easy to reach the processing performance bottleneck of a module along with the rapid increase of the service volume, thereby causing the false death of the service, and simultaneously, in order to meet the requirement of a sufficient service volume video recording center management server, the requirement of multiplied expansion construction and the multiplied increase of the workload of later-stage manpower operation and maintenance are required, thereby causing the cost of hardware devices and the management cost to be continuously increased;
2. with the increase of the traffic, the problem of single point fault of the centralized management mode also begins to be highlighted, and once the service is down, all the services depending on the centralized management mode fail. If a dual-machine high-availability deployment scheme is adopted, one server is used for standby and ready preparation, problems can be partially solved, but the problem is difficult to popularize comprehensively in view of the high cost of load balancing equipment.
Disclosure of Invention
In view of the above, the present invention has been developed to provide a video strategy management decentralized method based on video network monitoring that overcomes or at least partially solves the above-mentioned problems.
In order to solve the technical problem, the embodiment of the application discloses the following technical scheme:
a video strategy management decentralized method based on video network monitoring comprises the following steps:
s100, a network monitoring system issues a video recording strategy to a master-slave copied high-availability storage unit cluster;
s200, starting a master-slave copied high-availability storage unit cluster according to a video recording strategy issued by a network monitoring system, electing the interior of the cluster according to a first preset rule, and electing three roles of a manager, an executor and an observer in the cluster;
s300, after the election is completed, the cluster gives an external access address of the virtual IP address to a manager, and the manager can receive a new video recording strategy through the virtual IP address;
s400, after receiving a new video strategy, a manager node in the cluster searches the channel ID from the shared memory according to the equipment channel ID in the received new video strategy, searches whether a corresponding video strategy task exists or not, and processes task information by adopting a second preset rule according to different results;
s500, the executors and the observer nodes in the cluster read the strategy from the shared memory, select the tasks to be processed through the strategy information, acquire the video streams of the corresponding video point positions according to the task information and the information of the video source nodes, and then complete the persistent storage of the video data.
Further, in S200, electing the interior of the cluster according to a first preset rule, and electing three roles of a manager, an executor and an observer in the cluster; the specific method comprises the following steps:
numbering natural numbers of node servers in the cluster, starting the node servers in sequence from small to large according to the numbers, voting, and setting an exchange rule and an election finishing rule of voting information of the servers;
when the server 1 is started, firstly, the server is selected as a manager to cast a vote for the server, then the voting information of the server is broadcasted, and the state of the server 1 is in an election state at the moment because other servers are not started yet and the feedback information cannot be received, and the exchange of the voting information is carried out after the other servers are started;
when the server 2 is started, firstly, the server is selected as a manager to cast a vote for the manager, then the voting information of the server is broadcasted to enter an election state, and because the current server 1 is started, the server can complete the exchange of voting results with the server 1, and election is carried out according to the exchange rule of the voting information of the server and the election finishing rule.
Further, the exchange rule of the server voting information is as follows: comparing the server number, when the server number is large, the corresponding server wins.
Further, the election finishing rule is as follows: when the number of votes acquired by the server is more than half of the total number of the servers, the corresponding server wins the election and becomes a cluster node manager, and the rest servers become cluster node executors and observers.
Further, in S300, the administrator may receive a new video recording policy through the virtual IP address, including: the method comprises the steps of equipment channel ID, video strategy types and video period information, wherein the video strategy types comprise adding video, stopping video and modifying the video period.
Further, in S400, processing the task information by using a second preset rule according to different results specifically includes: and when the channel ID is searched from the shared memory, the corresponding video strategy task does not exist, and the video strategy type is a new added video, a new video task is created, wherein the task information comprises a strategy executor, an equipment channel ID and a video period, the strategy executor is an optimal strategy executor distributed according to the load condition of the current cluster node, and the manager stores the created task information into the shared memory in a KEY-VALUE mode.
Further, in S400, processing the task information by using a second preset rule according to different results, specifically further includes: and when the channel ID is searched from the shared memory and the corresponding video strategy task does not exist, modifying the strategy type or the video cycle information according to the acquired task information, and then writing the strategy type or the video cycle information into the shared memory in a KEY-VALUE mode in a covering manner.
Further, in S500, the executor and the observer node in the cluster are responsible for specifically executing the video recording policy, and they may periodically traverse and read the shared memory, and synchronize the corresponding video recording policy information through the policy enforcer information.
Further, when the acquired task is a new task, the executors and the observer nodes in the cluster acquire corresponding video streams from the network monitoring system according to the video channel ID, and then persistent storage of video data is completed; when the acquired task needs to modify the 'strategy type', if the strategy type is 'stop video recording', stopping the current video recording task, and deleting the task information from the shared memory; and if the strategy type is 'modifying the video recording period', completing the video recording task which is being executed according to the new period information.
The invention also discloses an electronic device for video strategy management decentralized based on video network monitoring, which is characterized by comprising the following components:
a memory for storing instructions executable by the processor;
and a processor configured to execute the instructions to implement a video recording policy management decentralized method based on video network monitoring.
The technical scheme provided by the embodiment of the invention has the beneficial effects that at least:
the invention discloses a video strategy management decentralized method based on video network monitoring.A cluster of master-slave copy high-availability storage units receives an external video strategy, and a manager of the cluster finishes the receiving and processing of the video strategy, including compiling strategy executor information, task information, video source nodes and other information and storing the information into a shared memory in an overwriting mode; and the executer and the observer nodes in the cluster read the strategy from the shared memory, select the tasks to be processed according to the strategy information, acquire the video streams of the corresponding video point positions according to the task information and the information of the video source nodes and then complete the persistent storage of the video data. The invention can effectively solve the defects brought by the traditional C/S management mode and the technical architecture, such as: the method has the advantages that the technical problems of false death of services, frequent single-node faults, low management efficiency and the like easily occur along with increase of the service quantity, the improvement of the video recording service function in the current video network video monitoring system can be realized under the condition that other software architectures of the original system are not changed in the specific implementation process, and the method is simple and efficient to operate, extremely small in upgrading range and low in cost.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
fig. 1 is a flowchart of a video strategy management decentralized method based on video network monitoring in embodiment 1 of the present invention;
fig. 2 is a schematic diagram of an implementation of a method for implementing decentralization of a mass video recording strategy by a master-slave replicated high-availability storage unit cluster in embodiment 1 of the present invention;
fig. 3 is a schematic diagram illustrating an implementation of an election mechanism of a master-slave replicated high-availability storage unit cluster according to embodiment 1 of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In order to solve the problems in the prior art, the embodiment of the invention provides a video recording strategy management decentralized party based on video network monitoring.
Example 1
The embodiment discloses a video strategy management decentralized method based on video network monitoring, as shown in fig. 1, including:
s100, a network monitoring system issues a video recording strategy to a master-slave copied high-availability storage unit cluster; specifically, as shown in fig. 2, in this embodiment, a master-slave copy high-availability storage unit cluster is established to replace a traditional video recording center management unit; all members in the cluster participate in the management of the video recording strategy together, and the traditional mode of unified management by a central management unit is replaced.
S200, starting a master-slave copied high-availability storage unit cluster according to a video recording strategy issued by a network monitoring system, electing the interior of the cluster according to a first preset rule, and electing three roles of a manager, an executor and an observer in the cluster;
in S200 of this embodiment, the interior of a cluster is elected according to a first preset rule, and three roles of a manager, an executor and an observer in the cluster are elected; the specific method comprises the following steps:
numbering natural numbers of node servers in the cluster, starting the node servers in sequence from small to large according to the numbers, voting, and setting an exchange rule and an election finishing rule of voting information of the servers;
when the server 1 is started, firstly, the server is selected as a manager, a vote is cast for the server, then the voting information of the server is broadcasted, and because other servers are not started yet, the feedback information cannot be received, at the moment, the state of the server 1 is in an election state, and the exchange of the voting information is carried out after other servers are started;
when the server 2 is started, firstly, the server is selected as a manager to cast a vote for the manager, then the voting information of the server is broadcasted to enter an election state, and because the current server 1 is started, the server can complete the exchange of voting results with the server 1, and election is carried out according to the exchange rule of the voting information of the server and the election finishing rule.
In some preferred embodiments, the exchange rule of the server voting information is: comparing the server numbers, and if the server number is large, the corresponding server wins.
In some preferred embodiments, the election termination rule is: when the number of votes acquired by the server is more than half of the total number of the servers, the corresponding server wins the election and becomes a cluster node manager, and the rest servers become cluster node executors and observers.
In order to better understand the rule of election performed inside a cluster in this embodiment, as shown in fig. 2, a method for implementing an election mechanism of a high-availability storage unit cluster based on master-slave replication is provided for an embodiment of the present invention, where all nodes in the cluster are independent and have numbers in a starting sequence, when starting, all nodes participate in election from an initial state, and start sequentially according to the numbers, and when the number of votes obtained is greater than half, the voting ends, if there are 5 servers and the numbers of the servers range from 1 to 5 at present, the election steps are as follows:
the server 1 is started, firstly, a 'voting as manager' casts a vote for the server, then, the voting information of the server is broadcasted (note that the voting information comprises the number of the current node, the number of the existing votes and the voting state), and the state of the server 1 is in the voting state at the moment because other servers are not started yet and the feedback information cannot be received, and the exchange of the voting information is carried out after the other servers are started.
The server 2 is started, firstly, the 'voter as the manager' casts a vote for the server, then the voting information of the server is broadcasted to enter an election state, the server 1 is started at present, the voting result can be exchanged with the server 1, the server 2 wins the voting result because the number of the server 2 is large, the voting number of the server 2 is 2, the voting result is judged not to be more than half, and the states of the two servers are still in the election state.
The server 3 is started, firstly, the administrator selects the server to cast a vote to the server, and simultaneously exchanges information with the previously started servers 1 and 2, and the server 3 wins because the number of the server 3 is the largest, the number of votes of the server 3 is 3, the number of votes is just larger than half, so the server 3 becomes the administrator, and the servers 1 and 2 become executors.
The server 4 starts up, firstly selects the manager when the user works to vote for the user, and exchanges information with the servers 1,2 and 3 which are started up before, although the number of the server 4 is large, the server 3 wins out to be the manager before, so the server 4 can only be the executive.
The server 5 is started and the logic of the processing becomes the executor with the server 4.
And if re-election is needed, repeating the operations by the nodes participating in election.
S300, after the election is completed, the cluster gives an external access address of the virtual IP address to a manager, and the manager can receive a new video recording strategy through the virtual IP address; in S300 of this embodiment, the administrator may receive a new video recording policy through the virtual IP address, which includes: the method comprises the steps of equipment channel ID, video strategy types and video period information, wherein the video strategy types comprise adding video, stopping video and modifying the video period.
S400, after receiving a new video strategy, a manager node in the cluster searches the channel ID from the shared memory according to the equipment channel ID in the received new video strategy, searches whether a corresponding video strategy task exists or not, and processes task information by adopting a second preset rule according to different results;
in S400 of this embodiment, processing the task information by using the second preset rule according to different results specifically includes: and when the channel ID is searched from the shared memory, the corresponding video strategy task does not exist in the search, and the video strategy type is a newly added video, a new video task is created, the task information comprises a strategy executor, an equipment channel ID and a video cycle, wherein the strategy executor is an optimal strategy executor distributed according to the load condition of the current cluster node, and the manager stores the created task information into the shared memory in a KEY-VALUE mode.
In S400 of this embodiment, the processing the task information by using the second preset rule according to different results specifically further includes: and when the channel ID is searched from the shared memory and the corresponding video strategy task does not exist, modifying the strategy type or the video cycle information according to the acquired task information, and then writing the strategy type or the video cycle information into the shared memory in a KEY-VALUE mode in a covering manner.
S500, the executors and the observer nodes in the cluster read the strategy from the shared memory, select the tasks to be processed through the strategy information, acquire the video streams of the corresponding video point positions according to the task information and the information of the video source nodes, and then complete the persistent storage of the video data.
In S500 of this embodiment, the executor and the observer node in the cluster are responsible for specifically executing the video recording policy, and they may periodically traverse and read the shared memory, and synchronize the corresponding video recording policy information through the policy executor information.
Further, when the acquired task is a new task, the executors and the observer nodes in the cluster acquire corresponding video streams from the network monitoring system according to the video channel ID, and then persistent storage of video data is completed; when the acquired task needs to modify the 'strategy type', if the strategy type is 'stop video recording', stopping the current video recording task, and deleting the task information from the shared memory; and if the strategy type is 'modifying the video recording period', completing the video recording task which is being executed according to the new period information.
The video strategy management decentralized method based on video network monitoring disclosed by the embodiment comprises the steps that a cluster of a master-slave copy high-availability storage unit receives an external video strategy, and a manager of the cluster finishes receiving and processing the video strategy, wherein the receiving and processing comprise compiling strategy executor information, task information, video source nodes and other information and storing the information into a shared memory in an overwriting mode; and the executer and the observer nodes in the cluster read the strategy from the shared memory, select the tasks to be processed according to the strategy information, acquire the video streams of the corresponding video point positions according to the task information and the information of the video source nodes and then complete the persistent storage of the video data. The invention can effectively solve the defects brought by the traditional C/S management mode and the technical architecture, such as: the method has the advantages that the technical problems of false death of services, frequent single-node faults, low management efficiency and the like are easy to occur along with increase of the service volume, the improvement of the video recording service function in the current video network video monitoring system can be realized under the condition of not changing other software architectures of the original system in the specific implementation process, and the method is simple and efficient in operation, extremely small in upgrading range and low in cost.
Example 2
The embodiment also discloses an electronic device, including:
a memory for storing instructions executable by the processor;
a processor configured to execute the instructions to implement the method of embodiment 1.
It should be understood that the specific order or hierarchy of steps in the processes disclosed is an example of exemplary approaches. Based upon design preferences, it is understood that the specific order or hierarchy of steps in the processes may be rearranged without departing from the scope of the present disclosure. The accompanying method claims present elements of the various steps in a sample order, and are not intended to be limited to the specific order or hierarchy presented.
In the foregoing detailed description, various features are grouped together in a single embodiment for the purpose of streamlining the disclosure. This method of disclosure is not to be interpreted as reflecting an intention that the claimed embodiments of the subject matter require more features than are expressly recited in each claim. Rather, as the following claims reflect, invention lies in less than all features of a single disclosed embodiment. Thus, the following claims are hereby expressly incorporated into the detailed description, with each claim standing on its own as a separate preferred embodiment of the invention.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. Of course, the processor and the storage medium may reside as discrete components in a user terminal.
For a software implementation, the techniques described herein may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described herein. The software codes may be stored in memory units and executed by processors. The memory unit may be implemented within the processor or external to the processor, in which case it can be communicatively coupled to the processor via various means as is known in the art.
What has been described above includes examples of one or more embodiments. It is, of course, not possible to describe every conceivable combination of components or methodologies for purposes of describing the aforementioned embodiments, but one of ordinary skill in the art may recognize that many further combinations and permutations of various embodiments are possible. Accordingly, the embodiments described herein are intended to embrace all such alterations, modifications and variations that fall within the scope of the appended claims. Furthermore, to the extent that the term "includes" is used in either the detailed description or the claims, such term is intended to be inclusive in a manner similar to the term "comprising" as "comprising" is interpreted when employed as a transitional word in a claim. Furthermore, any use of the term "or" in the specification of the claims is intended to mean a "non-exclusive or".
Claims (10)
1. A video strategy management decentralized method based on video network monitoring is characterized by comprising the following steps:
s100, a network monitoring system issues a video recording strategy to a master-slave copied high-availability storage unit cluster;
s200, starting a master-slave copied high-availability storage unit cluster according to a video recording strategy issued by a network monitoring system, electing the interior of the cluster according to a first preset rule, and electing three roles of a manager, an executor and an observer in the cluster;
s300, after the election is completed, the cluster gives an external access address of the virtual IP address to a manager, and the manager can receive a new video recording strategy through the virtual IP address;
s400, after receiving a new video strategy, a manager node in the cluster searches the channel ID from the shared memory according to the equipment channel ID in the received new video strategy, searches whether a corresponding video strategy task exists or not, and processes task information by adopting a second preset rule according to different results;
s500, the executor and the observer nodes in the cluster read the strategy from the shared memory, select the tasks to be processed through the strategy information, acquire the video streams of the corresponding video point positions according to the task information and the information of the video source nodes, and then complete the persistent storage of the video data.
2. The video strategy management decentralization method based on video network monitoring of claim 1, wherein in S200, the interior of a cluster is elected according to a first preset rule, and three roles of a manager, an executor and an observer in the cluster are elected; the specific method comprises the following steps:
numbering natural numbers of node servers in the cluster, starting the node servers in sequence from small to large according to the numbers, voting, and setting an exchange rule and an election finishing rule of voting information of the servers;
when the server 1 is started, firstly, the server is selected as a manager, a vote is cast for the server, then the voting information of the server is broadcasted, and because other servers are not started yet, the feedback information cannot be received, at the moment, the state of the server 1 is in an election state, and the exchange of the voting information is carried out after other servers are started;
when the server 2 is started, firstly, the server is selected as a manager to cast a vote for the manager, then the voting information of the server is broadcasted to enter an election state, and because the current server 1 is started, the server can complete the exchange of voting results with the server 1, and election is carried out according to the exchange rule of the voting information of the server and the election finishing rule.
3. The video recording strategy management decentralized method based on video network monitoring as claimed in claim 2, wherein the exchange rule of the server voting information is: comparing the server number, when the server number is large, the corresponding server wins.
4. The video recording strategy management decentralized method based on video network monitoring according to claim 2, characterized in that the election termination rule is: when the number of votes acquired by the server is more than half of the total number of the servers, the corresponding server wins in election and becomes a cluster node manager, and the rest servers become cluster node executors and observers.
5. The video recording policy management decentralized method according to claim 1, wherein in S300, the administrator may receive a new video recording policy through the virtual IP address, including: the method comprises the steps of equipment channel ID, video strategy types and video cycle information, wherein the video strategy types comprise adding a video, stopping the video and modifying the video cycle.
6. The video recording policy management decentralized method based on video network monitoring as claimed in claim 1, wherein in S400, the processing of the task information by using the second preset rule according to different results specifically includes: and when the channel ID is searched from the shared memory, the corresponding video strategy task does not exist, and the video strategy type is a new added video, a new video task is created, wherein the task information comprises a strategy executor, an equipment channel ID and a video period, the strategy executor is an optimal strategy executor distributed according to the load condition of the current cluster node, and the manager stores the created task information into the shared memory in a KEY-VALUE mode.
7. The video recording policy management decentralized method according to claim 1, wherein in S400, the task information is processed by using a second preset rule according to different results, and further comprising: and when the channel ID is searched from the shared memory and the corresponding video strategy task does not exist, modifying the strategy type or the video cycle information according to the acquired task information, and then writing the strategy type or the video cycle information into the shared memory in a KEY-VALUE mode in a covering manner.
8. The video strategy management decentralized method according to claim 1, wherein in S500, the executor and the observer nodes in the cluster are responsible for specifically executing the video strategy, and they will periodically traverse and read the shared memory, and synchronize the corresponding video strategy information through the strategy implementer information.
9. The video strategy management decentralized method based on video network monitoring of claim 8, wherein when the acquired task is a new task, the performer and the observer nodes in the cluster acquire corresponding video streams from the network monitoring system according to the video channel ID, and then complete persistent storage of video data; when the acquired task needs to modify the 'strategy type', if the strategy type is 'stop video recording', stopping the current video recording task, and deleting the task information from the shared memory; and if the strategy type is 'modifying the video recording period', completing the video recording task which is being executed according to the new period information.
10. A video strategy management decentralized electronic device based on video network monitoring is characterized by comprising:
a memory for storing instructions executable by the processor;
a processor configured to execute the instructions to implement the method of any one of claims 1-9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211069498.8A CN115484139B (en) | 2022-09-02 | 2022-09-02 | Video strategy management decentralization method based on video network monitoring |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211069498.8A CN115484139B (en) | 2022-09-02 | 2022-09-02 | Video strategy management decentralization method based on video network monitoring |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115484139A true CN115484139A (en) | 2022-12-16 |
CN115484139B CN115484139B (en) | 2024-03-15 |
Family
ID=84422928
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211069498.8A Active CN115484139B (en) | 2022-09-02 | 2022-09-02 | Video strategy management decentralization method based on video network monitoring |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115484139B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105471995A (en) * | 2015-12-14 | 2016-04-06 | 山东省农业机械科学研究院 | High-availability implementation method for large-scale Web server cluster based on SOA |
CN206077569U (en) * | 2016-09-14 | 2017-04-05 | 深圳市泛海三江科技发展有限公司 | A kind of network hard disk video recorder |
CN109639794A (en) * | 2018-12-10 | 2019-04-16 | 杭州数梦工场科技有限公司 | A kind of stateful cluster recovery method, apparatus, equipment and readable storage medium storing program for executing |
US20190141100A1 (en) * | 2016-04-28 | 2019-05-09 | Hangzhou Hikvision Digital Technology Co., Ltd. | Video Storage System, and Video Data Transmission Method for Same |
US20200028750A1 (en) * | 2018-07-17 | 2020-01-23 | Software Ag | System and/or method for maintaining highly-available, consistent, partition-tolerant clusters using client voters |
CN113473039A (en) * | 2021-06-18 | 2021-10-01 | 苏州浪潮智能科技有限公司 | Multi-channel video storage method and system |
WO2022127874A1 (en) * | 2020-12-17 | 2022-06-23 | 苏州盛科通信股份有限公司 | Multi-port shared memory management system and method based on random address |
-
2022
- 2022-09-02 CN CN202211069498.8A patent/CN115484139B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105471995A (en) * | 2015-12-14 | 2016-04-06 | 山东省农业机械科学研究院 | High-availability implementation method for large-scale Web server cluster based on SOA |
US20190141100A1 (en) * | 2016-04-28 | 2019-05-09 | Hangzhou Hikvision Digital Technology Co., Ltd. | Video Storage System, and Video Data Transmission Method for Same |
CN206077569U (en) * | 2016-09-14 | 2017-04-05 | 深圳市泛海三江科技发展有限公司 | A kind of network hard disk video recorder |
US20200028750A1 (en) * | 2018-07-17 | 2020-01-23 | Software Ag | System and/or method for maintaining highly-available, consistent, partition-tolerant clusters using client voters |
CN109639794A (en) * | 2018-12-10 | 2019-04-16 | 杭州数梦工场科技有限公司 | A kind of stateful cluster recovery method, apparatus, equipment and readable storage medium storing program for executing |
WO2022127874A1 (en) * | 2020-12-17 | 2022-06-23 | 苏州盛科通信股份有限公司 | Multi-port shared memory management system and method based on random address |
CN113473039A (en) * | 2021-06-18 | 2021-10-01 | 苏州浪潮智能科技有限公司 | Multi-channel video storage method and system |
Also Published As
Publication number | Publication date |
---|---|
CN115484139B (en) | 2024-03-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9984140B1 (en) | Lease based leader election system | |
Ajmani et al. | Modular software upgrades for distributed systems | |
CN110990432B (en) | Device and method for synchronizing distributed cache clusters across machine room | |
CN110798499A (en) | Distributed service coordination system and method | |
CN109656911A (en) | Distributed variable-frequencypump Database Systems and its data processing method | |
US20090187668A1 (en) | Protocol Independent Server Replacement and Replication in a Storage Area Network | |
AU2019347897B2 (en) | Methods, devices and systems for real-time checking of data consistency in a distributed heterogenous storage system | |
US20150046400A1 (en) | Multi-Path Replication in Databases | |
CN106101213A (en) | Information-distribution type storage method | |
CN102890682A (en) | Method for creating index, searching method, device and system | |
CN107357688A (en) | Distributed system and its fault recovery method and device | |
CN201584980U (en) | Data centre centralized control switching system | |
CN106101212A (en) | Big data access method under cloud platform | |
CN113646749A (en) | IOT partition management and load balancing | |
CN110830582B (en) | Cluster owner selection method and device based on server | |
CN106372160A (en) | Distributive database and management method | |
CN112486630A (en) | Distributed training deployment system and method thereof | |
CN105827744A (en) | Data processing method of cloud storage platform | |
CN106254452A (en) | The big data access method of medical treatment under cloud platform | |
CN115484139A (en) | Video strategy management decentralized method based on video network monitoring | |
CN111338767B (en) | PostgreSQL master-slave database automatic switching system and method | |
CN106302656A (en) | The Medical Data processing method of cloud storage platform | |
US11263184B1 (en) | Partition splitting in a distributed database | |
CN114610545A (en) | Method, system, device and medium for reducing single point of failure of private cloud computing | |
CN114020635A (en) | Data testing method, device, equipment and medium based on scene message queue |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |