Distributed data storage system protection method and device, equipment and medium

By monitoring the status of the distributed data storage system and entering safe mode, disabling data modification operations, the problem of data loss in abnormal situations is solved and the stability and fault tolerance of the system are improved.

CN120653183APending Publication Date: 2025-09-16BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410302863.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-15
Publication Date
2025-09-16

AI Technical Summary

Technical Problem

The current distributed data storage system lacks security protection measures, which leads to data confusion or loss in abnormal situations and requires manual analysis and processing.

Method used

A distributed data storage system protection method is provided, which prevents data loss by monitoring system status, entering a safe mode and disabling data modification operations.

Benefits of technology

Reduce data loss in abnormal situations, improve system stability and fault tolerance, and reduce the need for manual intervention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120653183A_ABST
    Figure CN120653183A_ABST
Patent Text Reader

Abstract

The invention relates to a distributed data storage system protection method and device, equipment and a medium. The method comprises the steps that the running state of a distributed data storage system is monitored; when the running state meets a preset abnormal condition, controlling the distributed data storage system to enter a security mode; and in the security mode, responding to a data change request in the distributed data storage system, and forbidding a data change operation corresponding to the data change request. According to the method, the security mode of the distributed data storage system is newly added, and the system is controlled to enter the security mode when the distributed data storage system is abnormal, so that the data change operation possibly causing danger in the system is forbidden, the loss of the system in the abnormal condition is minimized, and the safety of the system is improved. The risk of data loss caused by abnormal conditions is reduced, and the stability and fault tolerance of the system can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a distributed data storage system protection method, apparatus, device, and medium. Background Art

[0002] A distributed data storage system is a system that stores data in multiple physical locations, connected by computers over a network. This system is designed to improve the scalability, redundancy, availability, and performance of the storage system.

[0003] ZooKeeper is a distributed, open-source program coordination service that provides key features including configuration management, name service, distributed locking, and cluster management. The central control node in a distributed data storage system manages multiple data nodes in the cluster by obtaining system information from ZooKeeper.

[0004] The current distributed data storage system lacks security protection measures. Once an abnormality occurs in the system, it will cause data confusion or data loss, and manual analysis and processing of the abnormalities are required one by one. Summary of the Invention

[0005] In order to solve the above technical problems, the present disclosure provides a distributed data storage system protection method, device, equipment and medium to minimize the loss of the system in abnormal situations.

[0006] In a first aspect, an embodiment of the present disclosure provides a distributed data storage system protection method, comprising:

[0007] Monitor the operating status of distributed data storage systems;

[0008] When the operating state meets a preset abnormal condition, controlling the distributed data storage system to enter a safe mode;

[0009] In the security mode, in response to a data change request in the distributed data storage system, a data change operation corresponding to the data change request is disabled.

[0010] In some embodiments, the distributed data storage system includes at least a program coordination service, a central control node, and multiple data nodes, and monitoring the normal mode operation status of the distributed data storage system includes:

[0011] Detecting the connection status between the program coordination service and the central control node; and / or

[0012] Detecting the operating status of the plurality of data nodes; and / or

[0013] Detecting whether the distributed data storage system receives a security mode switching instruction.

[0014] In some embodiments, the operating state meets a preset abnormal condition, including:

[0015] The program coordination service loses contact with the central control node; or

[0016] The number of downtime nodes in the plurality of data nodes that are in downtime state exceeds a preset downtime number threshold, and the downtime nodes are distributed in multiple node areas; or

[0017] The distributed data storage system receives a security mode switching instruction.

[0018] In some embodiments, the preset downtime threshold is related to properties of the distributed data storage system, and the properties of the distributed data storage system include at least one or more of the following:

[0019] Data accuracy, fault tolerance, and security of distributed data storage systems.

[0020] In some embodiments, the data change request includes at least one or more of the following:

[0021] Central control node data allocation request, central control node data removal request, data node shutdown request.

[0022] In some embodiments, monitoring the operating status of the distributed data storage system includes:

[0023] Detecting whether each data node in the distributed data storage system has completed a data backup operation;

[0024] The data nodes that have not completed the data backup operation are switched to a stopped state.

[0025] In some embodiments, the step of switching a data node that has not completed the data backup operation to a stopped state includes:

[0026] Obtain cluster operation information of the cluster where the data node that has not completed the data backup operation is located;

[0027] If it is determined according to the cluster operation information that the data node that has not completed the data backup operation meets a preset stop condition, the data node that has not completed the data backup operation is changed to a stop state.

[0028] In some embodiments, the preset stop condition includes at least one or more of the following:

[0029] The cluster where the data node is located is not in safe mode, the data node is not in a node area where stopping is prohibited, the number of nodes in the node area where the data node is located is greater than a preset node threshold, and the mode of the cluster where the data node is located remains unchanged after the data node is stopped.

[0030] In some embodiments, the method further comprises:

[0031] For the data node in the stopped state, if the data node completes the backup operation, the data node is restored to a normal state.

[0032] In some embodiments, the method further comprises:

[0033] When the distributed data storage system needs to perform a system upgrade operation, controlling the distributed data storage system to enter a safe mode;

[0034] Complete the system upgrade operation of the distributed data storage system in the safe mode.

[0035] In some embodiments, completing the system upgrade operation of the distributed data storage system in the safe mode includes:

[0036] Determining an upgrade order corresponding to each node area in the distributed data storage system;

[0037] According to the upgrade sequence, each node area is shut down in turn and the system upgrade operation of the node area is completed.

[0038] In some embodiments, the method further comprises:

[0039] After the operating state returns to normal, controlling the distributed data storage system to exit the safe mode; or,

[0040] In response to a user's safety mode exit instruction, the distributed data storage system is controlled to exit the safety mode.

[0041] In a second aspect, an embodiment of the present disclosure provides a distributed data storage system protection device, comprising:

[0042] A monitoring module, used to monitor the operating status of the distributed data storage system;

[0043] a control module, configured to control the distributed data storage system to enter a safe mode when the operating state meets a preset abnormal condition;

[0044] The disabling module is configured to, in the security mode, respond to a data change request in the distributed data storage system and disable a data change operation corresponding to the data change request.

[0045] In a third aspect, an embodiment of the present disclosure provides an electronic device, including:

[0046] Memory;

[0047] processor; and

[0048] computer programs;

[0049] The computer program is stored in the memory and is configured to be executed by the processor to implement the method as described in the first aspect.

[0050] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is executed by a processor to implement the method described in the first aspect.

[0051] In a fifth aspect, an embodiment of the present disclosure further provides a computer program product, which includes a computer program or instructions, and when the computer program or instructions are executed by a processor, implements the distributed data storage system protection method as described above.

[0052] The distributed data storage system protection method, apparatus, equipment and medium provided by the embodiments of the present disclosure, by adding a new security mode for the distributed data storage system, control the system to enter the security mode when an abnormal situation occurs in the distributed data storage system, thereby disabling data modification operations in the system that may cause danger, minimizing the loss of the system in abnormal situations, reducing the risk of data loss due to abnormal situations, and helping to improve the stability and fault tolerance of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0054] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0055] Figure 1 A flow chart of a distributed data storage system protection method provided in an embodiment of the present disclosure;

[0056] Figure 2 A schematic diagram of an application scenario provided by an embodiment of the present disclosure;

[0057] Figure 3 A schematic diagram of a distributed data storage system protection operation provided by an embodiment of the present disclosure;

[0058] Figure 4 A schematic diagram of the structure of a distributed data storage system protection device provided in an embodiment of the present disclosure;

[0059] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0060] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features therein can be combined with each other in the absence of conflict.

[0061] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0062] The embodiments of the present disclosure provide a distributed data storage system protection method, which is described below in conjunction with specific embodiments.

[0063] Figure 1 This is a flow chart of the distributed data storage system protection method provided by the embodiment of the present disclosure. This method can be applied to Figure 2 The application scenario shown includes a distributed data storage system 21 and a protection device 22. The protection device 22 can specifically be a terminal, such as a server, computer, smartphone, PDA, tablet computer, wearable device with a display, desktop computer, laptop computer, all-in-one computer, smart home device, etc. It is understood that the distributed data storage system protection method provided in the embodiments of the present disclosure can also be applied in other scenarios.

[0064] The following combination Figure 2 The application scenario shown is Figure 1 The distributed data storage system protection method shown in FIG is introduced, and the specific steps of the method are as follows:

[0065] S101: Monitor the operating status of a distributed data storage system.

[0066] The distributed data storage system includes a program coordination service, a central control node, and data nodes. The distributed data storage system includes multiple clusters, each of which includes a central control node and multiple data nodes. The embodiment of the present disclosure takes one of the clusters as an example for description.

[0067] The program coordination service summarizes the operating status information of all nodes in the distributed data storage system. The central control node communicates with the program coordination service and manages and controls each data node based on the various information in the program coordination service.

[0068] In this step, the running status of the distributed data storage system includes but is not limited to: the running status of the program coordination service, the running status of the central control node, the running status of each data node, the connection status between the program coordination service and the central control node, etc.

[0069] S102: When the operating state meets a preset abnormal condition, control the distributed data storage system to enter a safe mode.

[0070] If the operating status meets the preset abnormal conditions, the distributed data storage system has an abnormal situation. If the distributed data storage system still operates in the normal mode at this time, it may cause data damage, errors or loss, which are difficult to recover.

[0071] Safe mode is a system state. In safe mode, the distributed data storage system is configured to minimize potential threats, minimizing the impact of system failures. It's understood that in addition to safe mode, other modes can be set for the cluster, providing scalability to meet the needs of different scenarios and enhancing the flexibility and customizability of the distributed data storage system.

[0072] Specifically, the relevant data of the running state is analyzed to determine whether the current running state meets the preset abnormal condition. For example, the flag bit of a specific behavior in the running state is used to determine whether the current running state meets the preset abnormal condition.

[0073] S103 . In the security mode, in response to a data change request in the distributed data storage system, disabling a data change operation corresponding to the data change request.

[0074] When the distributed storage system is in safe mode, basic system services are maintained, while data modification requests that could potentially endanger data are disabled. For example, to prevent data corruption, when a central control node requests data allocation, data removal, or data node shutdown requests are received within the distributed data storage system, these operations are prohibited.

[0075] Furthermore, the operating status of the distributed data storage system is continuously monitored in the safe mode, and the system is controlled to exit the safe mode when the operating status returns to normal; or, in response to the user's safe mode exit instruction, the user manually exits the safe mode.

[0076] The embodiment of the present disclosure monitors the operating status of a distributed data storage system; when the operating status meets a preset abnormal condition, controls the distributed data storage system to enter a safe mode; in the safe mode, responds to a data change request in the distributed data storage system, disables the data change operation corresponding to the data change request. By adding a safe mode for the distributed data storage system, the system is controlled to enter a safe mode when an abnormal situation occurs in the distributed data storage system, thereby disabling data change operations that may cause danger in the system, minimizing the loss of the system in an abnormal situation, reducing the risk of data loss due to abnormal situations, and helping to improve the stability and fault tolerance of the system.

[0077] Based on the above embodiments, the distributed data storage system includes at least a program coordination service, a central control node, and multiple data nodes. The monitoring of the normal mode operation status of the distributed data storage system includes: detecting the connection status between the program coordination service and the central control node; and / or detecting the operation status of the multiple data nodes; and / or detecting whether the distributed data storage system receives a safe mode switching instruction.

[0078] Accordingly, the operating status meets the preset abnormal conditions, including: the program coordination service loses connection with the central control node; or the number of downtime nodes in the multiple data nodes exceeds the preset downtime number threshold, and the downtime nodes are distributed in multiple node areas; or the distributed data storage system receives a safe mode switching instruction.

[0079] In some embodiments, the central control node's management of data nodes depends on relevant information obtained from the program coordination service. If the central control node loses connection with the program coordination service, the central control node may obtain error information or fail to obtain information, which may lead to confusion in the management of data nodes.

[0080] Therefore, it's necessary to ensure the connection between the central control node and the program coordination service is normal, or to prevent the further spread and use of erroneous data in the event of a disconnection, ensuring that the system can maintain basic functions and data consistency even in this state. For example, using the program coordination service ZooKeeper, a heartbeat detection mechanism is used to regularly check the connection status between the central control node and ZooKeeper. If a disconnection occurs, resulting in erroneous data, safe mode is immediately activated to ensure the operation of basic system functions.

[0081] In some embodiments, data node downtime can cause an anomaly in the distributed data storage system. Specifically, the data nodes in the distributed storage system are divided into multiple node regions based on the data node addresses and the racks in which they reside. When the number of downed data nodes (referred to as downed nodes) in the distributed storage system exceeds an allowable range, the operating status meets a preset anomaly condition, indicating an anomaly in the distributed storage system.

[0082] Specifically, when the number of down nodes in a down state among multiple data nodes exceeds a preset downtime threshold, and the down nodes are distributed across multiple node regions, the operating state is determined to meet the preset abnormal condition. For example, when there are more than two down nodes, and the down nodes are located in different node regions, the operating state is determined to meet the preset abnormal condition.

[0083] In some embodiments, the distributed storage system may be controlled to enter a safe mode according to a user's instruction. Specifically, when the distributed storage system receives a safe mode switching instruction, it determines that the operating state of the distributed storage system meets a preset abnormal condition and controls the distributed data storage system to enter a safe mode.

[0084] Optionally, preset abnormal conditions for entering the safety mode may be designed differently according to the data accuracy, fault tolerance, and security of the distributed data storage system.

[0085] For example, if the distributed data storage system has high data accuracy requirements, and / or has low fault tolerance, and / or has high security requirements, then the preset downtime threshold should be set to a lower value. Correspondingly, if the distributed data storage system has low data accuracy requirements, and / or has high fault tolerance, and / or has low security requirements, then the preset downtime threshold can be appropriately increased.

[0086] The disclosed embodiments implement automated monitoring and response for distributed storage systems by setting multiple preset exception conditions. This allows for more rapid detection and response to abnormal events, improving the fault tolerance of the distributed storage system. Furthermore, a manual intervention entry is added, allowing administrators to manually enter or exit safe mode, providing more flexible response to special circumstances and increasing system controllability.

[0087] In some embodiments, the monitoring of the operating status of the distributed data storage system further includes: detecting whether each data node in the distributed data storage system has completed the data backup operation; and switching the data nodes that have not completed the data backup operation to a stopped state.

[0088] To prevent accidental data deletion, data on data nodes is regularly backed up and stored in other storage spaces. If data deletion occurs, the data node can be quickly restored to its state at the time of the backup based on the backup data. If a data node is detected to have failed to complete its data backup operation, it will be stopped. While stopped, data nodes will not experience any data changes, minimizing data loss.

[0089] In some embodiments, the distributed data storage system includes multiple clusters, each cluster includes a central control node and multiple data nodes. Direct information transmission is carried out between the central control node and the data nodes. The mode of the central control node and the data nodes of the same cluster needs to be the same. When stopping a data node, the situation needs to be reported to the central control node. The central control node determines whether the node can be stopped based on the current mode of the cluster, the node area and number of the data nodes that need to be stopped, and the mode of the cluster after the data node is stopped, and passes the judgment result to the data node to perform corresponding operations.

[0090] Specifically, cluster operation information of the cluster where the data node that has not completed the data backup operation is located is obtained; if it is determined based on the cluster operation information that the data node that has not completed the data backup operation meets a preset stop condition, the data node that has not completed the data backup operation is switched to a stopped state. The preset stop condition includes at least one or more of the following: the cluster where the data node is located is not in safe mode, the data node is not in a node area where stopping is prohibited, the number of nodes in the node area where the data node is located is greater than a preset node threshold, and the mode of the cluster where the data node is located remains unchanged after the data node is stopped.

[0091] In some embodiments, when a data node that has not completed the data backup operation meets the above four stop conditions, the data node is turned into a stopped state.

[0092] In other embodiments, when the cluster where the data node is located is in a safe mode, it is necessary to avoid data changes in the cluster as much as possible, and in this case, changes to the status of the data node are prohibited; when the data node is in a node area where stopping is prohibited, it indicates that stopping the data node may affect the normal operation of the cluster, and therefore, stopping the data node is prohibited; when the number of nodes in the node area where the data node is located is small (less than or equal to a preset node threshold), stopping the data node may cause this data area to be overloaded, affecting the performance and security of data processing, and in this case, stopping the data node is prohibited; if after the data node is stopped, the cluster mode where the data node is located will change (such as from normal mode to safe mode), it indicates that stopping the data node will affect the normal operation of the cluster, and therefore, stopping the data node is prohibited.

[0093] Optionally, for a data node in the stopped state, if the data node completes the backup operation, the data node is restored to a normal state. That is, for a data node that is stopped due to incomplete data backup, the node is restored to a normal state after the data backup operation is completed.

[0094] The disclosed embodiments implement a mechanism to prevent accidental data deletion through data backup, thereby ensuring data security, minimizing the impact of accidental data deletion, and improving system data reliability.

[0095] In addition, the embodiment of the present disclosure ensures that the central control nodes and data nodes in the same cluster are in the same mode to maintain the consistency and stability of the cluster.

[0096] In some embodiments, the method further includes: when the distributed data storage system needs to perform a system upgrade operation, controlling the distributed data storage system to enter a safe mode; and completing the system upgrade operation of the distributed data storage system in the safe mode.

[0097] Specifically, completing the system upgrade operation of the distributed data storage system in the safe mode includes: determining the upgrade order corresponding to each node area in the distributed data storage system; shutting down each node area in turn according to the upgrade order and completing the system upgrade operation of the node area.

[0098] Since the corresponding data nodes will be in a shutdown state when upgrading data nodes or node areas, it is necessary to ensure that data change operations are disabled in the data nodes undergoing upgrade operations. Therefore, when the distributed data storage system needs to perform a system upgrade operation, the distributed data storage system is controlled to enter the safe mode according to the received system upgrade instructions or the user's safe mode switching instructions, and the system upgrade operation is completed in stages in the safe mode.

[0099] Specifically, the system upgrade operation is divided into multiple phases based on the node regions where the data nodes are located, and different node regions are upgraded step by step. The upgrade order for each node region can be determined based on the priority of the node region, the priority of the services provided by the data nodes, or the upgrade order of the switches corresponding to the data nodes, which is not limited in the present embodiment.

[0100] The disclosed embodiment divides the system upgrade process into multiple stages, gradually upgrades different node areas, and ensures partial system shutdown through a safe mode, thereby minimizing the impact of system upgrade operations and ensuring data security.

[0101] Figure 3This is a schematic diagram of a distributed data storage system protection operation provided by an embodiment of the present disclosure. Figure 3 As shown, when the program coordination service of the distributed data storage system is ZooKeeper, if the central control node loses connection with ZooKeeper, resulting in the central control node obtaining erroneous data, or the node area where the downtime node is located and the number of downtime nodes in the distributed data storage system exceed the allowed range, or when the user's safety mode switching instruction is received, the distributed data storage system is controlled to enter the safety mode. In the safety mode, the central control node is prohibited from allocating, removing data and other operations, and the data node is prohibited from shutting down. It can be understood that the operations disabled in the above-mentioned safety mode are only examples, and other disabled operations can be set according to actual needs. The embodiments of the present disclosure do not limit this.

[0102] The disclosed embodiment adds a new safety mode for the distributed data storage system. When an abnormal situation occurs in the distributed data storage system, the control system enters the safety mode, thereby disabling data modification operations in the system that may cause danger, minimizing the loss of the system in abnormal situations, reducing the risk of data loss due to abnormal situations, and helping to improve the stability and fault tolerance of the system.

[0103] Figure 4 This is a schematic diagram of the structure of the distributed data storage system protection device provided in the embodiment of the present disclosure. The distributed data storage system protection device can be the protection device described in the above embodiment, or the distributed data storage system protection device can be a component or assembly in the protection device. The distributed data storage system protection device provided in the embodiment of the present disclosure can execute the processing flow provided in the embodiment of the distributed data storage system protection method, such as Figure 4 As shown, the distributed data storage system protection device 40 includes: a monitoring module 41, a control module 42, and a disabling module 43; the monitoring module 41 is used to monitor the operating status of the distributed data storage system; the control module 42 is used to control the distributed data storage system to enter a safe mode when the operating status meets a preset abnormal condition; the disabling module 43 is used to respond to a data change request in the distributed data storage system in the safe mode and disable the data change operation corresponding to the data change request.

[0104] Optionally, the distributed data storage system includes at least a program coordination service, a central control node, and multiple data nodes, and the monitoring module 41 includes a first detection unit 411, a second detection unit 412, and a third detection unit 413; the first detection unit 411 is used to detect the connection status between the program coordination service and the central control node; the second detection unit 412 is used to detect the operating status of the multiple data nodes; and the third detection unit 413 is used to detect whether the distributed data storage system receives a security mode switching instruction.

[0105] Optionally, the control module 42 is specifically used to control the distributed data storage system to enter safe mode when the program coordination service loses connection with the central control node; or the number of downtime nodes in the multiple data nodes exceeds a preset downtime threshold, and the downtime nodes are distributed in multiple node areas; or when the distributed data storage system receives a safe mode switching instruction, control the distributed data storage system to enter safe mode.

[0106] Optionally, the preset downtime threshold is related to properties of the distributed data storage system, and the properties of the distributed data storage system include at least one or more of the following:

[0107] Data accuracy, fault tolerance, and security of distributed data storage systems.

[0108] Optionally, the data change request includes at least one or more of the following: a central control node data allocation request, a central control node data removal request, and a data node shutdown request.

[0109] Optionally, the monitoring module 41 further includes a fourth detection unit 414, which is configured to detect whether each data node in the distributed data storage system has completed the data backup operation; and to switch the data nodes that have not completed the data backup operation to a stopped state.

[0110] Optionally, the fourth detection unit 414 is specifically used to obtain cluster operation information of the cluster where the data node that has not completed the data backup operation is located; if it is determined according to the cluster operation information that the data node that has not completed the data backup operation meets the preset stop condition, the data node that has not completed the data backup operation will be changed to a stopped state.

[0111] Optionally, the preset stop condition includes at least one or more of the following: the cluster where the data node is located is not in safe mode, the data node is not in a node area where stopping is prohibited, the number of nodes in the node area where the data node is located is greater than a preset node threshold, and the mode of the cluster where the data node is located remains unchanged after the data node stops.

[0112] Optionally, the fourth detection unit 414 is further configured to restore a data node in the stopped state to a normal state if the data node completes the backup operation.

[0113] Optionally, the distributed data storage system protection device 40 also includes an upgrade module 44; the control module 42 is used to control the distributed data storage system to enter a safe mode when the distributed data storage system needs to perform a system upgrade operation; the upgrade module 44 is used to complete the system upgrade operation of the distributed data storage system in the safe mode.

[0114] Optionally, the upgrade module 44 includes a determination unit 441 and an upgrade unit 442; the determination unit 441 is used to determine the upgrade order corresponding to each node area in the distributed data storage system; the upgrade unit 442 is used to shut down each node area in turn according to the upgrade order and complete the system upgrade operation of the node area.

[0115] Optionally, the distributed data storage system protection device 40 also includes an exit module 45; the exit module 45 is used to control the distributed data storage system to exit the safe mode after the operating state returns to normal; or, in response to the user's safe mode exit instruction, control the distributed data storage system to exit the safe mode.

[0116] Figure 4 The distributed data storage system protection device of the illustrated embodiment can be used to execute the technical solution of the above-mentioned method embodiment. Its implementation principle and technical effects are similar and will not be described in detail here.

[0117] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. The electronic device may be the protection device described in the above embodiment. The electronic device provided in an embodiment of the present disclosure may execute the processing flow provided in an embodiment of the distributed data storage system protection method, such as Figure 5 The electronic device 50 shown includes: a memory 51, a processor 52, a computer program and a communication interface 53; wherein the computer program is stored in the memory 51 and is configured so that the processor 52 executes the distributed data storage system protection method as described above.

[0118] In addition, an embodiment of the present disclosure further provides a computer-readable storage medium on which a computer program is stored. The computer program is executed by a processor to implement the distributed data storage system protection method described in the above embodiment.

[0119] In addition, an embodiment of the present disclosure further provides a computer program product, which includes a computer program or instructions, and when the computer program or instructions are executed by a processor, the distributed data storage system protection method as described above is implemented.

[0120] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.

[0121] The foregoing description is intended only to provide specific embodiments of the present disclosure, intended to enable those skilled in the art to understand and implement the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the embodiments described herein, but rather to be construed in the broadest manner consistent with the principles and novel features disclosed herein.

Claims

1. A distributed data storage system protection method, characterized in that: The method comprises: Monitor the operating status of distributed data storage systems; When the operating state meets a preset abnormal condition, controlling the distributed data storage system to enter a safe mode; In the security mode, in response to a data change request in the distributed data storage system, a data change operation corresponding to the data change request is disabled.

2. The method according to claim 1, characterized in that The distributed data storage system includes at least a program coordination service, a central control node, and multiple data nodes. The monitoring of the normal mode operation status of the distributed data storage system includes: Detecting the connection status between the program coordination service and the central control node; and / or Detecting the operating status of the plurality of data nodes; and / or Detect whether the distributed data storage system receives a security mode switching instruction.

3. The method according to claim 2, characterized in that The operating status meets the preset abnormal conditions, including: The program coordination service loses contact with the central control node; or The number of downtime nodes in the plurality of data nodes that are in downtime state exceeds a preset downtime number threshold, and the downtime nodes are distributed in multiple node areas; or The distributed data storage system receives a security mode switching instruction.

4. The method according to claim 3, characterized in that The preset downtime threshold is related to the properties of the distributed data storage system. The properties of the distributed data storage system include at least one or more of the following: Data accuracy, fault tolerance, and security of distributed data storage systems.

5. The method according to claim 1, characterized in that The data change request includes at least one or more of the following: Central control node data allocation request, central control node data removal request, data node shutdown request.

6. The method according to claim 1, characterized in that The monitoring of the operating status of the distributed data storage system includes: Detecting whether each data node in the distributed data storage system has completed a data backup operation; The data nodes that have not completed the data backup operation are switched to a stopped state.

7. The method according to claim 6, characterized in that The step of switching the data node that has not completed the data backup operation to a stopped state includes: Obtain cluster operation information of the cluster where the data node that has not completed the data backup operation is located; If it is determined according to the cluster operation information that the data node that has not completed the data backup operation meets a preset stop condition, the data node that has not completed the data backup operation is switched to a stopped state.

8. The method according to claim 7, characterized in that The preset stop condition includes at least one or more of the following: The cluster where the data node is located is not in safe mode, the data node is not in a node area where stopping is prohibited, the number of nodes in the node area where the data node is located is greater than a preset node threshold, and the mode of the cluster where the data node is located remains unchanged after the data node is stopped.

9. The method according to claim 6, characterized in that The method further comprises: For the data node in the stopped state, if the data node completes the backup operation, the data node is restored to a normal state.

10. The method according to claim 1, characterized in that The method further comprises: When the distributed data storage system needs to perform a system upgrade operation, controlling the distributed data storage system to enter a safe mode; Complete the system upgrade operation of the distributed data storage system in the safe mode.

11. The method according to claim 10, characterized in that The system upgrade operation of the distributed data storage system is completed in the safe mode, including: Determining an upgrade order corresponding to each node area in the distributed data storage system; According to the upgrade sequence, each node area is shut down in turn and the system upgrade operation of the node area is completed.

12. The method according to claim 1, characterized in that The method further comprises: After the operating state returns to normal, controlling the distributed data storage system to exit the safe mode; or, In response to a user's safety mode exit instruction, the distributed data storage system is controlled to exit the safety mode.

13. A distributed data storage system protection device, characterized in that: include: A monitoring module, used to monitor the operating status of the distributed data storage system; a control module, configured to control the distributed data storage system to enter a safe mode when the operating state meets a preset abnormal condition; The disabling module is configured to, in the security mode, respond to a data change request in the distributed data storage system and disable a data change operation corresponding to the data change request.

14. An electronic device, characterized in that: include: Memory; processor; as well as computer programs; The computer program is stored in the memory and configured to be executed by the processor to implement the method according to any one of claims 1 to 12.

15. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 12 is implemented.

Citation Information

Patent Citations

  • Data recovery method and apparatus

    CN106919470A

  • Monitoring method, system, device and medium for distributed file storage cluster

    CN109522287A

  • Storage system fault recovery method and device, computer equipment and medium

    CN114265728A

  • Anomaly detection method and apparatus for storage device, and distributed storage system

    WO2019210844A1