A fault handling method, device, equipment, medium and computer program product

By determining the fault node count and maintenance status in the distributed storage cluster and processing data access requests, the problem of a large impact on data access when a distributed storage cluster fails is solved, reducing the impact in maintenance mode and improving response efficiency.

CN118467112BActive Publication Date: 2024-09-24JINAN INSPUR DATA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410931645.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-09-24
Estimated Expiration
2044-07-12

AI Technical Summary

Technical Problem

When a distributed storage cluster faces a failure, the maintenance mode has a greater impact on data access, leading to system crashes and increased operation and maintenance costs.

Method used

When the distributed storage cluster is in a normal state, determine whether the fault node count is greater than the maximum fault domain, and if so, enter the maintenance state; in the maintenance state, determine whether the target data block information exists in the data loss list, and if so, return a failed response. , if it does not exist, respond to the data access request, and add the data block information to the loss list when it fails.

Benefits of technology

It reduces the impact on data access when the distributed storage cluster is in maintenance mode, ensures that access to unlost data blocks is not affected, and responds quickly and accurately to access requests for lost data blocks, improving response efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118467112B
    Figure CN118467112B
Patent Text Reader

Abstract

The present invention discloses a fault handling method, device and equipment, medium and computer program product, and relates to the field of computer technology. The method comprises: when a distributed storage cluster is in a normal state, judging whether the fault node count is greater than the maximum fault domain; if so, controlling the distributed storage cluster to enter a maintenance state; when the distributed storage cluster is in the maintenance state, when receiving a data access request, judging whether there is information corresponding to the target data block accessed by the data access request in a data loss list; if so, directly returning a data access request response failure; if not, responding to the data access request; if the data access request response is successful, returning the response information of the data access request; if the data access request response fails, adding the information corresponding to the target data block to the data loss list, and returning the data access request response failure, thereby reducing the impact on data access when the distributed storage cluster is in maintenance mode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and more specifically, to a fault handling method, device and equipment, medium and computer program product. Background Art

[0002] The distributed storage cluster divides the stored data into data blocks of the same size and stores them on different cluster nodes. At the same time, in order to improve the fault tolerance and data security of the cluster, a data block multi-copy storage strategy and a fault domain isolation strategy are often adopted, that is, each data block stored in the cluster has N copies and is stored on different N nodes. At this time, each node is a fault domain, that is, the entire distributed storage cluster has N fault domains. When a node (a certain fault domain) fails, the other nodes in the cluster still have all the data blocks of the system, so data I / O (input / output, Input / Output) processing can be performed normally, and the copy data lost due to the failure can be restored and rebalanced and stored on the remaining nodes. However, when the number of failed nodes reaches N, the distributed storage cluster will face the risk of losing all copies of certain data blocks. At this time, if the cluster provides services to the outside normally, when accessing these lost business data, I / O may fail to respond or be blocked, which will cause the business system to crash. Therefore, in the relevant technology, the cluster status is set to abnormal, and the external service is suspended, waiting for the technicians to confirm and troubleshoot and repair, so as to prevent the system from suffering further damage. However, this processing method is too strict, resulting in the data that has not been lost in the cluster being inaccessible to the outside world, and greatly increasing the operation and maintenance costs.

[0003] Therefore, how to reduce the impact on data access when the distributed storage cluster is in maintenance mode is a technical problem that those skilled in the art need to solve. Summary of the invention

[0004] The object of the present invention is to provide a fault handling method, apparatus and device, medium and computer program product, which reduce the impact on data access when a distributed storage cluster is in maintenance mode.

[0005] To achieve the above object, the present invention provides a fault handling method, comprising:

[0006] When the distributed storage cluster is in a normal state, determine whether the fault node count is greater than the maximum fault domain; if so, control the distributed storage cluster to enter a maintenance state; wherein the fault node count is the number of nodes in the distributed storage cluster that have blacklist fault tasks;

[0007] When the distributed storage cluster is in the maintenance state, upon receiving a data access request, determining whether information corresponding to a target data block accessed by the data access request exists in a data loss list;

[0008] If it exists, the data access request response failure is directly returned;

[0009] If it does not exist, respond to the data access request; if the data access request response is successful, return the response information of the data access request; if the data access request response fails, add the information corresponding to the target data block to the data loss list and return the data access request response failure.

[0010] Among them, it also includes:

[0011] When the distributed storage cluster is in the normal state, when a blacklist fault task is detected, determining a first target node generating the blacklist fault task and a task state of the blacklist fault task;

[0012] If the task status is generated, determine whether there is a fault record corresponding to the first target node in the fault record table; if so, generate a fault record according to the node information of the first target node and the task information of the blacklist fault task and add it to the fault record table; if not, generate a fault record according to the node information of the first target node and the task information of the blacklist fault task and add it to the fault record table, and increase the fault node count;

[0013] If the task status is successful, the corresponding fault record in the fault record table is deleted according to the node information of the first target node and the task information of the blacklist fault task, and it is determined whether there is a fault record corresponding to the first target node in the fault record table. If not, the fault node count is reduced.

[0014] Among them, it also includes:

[0015] When the distributed storage cluster is in the normal state, when a non-blacklist fault task is detected, determining whether it is necessary to update the cluster generation number;

[0016] If yes, the cluster generation number is updated and the fault record table is cleared.

[0017] The blacklist fault tasks include node leaving fault tasks and / or node hard disk offline fault tasks.

[0018] After controlling the distributed storage cluster to enter the maintenance state, the method further includes:

[0019] The task status of unfinished tasks in the distributed storage cluster is set to failure.

[0020] Among them, it also includes:

[0021] When the distributed storage cluster is in the maintenance state, the target task is detected. If the target task is a blacklist fault task, the task state of the target task is set to failure, and a fault record is generated based on the information of the node generating the target task and the task information of the target task and added to the fault record table.

[0022] Among them, after detecting the target task, it also includes:

[0023] If the target task is a whitelist recovery task, determine a second target node that generates the whitelist recovery task, and delete the corresponding fault record in the fault record table according to the node information of the second target node and the task information of the whitelist recovery task;

[0024] Determine whether there is a fault record corresponding to the second target node in the fault record table; if not, reduce the fault node count;

[0025] Determine whether the fault node count is less than or equal to the maximum fault domain; if so, control the distributed storage cluster to enter a normal state.

[0026] After controlling the distributed storage cluster to enter a normal state, the method further includes:

[0027] The fault node count is set to zero, and all fault records in the fault record table are deleted.

[0028] The whitelist recovery task includes a node joining cluster recovery task and / or a node hard disk insertion recovery task.

[0029] Among them, after detecting the target task, it also includes:

[0030] If the target task is a task other than the blacklist fault task and the whitelist recovery task, the task status of the target task is set to failure.

[0031] Among them, it also includes:

[0032] The maximum fault domain is determined according to the number of replicas of the distributed storage cluster; wherein the maximum fault domain is the number of replicas minus one.

[0033] To achieve the above object, the present invention provides a fault handling device, comprising:

[0034] The first control module is used to determine whether the fault node count is greater than the maximum fault domain when the distributed storage cluster is in a normal state; if so, control the distributed storage cluster to enter a maintenance state; wherein the fault node count is the number of nodes in the distributed storage cluster that have blacklist fault tasks;

[0035] A judgment module, used for, when the distributed storage cluster is in the maintenance state, judging whether there is information corresponding to the target data block accessed by the data access request in the data loss list when receiving a data access request; if so, starting the work flow of the first return module; if not, starting the work flow of the response module;

[0036] A response module, used to respond to the data access request; if the data access request is successfully responded to, the workflow of the second return module is started; if the data access request is unsuccessful, the information corresponding to the target data block is added to the data loss list, and the workflow of the first return module is started;

[0037] A first return module, used to return a data access request response failure;

[0038] The second returning module is used to return the response information of the data access request.

[0039] Among them, it also includes:

[0040] A first determination module is used to determine, when the distributed storage cluster is in the normal state and a blacklist fault task is detected, a first target node generating the blacklist fault task and a task state of the blacklist fault task;

[0041] An adding module is used to determine whether there is a fault record corresponding to the first target node in the fault record table when the task status is generated. If so, a fault record is generated according to the node information of the first target node and the task information of the blacklist fault task and added to the fault record table. If not, a fault record is generated according to the node information of the first target node and the task information of the blacklist fault task and added to the fault record table, and the fault node count is increased;

[0042] The first reduction module is used to delete the corresponding fault record in the fault record table according to the node information of the first target node and the task information of the blacklist fault task when the task status is successful, and determine whether there is a fault record corresponding to the first target node in the fault record table. If not, reduce the fault node count.

[0043] Among them, it also includes:

[0044] The clearing module is used to determine whether the cluster generation needs to be updated when a non-blacklist fault task is detected when the distributed storage cluster is in the normal state; if so, update the cluster generation and clear the fault record table.

[0045] The blacklist fault tasks include node leaving fault tasks and / or node hard disk offline fault tasks.

[0046] Among them, it also includes:

[0047] The first setting module is configured to set the task status of unfinished tasks in the distributed storage cluster to failure after controlling the distributed storage cluster to enter a maintenance state.

[0048] Among them, it also includes:

[0049] The second setting module is used to detect the target task when the distributed storage cluster is in the maintenance state. If the target task is a blacklist fault task, the task state of the target task is set to failure, and a fault record is generated according to the information of the node generating the target task and the task information of the target task and added to the fault record table.

[0050] Among them, it also includes:

[0051] A second determination module is used to determine a second target node that generates the whitelist recovery task when the target task is a whitelist recovery task, and delete the corresponding fault record in the fault record table according to the node information of the second target node and the task information of the whitelist recovery task;

[0052] A second reduction module is used to determine whether there is a fault record corresponding to the second target node in the fault record table; if not, reduce the fault node count;

[0053] The second control module is used to determine whether the fault node count is less than or equal to the maximum fault domain; if so, control the distributed storage cluster to enter a normal state.

[0054] Among them, it also includes:

[0055] The deletion module is used to set the fault node count to zero and delete all fault records in the fault record table after controlling the distributed storage cluster to enter a normal state.

[0056] The whitelist recovery task includes a node joining cluster recovery task and / or a node hard disk insertion recovery task.

[0057] Among them, it also includes:

[0058] The third setting module is used to set the task status of the target task to failure when the target task is other tasks except the blacklist fault task and the whitelist recovery task.

[0059] Among them, it also includes:

[0060] The third determination module is used to determine the maximum fault domain according to the number of replicas of the distributed storage cluster; wherein the maximum fault domain is the number of replicas minus one.

[0061] To achieve the above object, the present invention provides an electronic device, comprising:

[0062] Memory for storing computer programs;

[0063] A processor is used to implement the steps of the above-mentioned fault handling method when executing the computer program.

[0064] To achieve the above object, the present invention provides a non-volatile storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above fault handling method are implemented.

[0065] It can be seen from the above scheme that a fault handling method provided by the present invention includes: when the distributed storage cluster is in a normal state, determining whether the fault node count is greater than the maximum fault domain; if so, controlling the distributed storage cluster to enter a maintenance state; wherein the fault node count is the number of nodes in the distributed storage cluster with blacklist fault tasks; when the distributed storage cluster is in the maintenance state, when a data access request is received, determining whether there is information corresponding to the target data block accessed by the data access request in the data loss list; if so, directly returning a data access request response failure; if not, responding to the data access request; if the data access request response is successful, returning the response information of the data access request; if the data access request response fails, adding the information corresponding to the target data block to the data loss list, and returning a data access request response failure.

[0066] The beneficial effects of the present invention are as follows: the fault handling method provided by the present invention, when the distributed storage cluster is in maintenance state, when a data access request is received, the target data block accessed by the data access request is determined, if the information corresponding to the target data block has been recorded in the data loss list, then the data access request is no longer responded to, and a response failure is directly returned, if the information corresponding to the target data block is not recorded in the data loss list, then the response is performed according to the normal response process, if the access fails, the information corresponding to the target data block is recorded in the data loss list. It can be seen that the fault handling method provided by the present invention, when the distributed storage cluster is in maintenance state, will not affect the data access request for the non-lost data block, so that the impact on data access is reduced to the data block level, reducing the impact on data access when the distributed storage cluster is in maintenance mode, and at the same time, it can quickly and accurately respond to the data access request for accessing the lost data block, and improve the response efficiency of the distributed storage cluster in maintenance mode. The present invention also discloses a fault handling device and an electronic device, a non-volatile storage medium and a computer program product, which can also achieve the above technical effects.

[0067] It is to be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. The drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific implementation methods, they are used to explain the present disclosure, but do not constitute a limitation to the present disclosure. In the drawings:

[0069] Figure 1 is a flow chart of a fault handling method according to an exemplary embodiment;

[0070] Figure 2 A flowchart showing a determination process of a distributed storage cluster entering a maintenance state according to an exemplary embodiment;

[0071] Figure 3 A flowchart of determining whether a distributed storage cluster is restored to a normal state according to an exemplary embodiment;

[0072] Figure 4 A basic flow chart of a cluster automatically entering and exiting a maintenance state in an application embodiment according to an exemplary embodiment;

[0073] Figure 5 is an overall flow chart of a multiple fault processing method according to an exemplary embodiment;

[0074] Figure 6 The present invention is a flow chart of I / O processing of a cluster according to an exemplary embodiment;

[0075] Figure 7 is a structural diagram of a fault handling device according to an exemplary embodiment;

[0076] Figure 8 The figure is a structural diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0077] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. In addition, in the embodiments of the present invention, "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0078] The embodiment of the present invention discloses a fault processing method, which reduces the impact on data access when a distributed storage cluster is in a maintenance mode.

[0079] See also Figure 1 , a flowchart of a fault handling method according to an exemplary embodiment is shown as follows: Figure 1 As shown, including:

[0080] S101: When the distributed storage cluster is in a normal state, determine whether the fault node count is greater than the maximum fault domain; if so, control the distributed storage cluster to enter a maintenance state; wherein the fault node count is the number of nodes in the distributed storage cluster that have blacklist fault tasks;

[0081] In this embodiment, the number of nodes with blacklist fault tasks in the distributed storage cluster is recorded by counting the faulty nodes. The blacklist fault tasks here may include node leaving fault tasks, node hard disk offline fault tasks, etc. The node leaving fault tasks are tasks generated when the node fails due to power outages, network disconnection, abnormal service stop, etc. The node hard disk offline fault tasks are tasks generated when the node fails due to disk unplugging, slow disk, bad disk, etc.

[0082] In a specific implementation, when the distributed storage cluster is in a normal state, the fault node count is monitored in real time, and when the fault node count is greater than the maximum fault domain, the distributed storage cluster is controlled to enter a maintenance state.

[0083] As a feasible implementation method, this embodiment also includes: determining the maximum fault domain according to the number of copies of the distributed storage cluster; wherein the maximum fault domain is the number of copies minus one. In a specific implementation, each data block stored in the distributed storage cluster has N copies and is stored on N different nodes. In this case, each node is a fault domain, that is, the entire distributed storage cluster has N fault domains, N is the number of copies of the distributed storage cluster, and the maximum fault domain of the distributed storage cluster is the number of copies minus one. When the fault node count is greater than the maximum fault domain, the distributed storage cluster will face the risk of losing all copies of certain data blocks. At this time, the distributed storage cluster is controlled to enter the maintenance state.

[0084] S102: When the distributed storage cluster is in the maintenance state, when a data access request is received, determining whether there is information corresponding to a target data block accessed by the data access request in the data loss list; if so, proceeding to S106; if not, proceeding to S103;

[0085] S103: responding to the data access request;

[0086] S104: If the data access request is responded to successfully, return the response information of the data access request;

[0087] S105: If the data access request fails to be responded to, the information corresponding to the target data block is added to the data loss list, and the process proceeds to S106;

[0088] S106: Returning a data access request response failure.

[0089] When the distributed storage cluster is in maintenance state, each node maintains a data loss list in its memory, which is used to maintain the information corresponding to the lost data blocks of the lost data, such as the identification of the lost data blocks. When a data access request sent by an upper-layer application is received, the target data block accessed by the data access request is determined, and it is judged whether the information corresponding to the target data block already exists in the data loss list. If it does, it means that the data of the target data block has been lost, and no further response is required, and a response failure is directly returned. If it does not exist, the data access request is responded to according to the normal response process. If the response is successful, the response information of the data access request is returned normally. If the response fails, it means that the data of the target data block has been lost, and the information corresponding to the target data block is added to the data loss list, and a response failure is returned at the same time.

[0090] It can be seen that the fault handling method provided by the embodiment of the present invention will not affect data access requests for non-lost data blocks when the distributed storage cluster is in maintenance mode, so that the impact on data access is reduced to the data block level, reducing the impact on data access when the distributed storage cluster is in maintenance mode, and at the same time can quickly and accurately respond to data access requests for accessing lost data blocks, thereby improving the response efficiency of the distributed storage cluster in maintenance mode.

[0091] This example describes the process of determining whether a distributed storage cluster enters maintenance state. Figure 2 , according to an exemplary embodiment, a flow chart showing a judgment flow of a distributed storage cluster entering a maintenance state is shown, such as Figure 2 As shown, including:

[0092] S201: When the distributed storage cluster is in the normal state, when a blacklist fault task is detected, determining a first target node generating the blacklist fault task and a task state of the blacklist fault task;

[0093] It is understandable that a distributed storage cluster is a cluster system composed of multiple nodes, which usually needs to have a cluster management mechanism and services. Various active operation and maintenance operations and passive failure events occurring in the cluster need to be notified to all nodes in the cluster for corresponding task processing, so the cluster often uses a message subscription mechanism for task notification. This embodiment adds a task monitoring processor in the cluster to capture tasks occurring in the cluster.

[0094] When the distributed storage cluster is in the normal state, when a preset blacklist fault task is monitored, the first target node that generates the blacklist fault task is determined, and the first target node is regarded as a node that loses data, that is, a faulty node, and the task status of the blacklist fault task is determined at the same time. The task status (status) of each task in the cluster includes four types: generation (init), processing (processing), success (success), and failure (fail), which respectively represent the task just generated stage, the task is being processed stage, the task processing is completed, and the task processing fails.

[0095] S202: If the task status is generated, determine whether there is a fault record corresponding to the first target node in the fault record table. If so, generate a fault record according to the node information of the first target node and the task information of the blacklist fault task and add it to the fault record table. If not, generate a fault record according to the node information of the first target node and the task information of the blacklist fault task and add it to the fault record table, and increase the fault node count.

[0096] In this embodiment, all blacklist fault tasks are recorded in a fault record table. Each fault record may include task information of the blacklist fault task and information of the node that generates the blacklist fault task. The task information may include task type (for example, node leaving fault task, node hard disk offline fault task). The node information of the node leaving fault task may include address information, capacity information, etc., and the node information of the node hard disk offline fault task may include address information, hard disk identification information, etc.

[0097] In the specific implementation, when a blacklist fault task is monitored and its task status is generated, the fault record table is traversed to determine whether there is a fault record corresponding to the first target node in the fault record table. If so, a fault record is generated based on the node information of the first target node and the task information of the blacklist fault task and added to the fault record table. If not, in addition to adding the fault record to the fault record table, the fault node count needs to be increased.

[0098] S203: If the task status is successful, delete the corresponding fault record in the fault record table according to the node information of the first target node and the task information of the blacklist fault task, and determine whether there is a fault record corresponding to the first target node in the fault record table. If not, reduce the fault node count.

[0099] In the specific implementation, when a blacklist fault task is monitored and its task status is successful, it means that the blacklist fault task has been processed and completed, so the corresponding fault record is deleted in the fault record table. When there is no fault record corresponding to the first target node in the fault record table, the replica data allocated to the first target node has been balanced and restored, and the first target node is no longer considered to have lost data, reducing the fault node count.

[0100] In addition, when a blacklist fault task is monitored and its task status is processing or failed, it will not be processed.

[0101] S204: Determine whether the fault node count is greater than the maximum fault domain; if so, control the distributed storage cluster to enter a maintenance state.

[0102] In a specific implementation, when the fault node count is greater than the maximum fault domain, the distributed storage cluster is controlled to enter a maintenance state.

[0103] As an optional implementation, after controlling the distributed storage cluster to enter the maintenance state, it further includes: setting the task status of unfinished tasks in the distributed storage cluster to failure. In a specific implementation, when the distributed storage cluster enters the maintenance state, all unfinished tasks in the cluster are immediately set to failure, and no further processing is performed, so as to avoid further damage to data during the task processing process.

[0104] As an optional implementation, it also includes: when the distributed storage cluster is in the maintenance state, detecting the target task, if the target task is a blacklist fault task, setting the task state of the target task to failure, and generating a fault record based on the information of the node that generated the target task and the task information of the target task and adding it to the fault record table. In a specific implementation, when the distributed storage cluster is in the maintenance state, when it is detected that a blacklist fault task occurs again in the cluster, only the corresponding fault record is added to the fault record table, and each node in the cluster is not allowed to process the blacklist fault task, so as to avoid further failures of the cluster, and directly set the task state of the blacklist fault task to failure.

[0105] As an optional implementation, after detecting the target task, it also includes: if the target task is a task other than a blacklist fault task and a whitelist recovery task, the task status of the target task is set to failure. In a specific implementation, when the distributed storage cluster is in a maintenance state, when tasks other than blacklist fault tasks and whitelist recovery tasks are monitored, the task status is directly set to failure without any processing. When the distributed storage cluster is in a maintenance state, the cluster does not allow active configuration operations and operation and maintenance operations to avoid blocking when accessing lost data.

[0106] As an optional implementation, it also includes: when the distributed storage cluster is in the normal state, when a non-blacklist fault task is detected, it is determined whether the cluster generation needs to be updated; if so, the cluster generation is updated and the fault record table is cleared. In a specific implementation, when the distributed storage cluster is in the normal state, if a data migration task is detected, and a task that needs to update the cluster generation is required, it means that the data of each node has been updated, the data of each node has not been lost, and there is no faulty node, and the fault record table is cleared at this time.

[0107] It can be seen that, in this embodiment, when the distributed storage cluster is in a normal state, the blacklist fault task that may cause the loss of replica data is monitored, the fault node count is increased when the blacklist fault task is generated, and the fault node count is reduced when the processing is successful. The fault node count is used to control whether the cluster enters the maintenance state, thereby improving the self-protection capability of the distributed storage cluster and having strong practicality. At the same time, the fault node count can quickly and effectively reflect the risk of data loss faced by the distributed storage cluster, which is beneficial to the protection of the cluster.

[0108] This example describes the process of determining whether a distributed storage cluster has returned to normal. Figure 3 , according to an exemplary embodiment, a flow chart showing a judgment flow of a distributed storage cluster returning to a normal state is shown, such as Figure 3 As shown, including:

[0109] S301: When the distributed storage cluster is in the maintenance state, when a whitelist recovery task is detected, determining a second target node that generates the whitelist recovery task, and deleting a corresponding fault record in the fault record table according to node information of the second target node and task information of the whitelist recovery task;

[0110] It is understandable that when a distributed storage cluster fails due to node power outage, network disconnection, disk drop, disk failure, etc., the system operation and maintenance personnel will usually resolve and restore the physical node or hard disk failure as soon as possible after discovering the failure. Therefore, the distributed storage cluster in this embodiment has a self-recovery mechanism and strategy.

[0111] In the specific implementation, when the distributed storage cluster is in maintenance status, when a whitelist recovery task is monitored, the second target node for generating the whitelist recovery task is determined, corresponding to the blacklist fault task. The whitelist recovery task at this time includes the node joining the cluster recovery task, the node hard disk insertion recovery task, etc. The node joining the cluster recovery task is the recovery task corresponding to the node leaving the fault task, and the node hard disk insertion recovery task is the recovery task corresponding to the node hard disk offline fault task.

[0112] Furthermore, the corresponding fault record in the fault record table is deleted according to the node information of the second target node and the task information of the whitelist recovery task. That is, if the whitelist recovery task is a node joining cluster recovery task, the fault record corresponding to the node leaving fault task with the same node information as the second target node in the fault record table is deleted; if the whitelist recovery task is a node hard disk offline fault task, the fault record corresponding to the node hard disk offline fault task with the same node information as the second target node in the fault record table is deleted.

[0113] S302: Determine whether there is a fault record corresponding to the second target node in the fault record table; if not, reduce the fault node count;

[0114] In a specific implementation, when there is no fault record corresponding to any second target node in the fault record table, the replica data allocated to the second target node has been balanced and restored, and the second target node is no longer considered to have lost data, thereby reducing the fault node count.

[0115] S303: Determine whether the fault node count is less than or equal to the maximum fault domain; if so, control the distributed storage cluster to enter a normal state.

[0116] In a specific implementation, when the fault node count is less than or equal to the maximum fault domain, it means that all data blocks in the cluster will not lose all their replica data, and the distributed storage cluster is controlled to return to a normal state.

[0117] As an optional implementation, after controlling the distributed storage cluster to enter a normal state, it also includes: setting the fault node count to zero and deleting all fault records in the fault record table. In a specific implementation, during the execution of the whitelist recovery task, all data blocks in the cluster will be rebalanced and restored and placed in their respective locations. After waiting for the task to be completed, it is considered that all copies of the data of all data blocks in the cluster are normal and in normal locations, and the cluster has fully recovered to normal. Therefore, a task to exit the maintenance state is submitted to the cluster, and each node in the cluster modifies the cluster state to normal, and then sets the fault node count to zero, and deletes all fault records in the fault record table. After the cluster exits the maintenance state, it is completely restored to a normal state, and various cluster tasks and various data access requests are processed normally.

[0118] It can be seen that in this embodiment, when the distributed storage cluster is in maintenance status, the whitelist recovery task is listened to to update the faulty node count, and whether the cluster is restored to normal status is controlled by the faulty node count. This can ensure that the cluster can intelligently select and process related cluster tasks in the maintenance status, and can ensure that the system automatically returns to normal when the recovery conditions are met.

[0119] The following describes an application embodiment provided by the present invention. The basic process of the cluster automatically entering and exiting the maintenance state is as shown in the attached figure. Figure 4As shown, the cluster monitors tasks in the normal state, updates the faulty node count through the monitored blacklist fault tasks, and controls the distributed storage cluster to enter the maintenance state when the faulty node count is greater than the maximum fault domain. The cluster monitors tasks in the maintenance state, updates the faulty node count through the monitored whitelist recovery tasks, and controls the distributed storage cluster to enter the normal state when the faulty node count is less than or equal to the maximum fault domain.

[0120] The overall flow chart of the multiple fault handling method is shown in the attached Figure 5 As shown, the specific implementation process is as follows: task monitoring, determine whether the cluster is in maintenance state, if the cluster is in normal state, then determine whether the monitored task is a blacklist fault task, if it is a blacklist fault task, then update the fault record, check the fault record, determine whether the fault node count is greater than the maximum fault domain, if it is greater, the cluster enters the maintenance state, if it is less than or equal to the maximum fault domain, continue to monitor the task, if it is not a blacklist fault task, then determine whether to update the cluster generation, if so, clear the fault record, if not, continue to monitor the task. If the cluster is in maintenance state, then determine whether the monitored task is a whitelist recovery task, if it is a whitelist recovery task, then analyze the whitelist recovery task, determine whether it meets the conditions for exiting the maintenance state, if so, process the whitelist recovery task, determine whether the task is successfully processed, if successful, exit the maintenance state, if failed, maintain the maintenance state, if not, maintain the maintenance state, if it is not a whitelist recovery task, then determine whether the monitored task is a blacklist fault task, if it is a blacklist fault task, terminate the task execution, if it is not a blacklist fault task, then update the fault record and maintain the maintenance state.

[0121] A task monitoring module is set up in the distributed storage system cluster to monitor all tasks generated in the cluster. At the same time, a fault record list of fault blacklist tasks is maintained in the database based on the fault experience of the distributed storage system. black =[fault1,……,fault i ], fault i Indicates the i-th fault record recorded. In addition, a fault node counter count is set with an initial value of 0 to record the number of nodes (fault domains) where the fault occurs. Blacklist fault tasks include two types: node leave and disk leave , where node leave Indicates that the node leaves the fault task. When a node power failure, node network disconnection, node service abnormal stop and other failures occur, a node leave Related tasks, node leave Task record into list blackIt is necessary to record the node address information node_addr and the node capacity information space; disk leave Indicates the task caused by the hard disk offline failure. When a node has a disk unplugged, slow disk, or bad disk, the hard disk will be offline. The cluster will generate a disk leave Related tasks, disk leave Task record into list black The node address information node_addr and the disk disk_uuid information need to be recorded. The status of each task in the cluster has several statuses [init, processing, success, fail], which respectively represent the task just generated, the task is being processed, the task processing is completed, and the task processing fails. The task listener is used to monitor the fault-related tasks in the cluster and the changes in the status of the faulty task. When the mth (id number is m) task task of the cluster is monitored m If it is a fault task and the status is init, first check whether the node_addr information of the recorded fault task is consistent with the current fault task, that is, check whether the node has had a fault before and has been recorded. If the list black Memory and tasks m For the same node fault information, only the latest fault task is recorded in the list black If it does not exist and task m Same node, except the latest failed task is recorded in the list black In addition, the value of the faulty node counter count is incremented by 1, and then it is determined whether count is greater than or equal to the minimum number of copies of the smallest data block in the cluster, copies_min. If it is satisfied, it means that the number of superimposed failures in the cluster has exceeded the maximum tolerable failure domain, and a task is submitted to the cluster to put the cluster into maintenance mode. If the status of a faulty task is monitored to change to success, it means that the task has been processed and completed. At this time, the replica data allocated to the node has been balanced and restored, and the node is no longer considered to have lost data. Therefore, according to the list black Find the faulty task related to the node and clear it, and reduce the value of the faulty node counter count by 1.

[0122] When the cluster is in maintenance state, all unfinished tasks in the cluster will be immediately marked as failed and no further processing will be performed. m First, determine whether the task type is a blacklist fault task, that is, whether it is a node leave or disk leaveIf yes, then the task is also recorded in the fault record list black At the same time, the task status is set to failed, and each node no longer processes the task. m If the task is not a blacklist fault task or a whitelist fault recovery task, the task status is directly set to failed without any processing. m For whitelist fault recovery tasks, it is necessary to determine whether the conditions for exiting maintenance mode are met.

[0123] The I / O processing flow of the cluster is as follows: Figure 6 As shown in Figure 1, when an input / output request is received, the data block to be accessed is calculated to determine whether the cluster is in maintenance state. If the cluster is in maintenance state, the data loss list Loss is determined. list Whether the data block is included in the data block. If it is included, the request fails and an error message is returned. If the cluster is in normal state or the data is lost, the Loss list If the data block is not included in the request, the normal request processing is performed to determine whether the read and write is successful. If successful, success is returned. If failed, the failure reason is analyzed to determine whether the accessed data block exists. If not, failure is returned. If it exists, it is determined whether the cluster is in maintenance state. If the cluster is in maintenance state, the data block is added to the data loss list Loss list If the cluster is in normal state, it returns failure.

[0124] In this embodiment, blacklist fault tasks include two types: node leave and disk leave , the corresponding whitelist fault recovery tasks are: node in and disk in , node in Indicates the recovery task of the node joining the cluster. When the node is powered on again, the node network is restored to normal, and the node service is restored to normal, a node in Related tasks: disk in Indicates the task of inserting a hard disk. When an old disk is reinserted on a node, the hard disk will be online. The cluster will generate a disk in Related tasks. When the mth task (id number is m) of the cluster is monitored m If it is a fault recovery whitelist task, if the recovery task type is node in , then traverse the fault task list list black If a fault task is found to be of type node leave And node_addr, space and other information are the same as node inIf the information of the nodes in the same table is the same, the node that is online this time is considered to be the node that was offline before, and it is determined that the failure of the node has been restored. Similarly, if the recovery task type is disk in , traverse the fault task list list black If the type of a faulty task found in the record is disk leave And node_addr, disk_uuid and other information and disk in If the information of the hard disks in the middle node is equal, it is considered that the hard disk inserted this time is the hard disk that was previously offline, and it is determined that the disk failure of the node has been restored. If it is confirmed to be one of the above two situations, delete the list black If the task failure record in list black If there is no fault record corresponding to the node with the address node_addr, the value of the fault node counter count is subtracted by 1, and then it is determined whether the count at this time is less than the minimum number of copies of the data block in the minimum cluster, copies_min. If the condition is met, it is considered that all objects in the cluster will not lose all their copy data. Therefore, even if the cluster is in maintenance mode at this time, each node is still allowed to process the whitelist fault recovery task. During the execution of this task, all object data blocks in the system will be rebalanced and restored and placed in their respective locations. Waiting for the task to be completed, it is considered that all copies of the data of all objects in the cluster are normal and in normal locations, and the cluster is fully restored to normal. Therefore, a task to exit the maintenance mode is submitted to the cluster, and each node in the cluster changes the cluster status to normal, and then sets the fault node counter maintained in the cluster to 0, and deletes the fault task list maintained in the cluster. black After the cluster exits maintenance mode, it completely returns to normal state, processes various cluster tasks normally, and responds to various I / Os normally.

[0125] A fault handling device provided in an embodiment of the present invention is introduced below. The fault handling device described below and the fault handling method described above can be referenced to each other.

[0126] See also Figure 7 , according to an exemplary embodiment, a structural diagram of a fault handling device is shown, such as Figure 7 As shown, including:

[0127] The first control module 701 is used to determine whether the fault node count is greater than the maximum fault domain when the distributed storage cluster is in a normal state; if so, control the distributed storage cluster to enter a maintenance state; wherein the fault node count is the number of nodes in the distributed storage cluster that have blacklist fault tasks;

[0128] The judgment module 702 is used to judge whether there is information corresponding to the target data block accessed by the data access request in the data loss list when the distributed storage cluster is in the maintenance state; if so, start the work flow of the first return module 704; if not, start the work flow of the response module 703;

[0129] The response module 703 is used to respond to the data access request; if the data access request is successfully responded to, the workflow of the second return module 705 is started; if the data access request is unsuccessful, the information corresponding to the target data block is added to the data loss list, and the workflow of the first return module 704 is started;

[0130] A first returning module 704, used to return a data access request response failure;

[0131] The second returning module 705 is used to return the response information of the data access request.

[0132] The fault handling device provided by the present invention, when the distributed storage cluster is in maintenance state, when receiving a data access request, determines the target data block accessed by the data access request, if the information corresponding to the target data block has been recorded in the data loss list, then no longer responds to the data access request, and directly returns a response failure, if the information corresponding to the target data block is not recorded in the data loss list, then responds according to the normal response process, if the access fails, then the information corresponding to the target data block is recorded in the data loss list. It can be seen that the fault handling device provided by the present invention, when the distributed storage cluster is in maintenance state, will not affect the data access request for the non-lost data block, so that the impact on data access is reduced to the data block level, reducing the impact on data access when the distributed storage cluster is in maintenance mode, and at the same time can quickly and accurately respond to the data access request for accessing the lost data block, improving the response efficiency of the distributed storage cluster in maintenance mode.

[0133] Based on the above embodiment, as a preferred implementation, it also includes:

[0134] A first determination module is used to determine, when the distributed storage cluster is in the normal state and a blacklist fault task is detected, a first target node generating the blacklist fault task and a task state of the blacklist fault task;

[0135] An adding module is used to determine whether there is a fault record corresponding to the first target node in the fault record table when the task status is generated. If so, a fault record is generated according to the node information of the first target node and the task information of the blacklist fault task and added to the fault record table. If not, a fault record is generated according to the node information of the first target node and the task information of the blacklist fault task and added to the fault record table, and the fault node count is increased;

[0136] The first reduction module is used to delete the corresponding fault record in the fault record table according to the node information of the first target node and the task information of the blacklist fault task when the task status is successful, and determine whether there is a fault record corresponding to the first target node in the fault record table. If not, reduce the fault node count.

[0137] Based on the above embodiment, as a preferred implementation, it also includes:

[0138] The clearing module is used to determine whether the cluster generation needs to be updated when a non-blacklist fault task is detected when the distributed storage cluster is in the normal state; if so, update the cluster generation and clear the fault record table.

[0139] Based on the above embodiment, as a preferred implementation mode, the blacklist fault task includes a node leaving fault task and / or a node hard disk offline fault task.

[0140] Based on the above embodiment, as a preferred implementation, it also includes:

[0141] The first setting module is configured to set the task status of unfinished tasks in the distributed storage cluster to failure after controlling the distributed storage cluster to enter a maintenance state.

[0142] Based on the above embodiment, as a preferred implementation, it also includes:

[0143] The second setting module is used to detect the target task when the distributed storage cluster is in the maintenance state. If the target task is a blacklist fault task, the task state of the target task is set to failure, and a fault record is generated according to the information of the node generating the target task and the task information of the target task and added to the fault record table.

[0144] Based on the above embodiment, as a preferred implementation, it also includes:

[0145] A second determination module is used to determine a second target node that generates the whitelist recovery task when the target task is a whitelist recovery task, and delete the corresponding fault record in the fault record table according to the node information of the second target node and the task information of the whitelist recovery task;

[0146] A second reduction module is used to determine whether there is a fault record corresponding to the second target node in the fault record table; if not, reduce the fault node count;

[0147] The second control module is used to determine whether the fault node count is less than or equal to the maximum fault domain; if so, control the distributed storage cluster to enter a normal state.

[0148] Based on the above embodiment, as a preferred implementation, it also includes:

[0149] The deletion module is used to set the fault node count to zero and delete all fault records in the fault record table after controlling the distributed storage cluster to enter a normal state.

[0150] Based on the above embodiment, as a preferred implementation mode, the whitelist recovery task includes a node joining cluster recovery task and / or a node hard disk insertion recovery task.

[0151] Based on the above embodiment, as a preferred implementation, it also includes:

[0152] The third setting module is used to set the task status of the target task to failure when the target task is other tasks except the blacklist fault task and the whitelist recovery task.

[0153] Based on the above embodiment, as a preferred implementation, it also includes:

[0154] The third determination module is used to determine the maximum fault domain according to the number of replicas of the distributed storage cluster; wherein the maximum fault domain is the number of replicas minus one.

[0155] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0156] Based on the hardware implementation of the above program modules and in order to implement the method of the embodiment of the present invention, the embodiment of the present invention further provides an electronic device, Figure 8 FIG. 1 is a structural diagram of an electronic device according to an exemplary embodiment. Figure 8 As shown, the electronic equipment includes:

[0157] Communication interface 1, capable of exchanging information with other devices such as network devices;

[0158] The processor 2 is connected to the communication interface 1 to implement information exchange with other devices and is used to execute the fault handling method provided by one or more technical solutions when running a computer program. The computer program is stored in the memory 3.

[0159] Of course, in actual application, the various components in the electronic device are coupled together through the bus system 4. It can be understood that the bus system 4 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 4 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Figure 8 Various buses are labeled as bus system 4.

[0160] The memory 3 in the embodiment of the present invention is used to store various types of data to support the operation of the electronic device. Examples of such data include: any computer program used to operate on the electronic device.

[0161] It can be understood that the memory 3 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAMbus random access memory (DRRAM, Direct Rambus Random Access Memory).The memory 3 described in the embodiments of the present invention is intended to include but is not limited to these and any other suitable types of memories.

[0162] The method disclosed in the above embodiment of the present invention can be applied to the processor 2, or implemented by the processor 2. The processor 2 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 2 or the instruction in the form of software. The above processor 2 can be a general-purpose processor, a DSP, or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 2 can implement or execute the methods, steps and logic block diagrams disclosed in the embodiment of the present invention. The general-purpose processor can be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present invention, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in the memory 3. The processor 2 reads the program in the memory 3 and completes the steps of the above method in combination with its hardware.

[0163] When the processor 2 executes the program, the corresponding processes in the various methods of the embodiments of the present invention are implemented, which will not be described here for the sake of brevity.

[0164] In an exemplary embodiment, the embodiment of the present invention further provides a non-volatile storage medium storing a computer program, which can be executed by the processor 2 to complete the steps of the aforementioned method.

[0165] In an exemplary embodiment, the present invention further provides a computer program product, including a computer program, which is executed by the processor 2 to complete the steps of the aforementioned method.

[0166] A person of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to computer program instructions, and the aforementioned computer program can be stored in a non-volatile storage medium. When the computer program is executed, it executes the steps of the above method embodiments. Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a non-volatile storage medium. Based on this understanding, the technical solution of the embodiment of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a non-volatile storage medium and includes a number of instructions for an electronic device (which can be a personal computer, a server, a network device, etc.) to execute all or part of the methods described in each embodiment of the present invention.

[0167] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A method for troubleshooting, It is characterized in that include: When the distributed storage cluster is in a normal state, determine whether the fault node count is greater than the maximum fault domain; If so, the distributed storage cluster is controlled to enter a maintenance state; wherein the fault node count is the number of nodes in the distributed storage cluster that have blacklist fault tasks; When the distributed storage cluster is in the maintenance state, upon receiving a data access request, determining whether information corresponding to a target data block accessed by the data access request exists in a data loss list; If it exists, the data access request response failure is directly returned; If it does not exist, respond to the data access request; if the data access request is successfully responded to, return the response information of the data access request; if the data access request fails to respond to, add the information corresponding to the target data block to the data loss list, and return the data access request response failure; Among them, it also includes: When the distributed storage cluster is in the normal state, when a blacklist fault task is detected, determining a first target node generating the blacklist fault task and a task state of the blacklist fault task; If the task status is generated, determine whether there is a fault record corresponding to the first target node in the fault record table; if so, generate a fault record according to the node information of the first target node and the task information of the blacklist fault task and add it to the fault record table; if not, generate a fault record according to the node information of the first target node and the task information of the blacklist fault task and add it to the fault record table, and increase the fault node count; If the task status is successful, deleting the corresponding fault record in the fault record table according to the node information of the first target node and the task information of the blacklist fault task, and judging whether there is a fault record corresponding to the first target node in the fault record table, if not, reducing the fault node count; Among them, it also includes: When the distributed storage cluster is in the maintenance state, detecting a target task; If the target task is a blacklist fault task, the task status of the target task is set to failure, and a fault record is generated according to the information of the node generating the target task and the task information of the target task and added to the fault record table; If the target task is a whitelist recovery task, determine the second target node that generates the whitelist recovery task, and delete the corresponding fault record in the fault record table according to the node information of the second target node and the task information of the whitelist recovery task; determine whether there is a fault record corresponding to the second target node in the fault record table; if not, reduce the fault node count; determine whether the fault node count is less than or equal to the maximum fault domain; if so, control the distributed storage cluster to enter a normal state.

2. According to the fault handling method of claim 1, It is characterized in that Also includes: When the distributed storage cluster is in the normal state, when a non-blacklist fault task is detected, determining whether it is necessary to update the cluster generation number; If yes, the cluster generation number is updated and the fault record table is cleared.

3. According to the fault handling method of claim 1, It is characterized in that The blacklist fault tasks include node leaving fault tasks and / or node hard disk offline fault tasks.

4. According to the fault handling method of claim 1, It is characterized in that After controlling the distributed storage cluster to enter the maintenance state, the method further includes: The task status of unfinished tasks in the distributed storage cluster is set to failure.

5. According to the fault handling method of claim 1, It is characterized in that After controlling the distributed storage cluster to enter a normal state, the method further includes: The fault node count is set to zero, and all fault records in the fault record table are deleted.

6. According to the fault handling method of claim 1, It is characterized in that The whitelist recovery task includes a node joining cluster recovery task and / or a node hard disk insertion recovery task.

7. According to the fault handling method of claim 1, It is characterized in that After detecting the target task, it also includes: If the target task is a task other than the blacklist fault task and the whitelist recovery task, the task status of the target task is set to failure.

8. According to the fault handling method of claim 1, It is characterized in that Also includes: The maximum fault domain is determined according to the number of replicas of the distributed storage cluster; wherein the maximum fault domain is the number of replicas minus one.

9. A fault handling device, It is characterized in that include: A first control module, used to determine whether the fault node count is greater than the maximum fault domain when the distributed storage cluster is in a normal state; If so, the distributed storage cluster is controlled to enter a maintenance state; wherein the fault node count is the number of nodes in the distributed storage cluster that have blacklist fault tasks; A judgment module, used for, when the distributed storage cluster is in the maintenance state, judging whether there is information corresponding to the target data block accessed by the data access request in the data loss list when receiving a data access request; if so, starting the work flow of the first return module; if not, starting the work flow of the response module; A response module, used to respond to the data access request; if the data access request is successfully responded to, the workflow of the second return module is started; if the data access request is unsuccessful, the information corresponding to the target data block is added to the data loss list, and the workflow of the first return module is started; A first return module, used to return a data access request response failure; A second returning module, used to return response information of the data access request; Among them, it also includes: A first determination module is used to determine, when the distributed storage cluster is in the normal state and a blacklist fault task is detected, a first target node generating the blacklist fault task and a task state of the blacklist fault task; An adding module is used to determine whether there is a fault record corresponding to the first target node in the fault record table when the task status is generated. If so, a fault record is generated according to the node information of the first target node and the task information of the blacklist fault task and added to the fault record table. If not, a fault record is generated according to the node information of the first target node and the task information of the blacklist fault task and added to the fault record table, and the fault node count is increased; A first reduction module is used for deleting the corresponding fault record in the fault record table according to the node information of the first target node and the task information of the blacklist fault task when the task status is successful, and judging whether there is a fault record corresponding to the first target node in the fault record table, and if not, reducing the fault node count; Among them, it also includes: A detection module, used for detecting a target task when the distributed storage cluster is in the maintenance state; A second setting module is used for setting the task status of the target task to failure when the target task is a blacklist fault task, and generating a fault record according to the information of the node generating the target task and the task information of the target task and adding it to the fault record table; A second determination module is used to determine a second target node that generates the whitelist recovery task when the target task is a whitelist recovery task, and delete the corresponding fault record in the fault record table according to the node information of the second target node and the task information of the whitelist recovery task; A second reduction module is used to determine whether there is a fault record corresponding to the second target node in the fault record table; if not, reduce the fault node count; The second control module is used to determine whether the fault node count is less than or equal to the maximum fault domain; if so, control the distributed storage cluster to enter a normal state.

10. An electronic device, It is characterized in that include: Memory for storing computer programs; A processor, configured to implement the steps of the fault handling method according to any one of claims 1 to 8 when executing the computer program.

11. A non-volatile storage medium, It is characterized in that The non-volatile storage medium stores a computer program, and when the computer program is executed, the steps of the fault handling method according to any one of claims 1 to 8 are implemented.

12. A computer program product, It is characterized in that It comprises a computer program, which implements the steps of the fault handling method according to any one of claims 1 to 8 when being executed.