CN114339380A - Recording method, device, server and readable storage medium based on AA mode - Google Patents

Recording method, device, server and readable storage medium based on AA mode Download PDF

Info

Publication number
CN114339380A
CN114339380A CN202210010311.0A CN202210010311A CN114339380A CN 114339380 A CN114339380 A CN 114339380A CN 202210010311 A CN202210010311 A CN 202210010311A CN 114339380 A CN114339380 A CN 114339380A
Authority
CN
China
Prior art keywords
recording
nodes
node
task
target
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
Application number
CN202210010311.0A
Other languages
Chinese (zh)
Inventor
赵鹏松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Yealink Network Technology Co Ltd
Original Assignee
Xiamen Yealink Network Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Xiamen Yealink Network Technology Co Ltd filed Critical Xiamen Yealink Network Technology Co Ltd
Priority to CN202210010311.0A priority Critical patent/CN114339380A/en
Publication of CN114339380A publication Critical patent/CN114339380A/en
Pending legal-status Critical Current

Links

Images

Abstract

The application discloses a recording method, a recording device, a server and a readable storage medium based on an AA mode. The method comprises the steps that when a recording instruction is received, at least two target nodes are selected from a plurality of recording nodes, and the target nodes are used for executing recording tasks corresponding to the recording instruction; monitoring the working conditions of the plurality of recording nodes; and when any one target node is abnormal, reselecting a new target node from the plurality of recording nodes according to the working conditions of the plurality of recording nodes, and synchronizing the recording code stream file generated by executing the recording task to the new target node by using the target node in a normal working state. According to the method and the device, modification is small on the original conference system, the conference system is guaranteed to be highly available for recording service with minimum modification, and the method and the device do not need to additionally purchase a third-party server, so that the implementation cost is low.

Description

Recording method, device, server and readable storage medium based on AA mode
Technical Field
The invention relates to the technical field of audio and video recording, in particular to a recording method, a recording device, a recording server and a readable storage medium based on an AA mode.
Background
When the audio and video conference is carried out, users generally record the audio and video conference so as to ensure that after the on-line conference is finished, the double-disk summary of the conference is carried out or the recorded content is shared to the personnel who can not participate in time.
In current privatization deployment, a recording server of a third party is generally adopted to push conference information to the recording server of the third party, so as to record an audio and video conference. However, the third-party server is not only expensive, but also has poor disaster tolerance, so that once the third-party server is abnormal, the recorded audio and video data is lost, or the recording of the audio and video conference is interrupted due to the abnormality of the third-party server, and the audio and video of the complete conference cannot be obtained.
Disclosure of Invention
In view of the above problems, the present application provides a recording method, apparatus, server and readable storage medium based on an AA mode to improve the recording quality of an audio/video conference.
In a first aspect, an embodiment of the present application provides a recording method based on an AA mode, where the method includes:
when a recording instruction is received, selecting at least two target nodes from a plurality of recording nodes, wherein the target nodes are used for executing a recording task corresponding to the recording instruction;
monitoring the working conditions of the plurality of recording nodes;
and when any one target node is abnormal, reselecting a new target node from the plurality of recording nodes according to the working conditions of the plurality of recording nodes, and synchronizing the recording code stream file generated by executing the recording task to the new target node by using the target node in a normal working state.
In the recording method based on the AA mode according to the embodiment of the present application, selecting at least two target nodes from a plurality of recording nodes includes:
acquiring the total number of tasks of each recording node;
and taking the first N recording nodes with the least total number of tasks as the target nodes, wherein N is a preset number.
According to the recording method based on the AA mode, the task of each recording node comprises a recording task and/or a transcoding task.
The recording method based on the AA mode according to the embodiment of the present application, where the monitoring of the operating conditions of the plurality of recording nodes includes:
collecting recording task information and/or transcoding task information of each recording node according to a preset sampling frequency;
and determining whether each recording node is abnormal or not according to the recording task information and/or the transcoding task information of each recording node.
The AA mode-based recording method according to the embodiment of the present application, reselecting a new target node from the plurality of recording nodes according to the working conditions of the plurality of recording nodes, includes:
acquiring the total number of tasks of the normal recording nodes in a normal working state from the plurality of recording nodes according to the working conditions of the plurality of recording nodes;
and taking the normal recording node corresponding to the minimum task total number as a new target node.
The recording method based on the AA mode in the embodiment of the application further comprises the following steps:
when the recording task is completed, determining a target node with the longest execution time for executing the recording task from the current multiple target nodes;
controlling the target node with the longest execution time to transcode the recording code stream file generated by the recording task;
and controlling other target nodes to delete the locally recorded code stream file.
In a second aspect, an embodiment of the present application further provides an AA mode-based recording apparatus, where the apparatus includes:
the device comprises a selection module, a recording module and a processing module, wherein the selection module is used for selecting at least two target nodes from a plurality of recording nodes when a recording instruction is received, and the target nodes are used for executing a recording task corresponding to the recording instruction;
the monitoring module is used for monitoring the working conditions of the plurality of recording nodes;
and the updating module is used for reselecting a new target node from the plurality of recording nodes according to the working conditions of the plurality of recording nodes when any one target node is abnormal, and synchronizing the recording code stream file generated by executing the recording task to the new target node by using the target node in a normal working state.
In a third aspect, an embodiment of the present application further provides a server, which includes a memory and a processor, where the memory stores a computer program, and the computer program, when running on the processor, executes the recording method based on the AA mode according to the embodiment of the present application.
In a fourth aspect, an embodiment of the present application further provides a readable storage medium, which stores a computer program, where the computer program, when executed on a processor, executes the AA mode-based recording method according to the embodiment of the present application.
In a fifth aspect, an embodiment of the present application further provides a recording system, which includes a plurality of recording nodes and the server in the embodiment of the present application, where the server is connected to each recording node.
According to the method, when a recording instruction is received, at least two target nodes are selected from a plurality of recording nodes, and the target nodes are used for executing recording tasks corresponding to the recording instruction; monitoring the working conditions of the plurality of recording nodes; and when any one target node is abnormal, reselecting a new target node from the plurality of recording nodes according to the working conditions of the plurality of recording nodes, and synchronizing the recording code stream file generated by executing the recording task to the new target node by using the target node in a normal working state. According to the first aspect of the application, modification is small on the original conference system, the conference system is guaranteed to be high in availability of recording service with minimum modification, and in addition, a third-party server does not need to be additionally purchased, so that the implementation cost is low; in the second aspect, at least two target nodes synchronously execute the recording task corresponding to the recording instruction, so that the recording task is effectively ensured not to be interrupted, and the integrity of the recorded file is ensured; on the other hand, when any target node is abnormal, the target node in a normal working state is used for synchronizing the recording code stream file generated by executing the recording task to the new target node, the IO read-write requirements on the disk of the recording node are low, and the realization is convenient.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings required to be used in the embodiments will be briefly described below, and it should be understood that the following drawings only illustrate some embodiments of the present invention, and therefore should not be considered as limiting the scope of the present invention. Like components are numbered similarly in the various figures.
Fig. 1 is a schematic flowchart illustrating a recording method based on an AA mode according to an embodiment of the present application;
fig. 2 shows a schematic diagram of a conference recording cluster including 3 recording nodes according to an embodiment of the present application;
fig. 3 is a schematic flowchart illustrating a process of selecting a target node in a recording method based on an AA mode according to an embodiment of the present application;
fig. 4 is a schematic diagram illustrating another conference recording cluster including 3 recording nodes according to an embodiment of the present application;
fig. 5 is a schematic flowchart illustrating another AA mode-based recording method according to an embodiment of the present application;
fig. 6 shows a signaling diagram between components in a recording method based on an AA mode according to an embodiment of the present application;
fig. 7 is a schematic structural diagram illustrating an AA mode-based recording apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram illustrating a recording system according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Hereinafter, the terms "including", "having", and their derivatives, which may be used in various embodiments of the present invention, are only intended to indicate specific features, numbers, steps, operations, elements, components, or combinations of the foregoing, and should not be construed as first excluding the existence of, or adding to, one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the present invention belong. The terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning that is consistent with their contextual meaning in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in various embodiments of the present invention.
Example 1
In this embodiment, an AA (active-active) mode-based recording method is provided, and is applied to a server, and by using the AA mode-based recording method, the server may manage a plurality of recording nodes, and when receiving a recording task, the server may control a plurality of recording servers to cooperatively execute the recording task, so as to improve the recording quality of an audio/video conference, not only prevent a code stream file of the recorded audio/video conference from being lost, but also ensure the integrity of the code stream file.
It should be noted that in this embodiment, in the AA (active-active) mode, at least two recording nodes execute a recording task at the same time, where the recording node executing the recording task is used as a target node, and behaviors of the target nodes when executing the recording task are completely consistent, that is, the recording task is executed synchronously, and a recording code stream file generated by executing the recording task is generated synchronously.
For example, referring to fig. 1, in the present embodiment, a recording method based on an AA (active-active) mode is provided, which includes the following steps S100 to S300:
step S100, when a recording instruction is received, selecting at least two target nodes from a plurality of recording nodes, wherein the target nodes are used for executing a recording task corresponding to the recording instruction.
Generally, the recording instruction may be that, after the conference starts, a conference administrator starts recording the conference through Web operation, or may set the recording to be automatically performed after the conference starts, or start recording through operation on a terminal of a participant.
In this embodiment, the server is configured to manage a plurality of recording nodes, and when receiving a recording instruction sent by a user, the server selects at least two recording nodes from the plurality of recording nodes as target nodes.
It can be understood that the server may not perform the recording task, but only manage the plurality of recording nodes, and certainly, in consideration of the maximum utilization of resources, the resource waste is avoided, the server may not only be used to manage the plurality of recording nodes, but also participate in the recording task as one recording node.
It should be noted that, if the server does not perform the recording task and is only used for managing a plurality of recording nodes, the server includes a recording scheduling service component (Record-Schedule) and a recording monitoring service component (Record-Monitor).
The recording scheduling service component (Record-Schedule) is responsible for selecting a target node for executing a recording task, and the recording monitoring service component (Record-Monitor) is used for monitoring the working condition of each recording node.
If the server can be used for managing a plurality of recording nodes and can also be used as one recording node to participate in a recording task, the server not only comprises a recording scheduling service component (Record-Schedule) and a recording monitoring service component (Record-Monitor), but also comprises a recording component (Record) and a transcoding component (Transfer-Code).
The recording component (Record) mainly performs recording service, that is, records an audio/video Code stream file in a conference, and the transcoding component (Transfer-Code) converts an original audio/video Code stream file into a required audio/video format for a player of a user to play.
In this embodiment, one implementation manner is that a recording scheduling service component of the server may randomly select at least two recording nodes from the plurality of recording nodes as target nodes and participate in a recording task at the same time. It can be understood that the greater the number of target nodes, the stronger the disaster tolerance of the audio/video conference recording process, but the excessive target nodes will cause resource waste.
In this embodiment, in order to avoid resource waste and ensure that the recording process of the audio/video conference has certain disaster tolerance, the server may randomly select two recording nodes from the plurality of recording nodes as target nodes, and the two target nodes participate in the recording task at the same time.
When any one target node is down or abnormal, the other target node does not affect the work of the other target node, the other target node executes the recording task normally, the recording task of the other target node is not interrupted, and the integrity of the recorded code stream file corresponding to the audio and video conference is further ensured.
For example, please refer to fig. 2, which illustrates a conference recording cluster including 3 recording nodes, in the conference recording cluster, each recording node has a conference in progress, that is, a conference 1 is executed on a first recording node, a conference 2 is executed on a second recording node, and after being scheduled by a recording management service component of a server, target nodes of the recording conference 1 include the first recording node and the second recording node, that is, the first recording node and the second recording node record the conference 1 at the same time; the target nodes for recording the conference 2 comprise a second recording node and a third recording node, namely the second recording node and the third recording node record the conference 2 at the same time.
Further, in view of the above random selection of the predetermined number of target nodes from the plurality of recording nodes, there may be some nodes of the plurality of recording nodes that are overloaded, i.e., that perform an excessive number of tasks, and some recording nodes that are underloaded, i.e., that perform a small number of tasks. Therefore, in this embodiment, in order to ensure load balance among the recording nodes and ensure reasonable utilization of resources of the recording nodes, another implementation manner for selecting a target node is provided, for example, please refer to fig. 3, where the implementation manner for selecting a target node includes the following steps:
s110: and acquiring the total number of tasks of each recording node.
A recording-monitoring service component (Record-Monitor) of the server may collect the recording task and/or transcoding task operation conditions of each node, and determine the total number of tasks of each recording node based on the recording task and/or transcoding task operation conditions.
For example, if 2 conferences are recorded in the first recording node and 2 recorded files are transcoded, the total number of tasks of the first recording node is 4; and if 10 conferences of the second recording node are recorded and 3 recorded files are transcoded, the total number of tasks of the second recording node is 13.
Further, a Record-monitoring service component (Record-Monitor) of the server sorts the recording nodes according to the total number of tasks of the recording nodes, for example, the recording nodes are sorted in the order from the smaller to the larger total number of tasks, or the recording nodes are sorted in the order from the larger to the smaller total number of tasks.
S120: and taking the first N recording nodes with the least total number of tasks as the target nodes, wherein N is a preset number.
And a recording scheduling service component (Record-Schedule) of the server takes the first N recording nodes with the minimum task total as the target nodes according to the task total of each recording node acquired by the recording monitoring service component (Record-Monitor).
For example, if the plurality of recording nodes are sequenced from small to large according to the sequence of the total number of the tasks, a predetermined number of recording nodes in the front of the sequence are used as target nodes; and if the plurality of recording nodes are sequenced according to the sequence of the total number of the tasks from large to small, taking the predetermined number of the recording nodes sequenced at the back as target nodes.
It can be understood that, in the embodiment corresponding to step S110 and step S120, load balancing between the recording nodes can be ensured, reasonable utilization of resources of the recording nodes is ensured, ordered recording tasks are ensured, and recording efficiency is improved.
And at least two target nodes synchronously execute the recording task corresponding to the recording instruction, thereby effectively ensuring that the recording task is not interrupted and ensuring the integrity of the recorded file.
And step S200, monitoring the working conditions of the plurality of recording nodes.
After the target nodes are determined, all the target nodes synchronously execute the recording tasks corresponding to the recording instructions. Meanwhile, a recording monitoring service component (Record-Monitor) of the server monitors the working conditions of a plurality of recording nodes in real time.
A recording monitoring service component (Record-Monitor) of the server acquires recording task information and/or transcoding task information of each recording node according to a preset sampling frequency; and determining whether each recording node is abnormal or not according to the recording task information and/or the transcoding task information of each recording node.
For example, the server may monitor the recording service, the transcoding service, the number of recording tasks, the number of transcoding tasks, and the like of each recording node in a mode of keeping the recording node alive once in 3 seconds, and if the server does not receive the related information of one recording node within a predetermined time period, it may be determined that the recording node is abnormal.
Step S300, when any one target node is abnormal, a new target node is reselected from the plurality of recording nodes according to the working conditions of the plurality of recording nodes, and the target node in a normal working state is utilized to synchronize the recording code stream file generated by executing the recording task to the new target node.
When any target node is abnormal, a Record-scheduling service component (Record-Schedule) of the server reselects a new target node from the plurality of recording nodes according to the working conditions of the plurality of recording nodes so as to replace the abnormal target node.
Illustratively, a Record-scheduling service component (Record-Schedule) acquires the total number of tasks of a normal recording node in a normal working state from a plurality of recording nodes according to the working conditions of the plurality of recording nodes; and taking a normal recording node corresponding to the minimum task total number as a new target node.
For example, referring to fig. 4, when the second recording node is abnormal, the target node of the conference 1 is updated from the first recording node and the second recording node to the first recording node and the third recording node, and meanwhile, since there is no code stream file recorded by the second recording node executing the recording task in the third recording node, the first recording node synchronizes the code stream file recorded by the executing the recording task to the third recording node, so as to ensure the integrity of the recorded code stream file corresponding to the conference 1 recorded in the third recording node.
Similarly, the target node of the recording conference 2 is updated to the first recording node and the third recording node from the second recording node and the third recording node, and meanwhile, since the second recording node does not execute the recording code stream file recorded by the recording task in the first recording node, the third recording node synchronizes the recording code stream file recorded by the recording task to the first recording node, so as to ensure the integrity of the recording code stream file corresponding to the recording conference 2 in the first recording node.
Further, when the third recording node is abnormal, if a fourth recording node exists, the target node for recording the conference 1 is updated to the first recording node and the fourth recording node from the first recording node and the third recording node, and meanwhile, because the fourth recording node does not have a recording code stream file recorded by the third recording node for executing the recording task, the first recording node synchronizes the recording code stream file recorded by the executing recording task to the fourth recording node, so that the completeness of the recording code stream file corresponding to the conference 1 recorded in the fourth recording node is ensured.
Similarly, the target node of the recording conference 2 is updated from the first recording node and the third recording node to the first recording node and the fourth recording node, and meanwhile, since the fourth recording node does not have a recording code stream file recorded by the third recording node executing the recording task, the first recording node synchronizes the recording code stream file recorded by the executing the recording task to the fourth recording node, so as to ensure the integrity of the recording code stream file corresponding to the recording conference 2 in the fourth recording node.
By analogy, the more the number of recording nodes is, the stronger the disaster tolerance of the recording system is.
In this embodiment, only when any target node is abnormal, the target node in a normal working state is used to synchronize the recording code stream file generated by executing the recording task to a new target node, and the IO read-write requirements on the disk of the recording node are low, which is convenient to implement.
It should be noted that, when the recording task of a certain conference is not executed by a predetermined number of target nodes, the server will receive an alarm to remind the user to respond in time.
Further, referring to fig. 5, in this embodiment, the recording method based on the AA mode further includes the following steps S400 to S600:
step S400, when the recording task is completed, determining a target node with the longest execution time for executing the recording task from the current multiple target nodes.
And step S500, controlling the target node with the longest execution time to transcode the recording code stream file generated by the recording task.
It can be understood that the current target node includes a recording code stream file corresponding to the complete audio and video conference, and the current target node can convert the original audio and video code stream file into a required audio and video format for a player of a user to play.
It should be noted that in this embodiment, the transcoding node may transcode the locally recorded code stream file, and trans-node transcoding is not required, so that a scenario that one node pulls the recorded code stream file from another node is avoided, and transcoding efficiency is further ensured.
It should be noted that, the more complete the recorded code stream file corresponding to the recording task executed by the target node executing the recording task, the fewer recorded code stream files obtained from other target nodes, the fewer the number of code stream files to be recorded during transcoding, and the higher the transcoding efficiency.
And step S600, controlling other target nodes to delete the local recorded code stream file.
When the conference is finished or the recording is stopped, other target nodes except the target node which has the longest time for executing the recording task delete the local recording code stream file of the conference, so as to save the disk storage space of other target nodes.
It should be noted that, in this embodiment, when one recording task is completed, the server may control the target node that has the longest time to execute the recording task to upload the complete recorded code stream file to the archive server, so as to ensure that the complete recorded code stream file can be stored for a long time.
Further, referring to fig. 6, in this embodiment, a signaling relationship between a recording scheduling service component (the recording schedule in fig. 6), a recording monitoring service component (the recording monitoring in fig. 6), a recording component of a first recording node (the first recording in fig. 6), a recording component of a second recording node (the second recording in fig. 6), and a recording component of a third recording node (the third recording in fig. 6) is given.
It can be understood that the embodiment has simple logic, is slightly modified on the original conference system, ensures that the conference system realizes high availability of the recording service with minimum modification, does not need to additionally purchase a third-party server, and has lower realization cost.
Example 2
Referring to fig. 7, in the present embodiment, an AA mode based recording apparatus 10 is provided, which includes: a selection module 11, a monitoring module 12 and an update module 13.
The selection module 11 is configured to select at least two target nodes from a plurality of recording nodes when a recording instruction is received, where the target nodes are configured to execute a recording task corresponding to the recording instruction; the monitoring module 12 is configured to monitor the working conditions of the plurality of recording nodes; and the updating module 13 is configured to reselect a new target node from the plurality of recording nodes according to the working conditions of the plurality of recording nodes when any one of the target nodes is abnormal, and synchronize a recording code stream file generated by executing the recording task to the new target node by using the target node in a normal working state.
In this embodiment, the AA mode-based recording apparatus 10 is configured to perform the AA mode-based recording method described in the above embodiment through the matching use of the selection module 11, the monitoring module 12, and the update module 13, and the implementation and beneficial effects related to the above embodiment are also applicable in this embodiment, and are not described herein again.
Example 3
In this embodiment, a server is provided, which includes a memory and a processor, where the memory stores a computer program, and the computer program executes the recording method based on the AA mode in this embodiment when running on the processor.
Example 4
In this embodiment, a readable storage medium is provided, which stores a computer program, and when the computer program runs on a processor, the AA mode-based recording method according to this embodiment of the present application is executed.
Example 5
Referring to fig. 8, in the present embodiment, a recording system is provided, which includes a plurality of recording nodes and a server according to the embodiment of the present application, where the server is connected to each recording node.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solution of the present invention or a part of the technical solution that contributes to the prior art in essence can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned readable storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.

Claims (10)

1. A recording method based on an AA mode, the method comprising:
when a recording instruction is received, selecting at least two target nodes from a plurality of recording nodes, wherein the target nodes are used for executing a recording task corresponding to the recording instruction;
monitoring the working conditions of the plurality of recording nodes;
and when any one target node is abnormal, reselecting a new target node from the plurality of recording nodes according to the working conditions of the plurality of recording nodes, and synchronizing the recording code stream file generated by executing the recording task to the new target node by using the target node in a normal working state.
2. The AA mode-based recording method of claim 1, wherein the selecting at least two target nodes from a plurality of recording nodes comprises:
acquiring the total number of tasks of each recording node;
and taking the first N recording nodes with the least total number of tasks as the target nodes, wherein N is a preset number.
3. The AA mode-based recording method according to claim 2, wherein the task of each of the recording nodes includes a recording task and/or a transcoding task.
4. The AA mode-based recording method according to claim 1, wherein the monitoring the operation of the plurality of recording nodes comprises:
collecting recording task information and/or transcoding task information of each recording node according to a preset sampling frequency;
and determining whether each recording node is abnormal or not according to the recording task information and/or the transcoding task information of each recording node.
5. The AA mode-based recording method according to claim 1, wherein said reselecting a new target node from the plurality of recording nodes according to the operation of the plurality of recording nodes comprises:
acquiring the total number of tasks of the normal recording nodes in a normal working state from the plurality of recording nodes according to the working conditions of the plurality of recording nodes;
and taking the normal recording node corresponding to the minimum task total number as a new target node.
6. The AA mode-based recording method according to claim 1, further comprising:
when the recording task is completed, determining a target node with the longest execution time for executing the recording task from the current multiple target nodes;
controlling the target node with the longest execution time to transcode the recording code stream file generated by the recording task;
and controlling other target nodes to delete the locally recorded code stream file.
7. An AA mode-based recording apparatus, comprising:
the device comprises a selection module, a recording module and a processing module, wherein the selection module is used for selecting at least two target nodes from a plurality of recording nodes when a recording instruction is received, and the target nodes are used for executing a recording task corresponding to the recording instruction;
the monitoring module is used for monitoring the working conditions of the plurality of recording nodes;
and the updating module is used for reselecting a new target node from the plurality of recording nodes according to the working conditions of the plurality of recording nodes when any one target node is abnormal, and synchronizing the recording code stream file generated by executing the recording task to the new target node by using the target node in a normal working state.
8. A server, characterized by comprising a memory and a processor, the memory storing a computer program which, when run on the processor, performs the AA mode based recording method of any one of claims 1 to 6.
9. A readable storage medium, characterized in that it stores a computer program which, when run on a processor, performs the AA mode-based recording method of any one of claims 1 to 6.
10. A recording system comprising a plurality of recording nodes and the server of claim 8, said server being connected to each recording node.
CN202210010311.0A 2022-01-06 2022-01-06 Recording method, device, server and readable storage medium based on AA mode Pending CN114339380A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210010311.0A CN114339380A (en) 2022-01-06 2022-01-06 Recording method, device, server and readable storage medium based on AA mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210010311.0A CN114339380A (en) 2022-01-06 2022-01-06 Recording method, device, server and readable storage medium based on AA mode

Publications (1)

Publication Number Publication Date
CN114339380A true CN114339380A (en) 2022-04-12

Family

ID=81024466

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210010311.0A Pending CN114339380A (en) 2022-01-06 2022-01-06 Recording method, device, server and readable storage medium based on AA mode

Country Status (1)

Country Link
CN (1) CN114339380A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6018449A (en) * 1996-12-04 2000-01-25 Energyline Systems, L.P. Method for automated reconfiguration of a distribution system using distributed control logic and communications
JP2003069928A (en) * 2001-08-29 2003-03-07 Victor Co Of Japan Ltd Video recording reservation setting method, video recording reservation device, and video recording reservation service
JP2008131231A (en) * 2006-11-20 2008-06-05 Funai Electric Co Ltd Video recording controller and content recording system
CN101656861A (en) * 2009-09-14 2010-02-24 中兴通讯股份有限公司 Method and multimedia system for recording programs
WO2013185434A1 (en) * 2012-06-15 2013-12-19 杭州海康威视数字技术股份有限公司 High-reliability, extensible video storage and search method and system thereof
CN103823727A (en) * 2014-02-13 2014-05-28 深圳市同洲电子股份有限公司 Method and device for backing up broadcast record
WO2017124800A1 (en) * 2016-01-21 2017-07-27 杭州海康威视数字技术股份有限公司 Pre-event video recording method and device
CN110418092A (en) * 2019-06-17 2019-11-05 腾讯科技(深圳)有限公司 Video record management system, method, control management node and recording node
CN110677280A (en) * 2019-09-18 2020-01-10 招商银行股份有限公司 Service node switching method, device, equipment and computer readable storage medium
CN112272291A (en) * 2020-10-28 2021-01-26 重庆紫光华山智安科技有限公司 Video storage method, device, management equipment and readable storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6018449A (en) * 1996-12-04 2000-01-25 Energyline Systems, L.P. Method for automated reconfiguration of a distribution system using distributed control logic and communications
JP2003069928A (en) * 2001-08-29 2003-03-07 Victor Co Of Japan Ltd Video recording reservation setting method, video recording reservation device, and video recording reservation service
JP2008131231A (en) * 2006-11-20 2008-06-05 Funai Electric Co Ltd Video recording controller and content recording system
CN101656861A (en) * 2009-09-14 2010-02-24 中兴通讯股份有限公司 Method and multimedia system for recording programs
WO2013185434A1 (en) * 2012-06-15 2013-12-19 杭州海康威视数字技术股份有限公司 High-reliability, extensible video storage and search method and system thereof
CN103823727A (en) * 2014-02-13 2014-05-28 深圳市同洲电子股份有限公司 Method and device for backing up broadcast record
WO2017124800A1 (en) * 2016-01-21 2017-07-27 杭州海康威视数字技术股份有限公司 Pre-event video recording method and device
CN110418092A (en) * 2019-06-17 2019-11-05 腾讯科技(深圳)有限公司 Video record management system, method, control management node and recording node
CN110677280A (en) * 2019-09-18 2020-01-10 招商银行股份有限公司 Service node switching method, device, equipment and computer readable storage medium
CN112272291A (en) * 2020-10-28 2021-01-26 重庆紫光华山智安科技有限公司 Video storage method, device, management equipment and readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈娟;: "广播电台音频工作站网络系统的安全备份措施", 广播电视信息(上半月刊), no. 11 *

Similar Documents

Publication Publication Date Title
US9785691B2 (en) Method and apparatus for sequencing transactions globally in a distributed database cluster
US7653714B2 (en) Computer-readable recording medium with system managing program recorded therein, system managing method and system managing apparatus
US8856091B2 (en) Method and apparatus for sequencing transactions globally in distributed database cluster
CN107092522B (en) Real-time data calculation method and device
CN104115469A (en) System for live -migration and automated recovery of applications in a distributed system
US8577006B2 (en) User-defined system-enforced session termination in a unified telephony environment
JP4141875B2 (en) Recovery processing method, its execution system, and its processing program
CN112272291A (en) Video storage method, device, management equipment and readable storage medium
CN113312153A (en) Cluster deployment method and device, electronic equipment and storage medium
CN110764838B (en) Service model loading method and system, electronic equipment and storage medium
CN114339380A (en) Recording method, device, server and readable storage medium based on AA mode
CN111352746B (en) Message flow limiting method and storage medium
CN110225122B (en) Message pushing method, device, equipment and storage medium
US20160198046A1 (en) Skill management apparatus, method and program
CN114363555A (en) Recording and broadcasting method and device based on AS mode and recording and broadcasting management server
CN113342893B (en) Node synchronization method and device based on block chain, storage medium and server
JP2006079488A (en) Data collection apparatus, data collection system and data collection method
CN110333974B (en) Switching method and device of cloud storage service
CN111290873B (en) Fault processing method and device
CN113407491A (en) Data processing method and device
CN109151016B (en) Flow forwarding method and device, service system, computing device and storage medium
CN111405313A (en) Method and system for storing streaming media data
CN112350921A (en) Message processing method, terminal and storage medium
CN112737833B (en) Monitoring processing method, device and system
CN115641497B (en) Multi-channel video processing system and method

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