CN113672588A - Data storage method, data storage device, storage node and management node - Google Patents

Data storage method, data storage device, storage node and management node Download PDF

Info

Publication number
CN113672588A
CN113672588A CN202110806620.4A CN202110806620A CN113672588A CN 113672588 A CN113672588 A CN 113672588A CN 202110806620 A CN202110806620 A CN 202110806620A CN 113672588 A CN113672588 A CN 113672588A
Authority
CN
China
Prior art keywords
storage
power failure
node
storage node
management node
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
CN202110806620.4A
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.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua 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 Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202110806620.4A priority Critical patent/CN113672588A/en
Publication of CN113672588A publication Critical patent/CN113672588A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/214Database migration support
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/30Means for acting in the event of power-supply failure or interruption, e.g. power-supply fluctuations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/71Indexing; Data structures therefor; Storage structures

Abstract

The application relates to a data storage method, a data storage device, storage nodes and a management node, wherein under the condition that the power failure of the storage nodes is abnormal, the power supply state is switched to a preset BBU battery power supply state, power failure abnormal alarm information is sent to the management node, the management node migrates front end information connected with the storage nodes with the current power failure abnormality to other storage nodes after receiving the power failure abnormal alarm information, and the management node closes the self operation after receiving a notice of migration completion sent by the management node. The method and the device realize the early transfer of the front-end configuration information corresponding to the storage node before the storage node is closed to operate due to abnormal power failure, so that the early stream pulling aiming at the corresponding front-end equipment is completed, the problem that the video data is lost after the power failure of the storage node is avoided, and the integrity of the video storage data is improved.

Description

Data storage method, data storage device, storage node and management node
Technical Field
The present application relates to the field of data storage, and in particular, to a data storage method, a data storage apparatus, a storage node, and a management node.
Background
The distributed storage cluster is widely applied to the field of storage of network videos due to the characteristics of expandability, stability and safety. The user can manage the metadata of the storage cluster through the management node of the storage cluster, and the storage node of the storage cluster is utilized to process video storage services, so that the functions of equipment management, configuration management, real-time preview and video playback of each video channel are realized. However, in the existing network video storage cluster, a unique IP is used for the client to access and uniformly store video data, but the migration time of the channel information of the storage node cannot be provided when the power failure of the storage node is abnormal, so that the pull stream of the corresponding front-end device cannot be completed before the storage node finishes operating, and the video data is lost.
Aiming at the problem that data are lost when a storage node is in power failure abnormity in the existing storage cluster, an effective solution is not provided yet.
Disclosure of Invention
The embodiment provides a data storage method, a data storage device, a storage node and a management node, so as to solve the problem that a storage cluster in the related art loses data when a power failure abnormality occurs in the storage node.
In a first aspect, in this embodiment, a data storage method is provided, where the data storage method is used for a storage node in a storage cluster, and includes the following steps:
under the condition that the power failure abnormality occurs in the storage node, switching the power supply state to a preset BBU battery power supply state, and sending power failure abnormality alarm information to a management node; after receiving the power failure abnormity alarm information, the management node migrates front end information connected with the storage node with the current power failure abnormity to other storage nodes;
and after receiving the notification of the completion of the migration sent by the management node, closing the self operation.
In some embodiments, after receiving the notification of completion of migration sent by the management node, before closing the self-operation, the method further includes:
and sending the time information of the last frame of the stored front-end video data to the management node.
In some embodiments, the sending the time information of the last frame of the stored front-end video data to the management node includes:
and sending the time information of the last frame of the stored video data corresponding to the front ends to the management node.
In a second aspect, in this embodiment, a data storage method is provided, where the data storage method is used for storing management nodes in a cluster, and the method includes:
after receiving power failure abnormity alarm information sent by a storage node, detecting the power supply state of the storage node with the current power failure abnormity;
when detecting that the storage node with the current power failure abnormity is in a BBU battery power supply state, migrating front-end information connected with the storage node with the current power failure abnormity to other storage nodes;
after the migration is completed, sending a notification of the completion of the migration to the storage node with the current power failure abnormality, and indicating the storage node with the current power failure abnormality to close the operation of the storage node.
In some embodiments, the migrating, when it is detected that the storage node currently experiencing power failure abnormality is in a BBU battery power supply state, front-end information connected to the storage node currently experiencing power failure abnormality to another storage node includes:
and selecting a preset number of other storage nodes from the storage cluster according to the residual channel number, and sending the front-end information to the selected other storage nodes.
In some of these embodiments, the method further comprises:
receiving time information of a last frame of stored front-end video data sent by the storage node before the storage node closes the self operation;
and sending the time information to other storage nodes, and indicating the other storage nodes to store the front-end video data according to the corresponding time information and the front-end information.
In some embodiments, the operating state of each storage node in the storage cluster is detected through a heartbeat mechanism.
In a third aspect, in this embodiment, a data storage method is provided, where the data storage method is used for a storage cluster, where the storage cluster includes a storage node and a management node, and the method includes the following steps:
under the condition that the storage node is abnormal in power failure, the power supply state of the storage node is switched to a preset BBU battery power supply state, and power failure abnormality alarm information is sent to a management node;
after receiving the power failure abnormity alarm information, the management node migrates front end information connected with the storage node with the current power failure abnormity to other storage nodes, and after migration is completed, sends a migration completion notification to the storage node with the current power failure abnormity;
and the storage node closes the self operation after receiving the notification of the migration completion sent by the management node.
In a fourth aspect, in this embodiment, a storage node is provided, including an exception alarm module and a shutdown operation module, where:
the abnormal alarm module is used for switching the power supply state to a preset BBU battery power supply state under the condition that the power failure abnormality occurs in the storage node, and sending power failure abnormality alarm information to the management node; after receiving the power failure abnormity alarm information, the management node migrates front end information connected with the storage node with the current power failure abnormity to other storage nodes;
and the operation closing module is used for closing the operation of the management node after receiving the notification of the completion of the migration sent by the management node.
In a fifth aspect, there is provided in this embodiment a management node, including: detection module, migration module and notice module, wherein:
the detection module is used for detecting the power supply state of the storage node with abnormal power failure at present after receiving power failure abnormal alarm information sent by the storage node;
the migration module is used for migrating the front-end information connected with the storage node with the current power failure abnormality to other storage nodes when the storage node with the current power failure abnormality is detected to be in a BBU battery power supply state;
and the notification module is used for sending a notification of completion of migration to the storage node with the current power failure abnormality after the migration is completed, and indicating the storage node with the current power failure abnormality to close the operation of the storage node.
In a sixth aspect, in the present embodiment, there is provided a data storage apparatus, comprising a management node and a plurality of storage nodes, wherein the storage nodes are connected to a BBU battery power supply module;
the storage node is used for realizing the data storage method of the first aspect;
the management node is configured to implement the data storage method according to the second aspect.
According to the data storage method, the data storage device, the storage nodes and the management node, under the condition that the power failure abnormality occurs in the storage nodes, the power supply state is switched to the preset BBU battery power supply state, power failure abnormality alarm information is sent to the management node, the management node migrates front end information connected with the storage nodes with the current power failure abnormality to other storage nodes after receiving the power failure abnormality alarm information, and the management node closes the self operation after receiving a migration completion notification sent by the management node. The method and the device realize the early transfer of the front-end configuration information corresponding to the storage node before the storage node is closed to operate due to abnormal power failure, so that the early stream pulling aiming at the corresponding front-end equipment is completed, the problem that the video data is lost after the power failure of the storage node is avoided, and the integrity of the video storage data is improved.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the application.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a diagram of an application scenario of a data storage method according to an embodiment of the present application;
FIG. 2 is a flow chart of a data storage method according to an embodiment of the present application;
FIG. 3 is a flow chart of another method of data storage according to an embodiment of the present application;
FIG. 4 is a flowchart of a video data storage method according to an embodiment of the present application;
FIG. 5 is a flow chart of another method of data storage according to an embodiment of the present application;
FIG. 6 is a schematic structural diagram of a storage node according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a management node according to an embodiment of the present application.
Detailed Description
For a clearer understanding of the objects, aspects and advantages of the present application, reference is made to the following description and accompanying drawings.
Unless defined otherwise, technical or scientific terms used herein shall have the same general meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The use of the terms "a" and "an" and "the" and similar referents in the context of this application do not denote a limitation of quantity, either in the singular or the plural. The terms "comprises," "comprising," "has," "having," and any variations thereof, as referred to in this application, are intended to cover non-exclusive inclusions; for example, a process, method, and system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to the listed steps or modules, but may include other steps or modules (elements) not listed or inherent to such process, method, article, or apparatus. Reference throughout this application to "connected," "coupled," and the like is not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. Reference to "a plurality" in this application means two or more. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, for example, "A and/or B" may mean: a exists alone, A and B exist simultaneously, and B exists alone. In general, the character "/" indicates a relationship in which the objects associated before and after are an "or". The terms "first," "second," "third," and the like in this application are used for distinguishing between similar items and not necessarily for describing a particular sequential or chronological order.
Fig. 1 is a diagram illustrating an application scenario of the data storage method according to an embodiment. As shown in fig. 1, when power failure abnormality occurs in the storage node 101, the power supply state is switched to a preset BBU battery power supply state, and power failure abnormality alarm information is sent to the management node 102. After receiving the power failure abnormality alarm information, the management node 102 migrates front-end information connected to the storage node 101 in which the power failure abnormality occurs to other storage nodes 103 and 104. The storage node 101 shuts down its operation after receiving the migration completion notification sent by the management node 102. The management node 102 is connected to the storage nodes 101, 103, and 104 through a network, respectively, to form a storage cluster accessed by an IP, and each node may be an independent server.
In this embodiment, a data storage method is provided, which is used for storing storage nodes in a cluster. Fig. 2 is a flowchart of the data storage method of the present embodiment, and as shown in fig. 2, the flowchart includes the following steps:
step S210, under the condition that the power failure of the storage node is abnormal, the power supply state is switched to a preset BBU battery power supply state, and power failure abnormal alarm information is sent to the management node; after receiving the power failure abnormity alarm information, the management node migrates the front end information connected with the storage node with the current power failure abnormity to other storage nodes.
The storage cluster may specifically be composed of one management node and a plurality of storage nodes. The management node is used for managing channels of each storage node in the storage cluster and monitoring the state of each storage node by establishing a heartbeat mechanism with each storage node. When one or more of the storage nodes is abnormally powered off, the heartbeat connection between the storage nodes and the management node is also disconnected. The management node determines the storage node with abnormal power failure based on a heartbeat mechanism, so that the task operated by the storage node is distributed to other normally operated storage nodes. Further, the storage cluster may be further connected to the webcam IPC (ip camera), and stores the video data transmitted by the corresponding IPC. The management node sends the front-end information of the IPC, such as an IP address, a login user name, a login password and the like corresponding to the IPC to the storage node, and channel allocation of the IPC video is completed. After the front-end information of the IPC is distributed to the corresponding storage nodes, each storage node can perform login and stream pulling operations based on the distributed front-end information to finish the storage of the video data.
When the power failure abnormality occurs to the storage node, the task running on the storage node may not be ended normally. For example, a power failure exception occurs during the video data storage process of the storage node, which may cause video data loss. In addition, when the management node detects that the power failure abnormality occurs to the storage node through the heartbeat mechanism, the front-end information configured by the storage node with the power failure abnormality can be migrated to other storage nodes, so that the other storage nodes can finish video data storage based on the allocated front-end information. If the storage node with the power failure abnormality stops running due to insufficient electric quantity before the management node completes the migration of the front-end information, the management node loses video data in the process of migrating the front-end information.
Therefore, a Battery Backup Unit (BBU) may be provided for each storage node of the storage cluster. When the storage node is abnormally powered off, the BBU battery can be switched to supply power to maintain the normal operation of the storage node. In addition, after the storage nodes are powered by the BBU battery, power failure abnormity alarm information can be sent to the management node to prompt the management node to migrate the front-end information connected with the storage node with the power failure abnormity to other storage nodes in normal operation, and the storage nodes close the operation of the storage nodes until receiving the notification of completion of migration sent by the management node. The mode of supplying power by using the BBU battery to maintain operation until the management node closes the operation of the management node after completing the front-end information migration can avoid the loss of data transmitted by the front end in the migration process, thereby improving the integrity of the stored video.
Step S220, after receiving the migration completion notification sent by the management node, closes its own operation.
The management node may select a plurality of other storage nodes from the storage cluster to perform migration of the front-end information according to the remaining channel capabilities of other storage nodes that normally operate and the front-end information that needs to be migrated. And the other storage nodes perform login and stream pulling actions according to the migrated new front-end information, send a completion state to the management node before video data storage based on the front-end information, and wait for receiving a next instruction command of the management node. And the management node sends the information of the completion of the migration to the storage node with the current power failure abnormality. And the storage node with the abnormal power failure stops running after receiving the notice of the completion of the migration sent by the management node. The storage node with the abnormal power failure is powered off and shut down after the current storage node is powered off and operates, specifically, all running tasks are normally shut down.
In addition, in order to improve the continuity of video data storage and avoid the repeated redundancy of video data, before the current storage node with power failure abnormality closes the operation of the current storage node, the storage nodes can also send the storage marks of all the front-end video data which are stored to the management node, so that other storage nodes can continue to store the video data based on the storage marks. The storage flag may be time information of a last frame of video data stored in a storage node where the power outage abnormality currently occurs. Similarly, the storage flag may also be other information determined according to the actual situation, and is not described herein again.
Compared with the existing data storage mode that the storage node is directly powered off and shut down when the power failure of the storage node is abnormal and the reserved time for front-end information migration is not provided for the management node, the power supply of the BBU battery enables the storage node with the power failure abnormality to maintain running, the running task is normally finished after the management node completes the front-end information migration, and the mode of power off and shut down can improve the integrity and the continuity of data and avoid data loss, repetition and redundancy.
In the above steps S210 to S220, when the power failure abnormality occurs in the storage node itself, the power supply state is switched to the preset BBU battery power supply state, and power failure abnormality alarm information is sent to the management node, after receiving the power failure abnormality alarm information, the management node migrates front end information connected to the storage node in which the power failure abnormality occurs at present to other storage nodes, and after receiving a notification of completion of migration sent by the management node, closes its own operation. The method and the device realize the early transfer of the front-end configuration information corresponding to the storage node before the storage node is closed to operate due to abnormal power failure, so that the early stream pulling aiming at the corresponding front-end equipment is completed, the problem that the video data is lost after the power failure of the storage node is avoided, and the integrity of the video storage data is improved.
Further, in an embodiment, based on the step S220, after receiving the migration completion notification sent by the management node, before closing the self-operation, the method specifically includes the following steps:
step S221, the time information of the last frame of the stored front-end video data is sent to the management node.
After receiving the time information, the management node can send the time information to other storage nodes after the front-end information migration, and the other storage nodes can continue to store the video data according to the time information, so that the continuity of the video data is improved, and the redundancy and the repetition of the data are avoided.
Further, in an embodiment, based on the step S221, sending the time information of the last frame of the stored front-end video data to the management node specifically includes the following steps:
step S2211, the time information of the last frame of the stored video data corresponding to the plurality of front ends is transmitted to the management node.
The storage node with the abnormal power failure can be configured with front end information of a plurality of different front ends, and stores video data transmitted by each front end. Therefore, the storage node with the power failure abnormality can send the time information of the last frame of the corresponding video data to the management node, so that other storage nodes can store the video data according to the corresponding time information.
In the above steps S210 to S2211, after receiving the notification of migration completion sent by the management node and before closing the operation of the management node, the actual information of the last frame of the stored front-end video data is sent to the management node, where the stored front-end video data may be stored video data corresponding to multiple front ends, so that redundancy and repetition of the video data are avoided, and complete and continuous storage of the video data is further achieved.
In one embodiment, as shown in fig. 3, a data storage method is provided for storing management nodes in a cluster, including the following steps:
step S310, after receiving the abnormal power failure alarm information sent by the storage node, detecting the power supply state of the storage node with the abnormal power failure.
After receiving the power failure abnormality alarm information sent by the storage node, the management node can detect whether the storage node is in a BBU battery power supply state. If the storage node is not powered by the BBU battery, the storage node may have a problem of data loss due to power failure and shutdown. In addition, when the storage node is powered off due to power failure, the management node can also determine that the storage node finishes running through a heartbeat mechanism between the management node and the storage node, so that the front-end information connected with the storage node finishing running is migrated to other storage nodes.
Step S320, when detecting that the storage node with the current power failure abnormity is in a BBU battery power supply state, migrating the front end information connected with the storage node with the current power failure abnormity to other storage nodes.
Specifically, when the current storage node with power failure abnormality is in the BBU battery power supply state, the management node may acquire the channel use condition of other storage nodes. The management node may determine the remaining channels of the other storage nodes according to the maximum number of channels that the other storage nodes can use for storage and the number of channels that have already been stored, and select a plurality of other storage nodes with the smallest load as the migration objects of the front-end information.
Step S330, after the migration is completed, a notification of the completion of the migration is sent to the storage node with the current power failure abnormality, and the storage node with the current power failure abnormality is indicated to close the operation of the storage node.
After the migration of the front-end information is completed, other storage nodes can log in and pull streams based on the new migrated front-end information. After receiving the information of completion of login and stream pulling sent to the corresponding front end by other storage nodes, the management node may send a notification of completion of migration to the storage node with the current power failure abnormality to instruct the storage node with the current power failure abnormality to close its own operation.
In the above steps S310 to S330, after receiving the power failure abnormality alarm information sent by the storage node, detecting a power supply state of the storage node currently having the power failure abnormality, when detecting that the storage node currently having the power failure abnormality is in the BBU battery power supply state, migrating front end information connected to the storage node currently having the power failure abnormality to another storage node, and after completing migration, sending a notification of completion of migration to the storage node currently having the power failure abnormality, and indicating that the storage node currently having the power failure abnormality closes its own operation. The method and the device realize the early transfer of the front-end configuration information corresponding to the storage node before the storage node is closed to operate due to abnormal power failure, so that the early stream pulling aiming at the corresponding front-end equipment is completed, the problem that the video data is lost after the power failure of the storage node is avoided, and the integrity of the video storage data is improved.
In one embodiment, based on the step S310, when detecting that the storage node with the current power failure abnormality is in the BBU battery power supply state, migrating front-end information connected to the storage node with the current power failure abnormality to another storage node, specifically including the following steps:
step S311, selecting a preset number of other storage nodes from the storage cluster according to the remaining number of channels, and sending the front-end information to the selected other storage nodes.
Additionally, in one embodiment, the method further comprises:
step S340, receiving time information of the last frame of the stored front-end video data sent by the storage node before closing its operation.
The storage node with the current power failure abnormality may include one or more channels, and the front-end video data stored in each channel may be different, so that the time information of the last frame of each front-end video stored in the storage node with the current power failure abnormality may be received.
And step S350, sending the time information to other storage nodes, and indicating the other storage nodes to store the front-end video data according to the corresponding time information and the front-end information.
And sending the time information to other storage nodes to enable the other storage nodes to store the front-end video data according to the corresponding time information, thereby avoiding redundancy and repetition of the video data and realizing continuous storage of the video data.
Additionally, in one embodiment, the management node detects the operating status of each storage node in the storage cluster through a heartbeat mechanism.
In an embodiment, there is further provided a video data storage method, as shown in fig. 4, including the following steps:
step S401, the IPC is added into a storage cluster, and the storage cluster allocates a channel of a specific storage node to store the IPC data;
step S402, the storage node A is powered off, and front-end information on the storage node A is to be migrated;
step S403, judging whether the BBU battery module exists in the storage node A, if so, executing step S406, otherwise, executing step S404;
step S404, the storage node A is powered off and shut down, and the management node judges that the storage node A is abnormal according to heartbeat non-reply sent regularly;
step S405, the management node migrates the front-end information on the storage node A to other storage nodes to continue recording;
step S406, judging whether the electric quantity of the battery of the BBU is larger than a preset critical electric quantity value or not, if so, executing step S408, otherwise, executing step S407;
step S407, the storage node A sends a power failure abnormity alarm to the management node, and meanwhile, according to the self electric quantity condition, the video data are continuously stored before the normal shutdown of the critical electric quantity value is achieved;
step S408, the storage node A sends a power failure abnormity alarm to the management node, meanwhile, the storage node A continues working and waits for the management node to send a notice of the completion of front-end information transfer;
step S409, the management node distributes the front-end information in the storage node A to the storage node B and the storage node C;
step S410, the storage node B and the storage node C start to log in and pull stream actions aiming at the newly distributed front-end information, inform the completion state to the management node after finishing the relevant actions, simultaneously temporarily buffer the code stream in the memory and wait for receiving the next action of the management node;
step S411, after receiving the migration completion state of the storage node B and the storage node C, the management node sends a migration completion notification to the storage node A, the storage node A starts to close the video, and simultaneously informs the management node of frame time information of the last frame of each channel, and after the interaction is completed, the storage node A executes a shutdown action;
in step S412, after receiving the time information of the last frame of the storage node a, the management node sends the time information to the storage node B and the storage node C, and the storage node B and the storage node C start recording according to the received time information of the last frame.
In one embodiment, a data storage method is provided, as shown in fig. 5, for a storage cluster, where the storage cluster includes storage nodes and management nodes, and the method includes the following steps:
step S510, under the condition that the power failure of the storage node is abnormal, the power supply state of the storage node is switched to a preset BBU battery power supply state, and power failure abnormal alarm information is sent to a management node;
step S520, after receiving the power failure abnormity alarm information, the management node migrates the front end information connected with the storage node with the current power failure abnormity to other storage nodes, and after the migration is completed, sends a migration completion notification to the storage node with the current power failure abnormity;
step S530, the storage node closes its operation after receiving the migration completion notification sent by the management node.
Fig. 6 is a schematic structural diagram of a storage node 60 in the implementation of the present application, and as shown in fig. 6, the storage node 60 includes: including an anomaly alarm module 62 and a shutdown operation module 64, wherein:
the abnormal alarm module 62 is used for switching the power supply state to a preset BBU battery power supply state under the condition that the power failure of the storage node is abnormal, and sending power failure abnormal alarm information to the management node; after receiving the power failure abnormity alarm information, the management node migrates front end information connected with the storage node with the current power failure abnormity to other storage nodes;
and a shutdown module 64, configured to shutdown the self-operation after receiving the notification of completion of migration sent by the management node.
The storage node 60 switches the power supply state to the preset BBU battery power supply state under the condition that the storage node itself has power failure abnormality, sends power failure abnormality alarm information to the management node, and after receiving the power failure abnormality alarm information, the management node migrates front end information connected to the storage node that currently has power failure abnormality to other storage nodes, and after receiving a notification of completion of migration sent by the management node, closes its own operation. The method and the device realize the early transfer of the front-end configuration information corresponding to the storage node before the storage node is closed to operate due to abnormal power failure, so that the early stream pulling aiming at the corresponding front-end equipment is completed, the problem that the video data is lost after the power failure of the storage node is avoided, and the integrity of the video storage data is improved.
In one embodiment, the storage node 60 further comprises a time information sending module, and the time information sending module is configured to send the stored time information of the last frame of the front-end video data to the management node.
In one embodiment, the time information sending module is further configured to send the stored time information of the last frame of the plurality of front-end corresponding video data to the management node.
Fig. 7 is a schematic structural diagram of a management node 70 in the embodiment of the present application, and as shown in fig. 7, the management node 70 includes a detection module 72, a migration module 74, and a notification module 76, where:
the detection module 72 is configured to detect a power supply state of a storage node currently in power failure abnormality after receiving power failure abnormality alarm information sent by the storage node;
the migration module 74 is configured to, when detecting that the storage node with the current power failure abnormality is in a BBU battery power supply state, migrate front-end information connected to the storage node with the current power failure abnormality to another storage node;
and a notification module 76, configured to send a notification of completion of migration to the storage node with the current power failure abnormality after completion of migration, and instruct the storage node with the current power failure abnormality to close its own operation.
The management node 70 detects the power supply state of the storage node with the current power failure abnormality after receiving the power failure abnormality alarm information sent by the storage node, migrates front-end information connected to the storage node with the current power failure abnormality to other storage nodes when detecting that the storage node with the current power failure abnormality is in the BBU battery power supply state, and sends a migration completion notification to the storage node with the current power failure abnormality after completing the migration, and instructs the storage node with the current power failure abnormality to close its own operation. The method and the device realize the early transfer of the front-end configuration information corresponding to the storage node before the storage node is closed to operate due to abnormal power failure, so that the early stream pulling aiming at the corresponding front-end equipment is completed, the problem that the video data is lost after the power failure of the storage node is avoided, and the integrity of the video storage data is improved.
In one embodiment, a data storage device is provided, comprising a management node and a plurality of storage nodes, the storage nodes being connected to a BBU battery power module; the storage node is used for realizing the data storage method for the storage node in the embodiment; the management node is used for implementing the data storage method for the management node of the above embodiment.
The above modules may be functional modules or program modules, and may be implemented by software or hardware. For a module implemented by hardware, the modules may be located in the same processor; or the modules can be respectively positioned in different processors in any combination.
It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to be limiting. All other embodiments, which can be derived by a person skilled in the art from the examples provided herein without any inventive step, shall fall within the scope of protection of the present application.
It is obvious that the drawings are only examples or embodiments of the present application, and it is obvious to those skilled in the art that the present application can be applied to other similar cases according to the drawings without creative efforts. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.
The term "embodiment" is used herein to mean that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is to be expressly or implicitly understood by one of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the patent protection. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (11)

1. A data storage method for storing storage nodes in a cluster, the method comprising:
under the condition that the power failure abnormality occurs in the storage node, switching the power supply state to a preset BBU battery power supply state, and sending power failure abnormality alarm information to a management node; after receiving the power failure abnormity alarm information, the management node migrates front end information connected with the storage node with the current power failure abnormity to other storage nodes;
and after receiving the notification of the completion of the migration sent by the management node, closing the self operation.
2. The data storage method according to claim 1, wherein after receiving the notification of completion of migration sent by the management node, before shutting down its own operation, the method further comprises:
and sending the time information of the last frame of the stored front-end video data to the management node.
3. The data storage method according to claim 2, wherein the sending the time information of the last frame of the stored front-end video data to the management node comprises:
and sending the time information of the last frame of the stored video data corresponding to the front ends to the management node.
4. A data storage method for storing management nodes in a cluster, the method comprising:
after receiving power failure abnormity alarm information sent by a storage node, detecting the power supply state of the storage node with the current power failure abnormity;
when detecting that the storage node with the current power failure abnormity is in a BBU battery power supply state, migrating front-end information connected with the storage node with the current power failure abnormity to other storage nodes;
after the migration is completed, sending a notification of the completion of the migration to the storage node with the current power failure abnormality, and indicating the storage node with the current power failure abnormality to close the operation of the storage node.
5. The data storage method according to claim 4, wherein when detecting that the storage node currently experiencing power failure abnormality is in a BBU battery power supply state, migrating front-end information connected to the storage node currently experiencing power failure abnormality to other storage nodes, including:
and selecting a preset number of other storage nodes from the storage cluster according to the residual channel number, and sending the front-end information to the selected other storage nodes.
6. The data storage method of claim 4, wherein the method further comprises:
receiving time information of a last frame of stored front-end video data sent by the storage node before the storage node closes the self operation;
and sending the time information to other storage nodes, and indicating the other storage nodes to store the front-end video data according to the corresponding time information and the front-end information.
7. The data storage method according to any one of claims 4 to 6, wherein the operational state of each storage node in the storage cluster is detected through a heartbeat mechanism.
8. A data storage method for a storage cluster, the storage cluster comprising storage nodes and management nodes, the method comprising the steps of:
under the condition that the storage node is abnormal in power failure, the power supply state of the storage node is switched to a preset BBU battery power supply state, and power failure abnormality alarm information is sent to the management node;
after receiving the power failure abnormity alarm information, the management node migrates front end information connected with the storage node with the current power failure abnormity to other storage nodes, and after migration is completed, sends a migration completion notification to the storage node with the current power failure abnormity;
and the storage node closes the self operation after receiving the notification of the migration completion sent by the management node.
9. A storage node, comprising an exception alert module and a shutdown operation module, wherein:
the abnormal alarm module is used for switching the power supply state to a preset BBU battery power supply state under the condition that the power failure abnormality occurs in the storage node, and sending power failure abnormality alarm information to the management node; after receiving the power failure abnormity alarm information, the management node migrates front end information connected with the storage node with the current power failure abnormity to other storage nodes;
and the operation closing module is used for closing the operation of the management node after receiving the notification of the completion of the migration sent by the management node.
10. A management node, comprising: detection module, migration module and notice module, wherein:
the detection module is used for detecting the power supply state of the storage node with abnormal power failure at present after receiving power failure abnormal alarm information sent by the storage node;
the migration module is used for migrating the front-end information connected with the storage node with the current power failure abnormality to other storage nodes when the storage node with the current power failure abnormality is detected to be in a BBU battery power supply state;
and the notification module is used for sending a notification of completion of migration to the storage node with the current power failure abnormality after the migration is completed, and indicating the storage node with the current power failure abnormality to close the operation of the storage node.
11. A data storage device is characterized by comprising a management node and a plurality of storage nodes, wherein the storage nodes are connected with a BBU battery power supply module;
the storage node is used for realizing the data storage method of any one of claims 1 to 3;
the management node is configured to implement the data storage method of any one of claims 4 to 7.
CN202110806620.4A 2021-07-16 2021-07-16 Data storage method, data storage device, storage node and management node Pending CN113672588A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110806620.4A CN113672588A (en) 2021-07-16 2021-07-16 Data storage method, data storage device, storage node and management node

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110806620.4A CN113672588A (en) 2021-07-16 2021-07-16 Data storage method, data storage device, storage node and management node

Publications (1)

Publication Number Publication Date
CN113672588A true CN113672588A (en) 2021-11-19

Family

ID=78539389

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110806620.4A Pending CN113672588A (en) 2021-07-16 2021-07-16 Data storage method, data storage device, storage node and management node

Country Status (1)

Country Link
CN (1) CN113672588A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8010485B1 (en) * 2005-10-20 2011-08-30 American Megatrends, Inc. Background movement of data between nodes in a storage cluster
CN105138363A (en) * 2015-08-21 2015-12-09 百度在线网络技术(北京)有限公司 Automatic upgrade processing method and device of application programs
CN105138276A (en) * 2015-07-14 2015-12-09 苏州科达科技股份有限公司 Data storage method and data storage system
CN108833817A (en) * 2018-06-27 2018-11-16 浙江大华技术股份有限公司 A kind of video data storage method and device
CN111200538A (en) * 2019-12-25 2020-05-26 苏宁云计算有限公司 Monitoring method and device for intelligent equipment
CN111928901A (en) * 2020-08-19 2020-11-13 北京兴达智联科技有限公司 Early warning system and method for power exchange cabinet

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8010485B1 (en) * 2005-10-20 2011-08-30 American Megatrends, Inc. Background movement of data between nodes in a storage cluster
CN105138276A (en) * 2015-07-14 2015-12-09 苏州科达科技股份有限公司 Data storage method and data storage system
CN105138363A (en) * 2015-08-21 2015-12-09 百度在线网络技术(北京)有限公司 Automatic upgrade processing method and device of application programs
CN108833817A (en) * 2018-06-27 2018-11-16 浙江大华技术股份有限公司 A kind of video data storage method and device
CN111200538A (en) * 2019-12-25 2020-05-26 苏宁云计算有限公司 Monitoring method and device for intelligent equipment
CN111928901A (en) * 2020-08-19 2020-11-13 北京兴达智联科技有限公司 Early warning system and method for power exchange cabinet

Similar Documents

Publication Publication Date Title
US9800087B2 (en) Multi-level data center consolidated power control
CN103532753A (en) Double-computer hot standby method based on memory page replacement synchronization
CN109194514A (en) A kind of two-shipper monitoring method, device, server and storage medium
CN104158707A (en) Method and device of detecting and processing brain split in cluster
US9727104B2 (en) Various PSUs adaptive server and method
CN107071189B (en) Connection method of communication equipment physical interface
CN108733808B (en) Big data software system switching method, system, terminal equipment and storage medium
CN113672588A (en) Data storage method, data storage device, storage node and management node
CN112596371A (en) Control card switching method and device, electronic equipment and storage medium
CN114461151B (en) Video storage method, computer equipment and storage medium of national standard camera
CN113867815B (en) Method for monitoring server suspension and automatically restarting and server applying same
US8499130B2 (en) Information processing apparatus, information processing method, and recording medium that records history information control program
CN109101372A (en) Redundancy switching method, storage medium and the Shelf Management Module of Shelf Management Module
CN113220509A (en) Double-combination alternating shift system and method
CN112419524A (en) Hot standby method of intelligent parking integrated machine
CN101124543A (en) Switchover facilitation apparatus and method
CN114553900B (en) Distributed block storage management system, method and electronic equipment
CN114827080B (en) IP switching method and system
CN109936482B (en) Operation and maintenance method and system of node equipment
CN112433740B (en) Method, system, equipment and medium for cluster off-line upgrading
JPH10247962A (en) Computer communication monitor system
CN111240857B (en) Remote service calling system and method
CN110290159B (en) Method and equipment for scheduling management
JPH10124346A (en) Constitution management system
JP3082704B2 (en) Communication device management 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