Cluster fault diagnosis method, device, equipment and storage medium

Through the cluster fault diagnosis method, the problem of the inability to quickly and accurately check and repair abnormal equipment and storage modules in the prior art is solved, and the rapid positioning and accurate diagnosis of abnormal equipment and storage modules in the business system is achieved, which improves the accuracy of fault diagnosis.

CN115914016BActive Publication Date: 2025-04-18PING AN BANK CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211371071.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-03
Publication Date
2025-04-18
Estimated Expiration
2042-11-03

AI Technical Summary

Technical Problem

The prior art cannot quickly and accurately check and repair abnormal devices and storage modules in the business system, resulting in program operation errors and abnormal problems.

Method used

A cluster fault diagnosis method is provided. By responding to the device fault diagnosis request, a target device cluster is obtained, a cluster device is driven to detect and interact with the distributed storage module, a detection feedback information is generated, a target storage module and associated target cluster equipment are located, and data interaction with the candidate storage module is performed to obtain fault diagnosis results.

Benefits of technology

It quickly locates the health status of each cluster device and distributed storage module in the target device cluster, and improves the accuracy of cluster fault diagnosis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115914016B_ABST
    Figure CN115914016B_ABST
Patent Text Reader

Abstract

The present application provides a cluster fault diagnosis method, apparatus, device and storage medium. The method in the present application includes: responding to a device fault diagnosis request, obtaining a target device cluster corresponding to the cluster fault diagnosis request; driving each cluster device in the target device cluster to perform detection interaction with an associated distributed storage module, and generating detection feedback information; locating a target storage module in the target device cluster and a target cluster device associated with the target storage module according to storage load data and interaction record data in the detection feedback information; obtaining a candidate storage module associated with the target storage module, driving the target cluster device and the candidate storage module to perform data interaction, and obtaining a cluster fault diagnosis result. The method can realize rapid positioning of the health status of each cluster device in the target device cluster and the associated distributed storage module, and improve the accuracy of cluster fault diagnosis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of Internet of Things, and in particular to a cluster fault diagnosis method, apparatus, device and storage medium. Background Art

[0002] At present, with the development of digital technology, many enterprises need to deploy various business systems to execute various businesses. There are various subsystems in the existing financial system. Different subsystems require multiple physical servers or virtual servers to form a server cluster to run together to execute the functions of the subsystem. The back-end server relies on various distributed storage devices as the storage medium for data files. However, in the scenarios of large-scale release, application up and down, and computer room maintenance, due to the lack of an effective heartbeat mechanism, the connection between these servers and the distributed storage devices is healthy. If there is a problem with the access between individual servers and the connected storage media, such potential problems will directly lead to program running errors and abnormal problems. The existing equipment detection method relies on manual inspection one by one, and cannot quickly and accurately repair abnormal equipment and storage modules. Summary of the invention

[0003] The embodiments of the present application provide a cluster fault diagnosis method, apparatus, device and storage medium, aiming to solve the technical problem that the prior art cannot effectively check and repair abnormal devices and corresponding storage modules in a business system.

[0004] In one aspect, an embodiment of the present application provides a cluster fault diagnosis method, the cluster fault diagnosis method comprising the following steps:

[0005] In response to the device fault diagnosis request, obtain a target device cluster corresponding to the cluster fault diagnosis request;

[0006] Driving each cluster device in the target device cluster to perform detection interaction with the associated distributed storage module to generate detection feedback information;

[0007] Locating a target storage module in the target device cluster and a target cluster device associated with the target storage module according to the storage load data and the interaction record data in the detection feedback information;

[0008] A candidate storage module associated with the target storage module is obtained, and a target cluster device and the candidate storage module are driven to perform data interaction to obtain a cluster fault diagnosis result.

[0009] In a possible implementation of the present application, locating a target storage module in the target device cluster and a target cluster device associated with the target storage module according to the storage load data and the interaction record data in the detection feedback information includes:

[0010] Acquire the storage device type of the distributed storage module and the service type of the cluster device, and query the preset load threshold and preset interaction threshold corresponding to the storage device type and the service type;

[0011] Comparing the stored load data in the detection feedback information with the preset load threshold, and comparing the interaction record data with the preset interaction threshold;

[0012] If the storage load data is greater than the preset load threshold, and / or the interaction record data is less than the preset interaction threshold, the distributed storage module is determined to be a target storage module, and a target cluster device corresponding to the target storage module is obtained.

[0013] In a possible implementation of the present application, the step of obtaining a candidate storage module associated with the target storage module, driving a target cluster device and the candidate storage module to perform data interaction, and obtaining a cluster fault diagnosis result includes:

[0014] Read the service type and preset load threshold of the target cluster device corresponding to the target storage module;

[0015] Querying a storage database to match candidate storage modules associated with the target storage module according to the service type and the preset load threshold;

[0016] The business data of the target cluster device is acquired, and the business data is synchronized to the candidate storage module for data interaction to obtain a cluster fault diagnosis result.

[0017] In a possible implementation of the present application, the acquiring the service data of the target cluster device, synchronizing the service data to the candidate storage module for data interaction, and obtaining the cluster fault diagnosis result includes:

[0018] Acquire the service data of the target cluster device, synchronize the service data to the candidate storage module, and obtain a data synchronization result;

[0019] The running status of the candidate storage module is obtained, the device connection status of the target cluster device and the candidate storage module is determined according to the data synchronization result and the running status, and a cluster fault diagnosis result corresponding to the device connection status is output.

[0020] In a possible implementation of the present application, the responding to the device fault diagnosis request and obtaining the target device cluster corresponding to the cluster fault diagnosis request includes:

[0021] In response to the device fault diagnosis request, obtaining device information carried in the device fault diagnosis request, the device information including at least one of an application identifier, device environment information, device room information, and a storage space identifier;

[0022] A preset content management database is accessed, and a target device cluster associated with the device information in the content management database is acquired according to the application identifier, the device environment information, the device room information and the storage space identifier.

[0023] In a possible implementation of the present application, after obtaining the candidate storage module associated with the target storage module, driving the target cluster device and the candidate storage module to perform data interaction, and obtaining the cluster fault diagnosis result, the method further includes:

[0024] Summarize each target storage module in the target device cluster and detection feedback information of the target storage module;

[0025] A fault reminder message of the target storage module is generated according to the storage device type, the service type and the detection feedback information of the target storage module, and the fault reminder message is output.

[0026] In a possible implementation of the present application, the step of driving each cluster device in the target device cluster to perform detection interaction with an associated distributed storage module to generate detection feedback information includes:

[0027] Sending a device detection instruction to each cluster device in the target device cluster, driving the cluster device to perform detection interaction with the distributed storage module;

[0028] Acquire storage feedback information of the distributed storage module and device feedback information of the cluster device;

[0029] The storage feedback information and the device feedback information are aggregated to generate detection feedback information of the distributed storage module.

[0030] On the other hand, the present application provides a cluster fault diagnosis device, the cluster fault diagnosis device comprising:

[0031] An instruction acquisition module is configured to respond to a device fault diagnosis request and acquire a target device cluster corresponding to the cluster fault diagnosis request;

[0032] A device feedback module is configured to drive each cluster device in the target device cluster to perform detection interaction with the associated distributed storage module to generate detection feedback information;

[0033] A connection detection module, configured to locate a target storage module in the target device cluster and a target cluster device associated with the target storage module according to storage load data and interaction record data in the detection feedback information;

[0034] The cluster diagnosis module is configured to obtain a candidate storage module associated with the target storage module, drive the target cluster device and the candidate storage module to perform data interaction, and obtain a cluster fault diagnosis result.

[0035] On the other hand, the present application also provides a cluster fault diagnosis device, the cluster fault diagnosis device comprising:

[0036] one or more processors;

[0037] Memory; and

[0038] One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the processor to implement the cluster fault diagnosis method.

[0039] On the other hand, the present application further provides a computer-readable storage medium on which a computer program is stored. The computer program is loaded by a processor to execute the steps in the cluster fault diagnosis method.

[0040] In this application, by responding to a device fault diagnosis request, the target device cluster corresponding to the cluster fault diagnosis request is obtained; each cluster device in the target device cluster is driven to perform detection interaction with the associated distributed storage module to generate detection feedback information; the target storage module in the target device cluster and the target cluster device associated with the target storage module are located according to the storage load data and interaction record data in the detection feedback information; the candidate storage module associated with the target storage module is obtained, and the target cluster device and the candidate storage module are driven to perform data interaction to obtain the cluster fault diagnosis result. The health status of each cluster device in the target device cluster and the associated distributed storage module is quickly located, and the accuracy of cluster fault diagnosis is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0042] Figure 1 A schematic diagram of a scenario of a cluster fault diagnosis method according to an embodiment of the present application;

[0043] Figure 2 A schematic diagram of a flow chart of an embodiment of a cluster fault diagnosis method in an embodiment of the present application;

[0044] Figure 3 A schematic diagram of a flow chart of an embodiment of locating a target storage module in a cluster fault diagnosis method provided in an embodiment of the present application;

[0045] Figure 4 A schematic diagram of a flow chart of an embodiment of performing fault diagnosis on a target cluster device in a cluster fault diagnosis method provided in an embodiment of the present application;

[0046] Figure 5 A schematic diagram of the structure of an embodiment of a cluster fault diagnosis device provided in an embodiment of the present application;

[0047] Figure 6 A schematic diagram of the structure of an embodiment of a cluster fault diagnosis device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0049] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, which are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0050] In this application, the word "exemplary" is used to mean "serving as an example, illustration, or illustration." Any embodiment described in this application as "exemplary" is not necessarily to be construed as being preferred or advantageous over other embodiments. The following description is given to enable any person skilled in the art to implement and use the invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the invention can be implemented without using these specific details. In other instances, well-known structures and processes are not elaborated in detail to avoid obscuring the description of the invention with unnecessary details. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in this application.

[0051] At present, with the development of digital technology, many enterprises need to deploy various business systems to execute various businesses. There are various subsystems in the existing financial system. Different subsystems require multiple physical servers or virtual servers to form a server cluster to run together to execute the functions of the subsystem. The back-end server relies on various distributed storage devices as the storage medium for data files. However, in the scenarios of large-scale release, application up and down, and computer room maintenance, due to the lack of an effective heartbeat mechanism, the connection between these servers and the distributed storage devices is healthy. If there is a problem with the access between individual servers and the connected storage media, such potential problems will directly lead to program running errors and abnormal problems. The existing equipment detection method relies on manual inspection one by one, and cannot quickly and accurately repair abnormal equipment and storage modules.

[0052] Based on this, the present application proposes a cluster fault diagnosis method, apparatus, device and computer-readable storage medium to solve the technical problem in the prior art that abnormal devices and corresponding storage modules in the business system cannot be effectively inspected and repaired.

[0053] The cluster fault diagnosis method in the embodiment of the present invention is applied to a cluster fault diagnosis device, and the cluster fault diagnosis device is arranged in the cluster fault diagnosis equipment. The cluster fault diagnosis equipment is provided with one or more processors, a memory, and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the cluster fault diagnosis method; wherein the cluster fault diagnosis equipment can be an intelligent terminal, such as a mobile phone, a tablet computer, a smart TV, a network device, and a smart computer; optionally, the cluster fault diagnosis equipment can also be a service cluster composed of one device or multiple devices.

[0054] like Figure 1 As shown, Figure 1The schematic diagram of the cluster fault diagnosis method of the embodiment of the present application is shown in the following figure. The cluster fault diagnosis scenario in the embodiment of the present invention includes a cluster fault diagnosis device 100 (a cluster fault diagnosis device is integrated in the cluster fault diagnosis device 100), a plurality of cluster devices 200, and a storage module 300 connected to the cluster device data. A computer-readable storage medium corresponding to the cluster fault diagnosis method is running in the cluster fault diagnosis device 100 to execute the steps of the cluster fault diagnosis method. The cluster device 200 can be a virtual server or a physical server, and the storage module 300 is a distributed storage module.

[0055] Understandably, Figure 1 The cluster fault diagnosis equipment in the cluster fault diagnosis method scenario shown, or the devices included in the cluster fault diagnosis equipment, does not constitute a limitation on the embodiments of the present invention, that is, the number of devices and types of devices of the cluster fault diagnosis equipment included in the cluster fault diagnosis method scenario, or the number of devices and types of devices included in each device, do not affect the overall implementation of the technical solution in the embodiments of the present invention, and can all be regarded as equivalent replacements or derivatives of the technical solution claimed to be protected in the embodiments of the present invention.

[0056] The cluster fault diagnosis device 100 in the embodiment of the present invention is mainly used for: responding to a device fault diagnosis request, obtaining a target device cluster corresponding to the cluster fault diagnosis request; driving each cluster device in the target device cluster to perform detection interaction with an associated distributed storage module, and generating detection feedback information; locating a target storage module in the target device cluster and a target cluster device associated with the target storage module according to storage load data and interaction record data in the detection feedback information; obtaining a candidate storage module associated with the target storage module, driving the target cluster device and the candidate storage module to perform data interaction, and obtaining a cluster fault diagnosis result.

[0057] The cluster fault diagnosis device 100 in the embodiment of the present invention can be an independent cluster fault diagnosis device, such as a smart terminal such as a mobile phone, a tablet computer, a smart TV, a network device, a device and a smart computer, or it can be a cluster fault diagnosis network or a cluster fault diagnosis cluster composed of multiple cluster fault diagnosis devices.

[0058] The embodiments of the present application provide a cluster fault diagnosis method, apparatus, device, and computer-readable storage medium, which are described in detail below.

[0059] It can be understood by those skilled in the art that Figure 1 The application environment shown in is only one of the application scenarios related to the present application solution and does not constitute a limitation on the application scenario of the present application solution. Other application environments may also include Figure 1More or fewer cluster fault diagnosis devices, or cluster fault diagnosis network connection relationships shown, such as Figure 1 Only one cluster fault diagnosis device is shown. It can be understood that the scenario of the cluster fault diagnosis method can also include one or more cluster fault diagnosis devices, which is not specifically limited here. The cluster fault diagnosis device 100 can also include a memory for storing cluster device information and other data.

[0060] It should be noted that Figure 1 The scenario diagram of the cluster fault diagnosis method shown is only an example. The scenario of the cluster fault diagnosis method described in the embodiment of the present invention is to more clearly illustrate the technical solution of the embodiment of the present invention, and does not constitute a limitation on the technical solution provided by the embodiment of the present invention.

[0061] Based on the scenario of the above cluster fault diagnosis method, various embodiments of the cluster fault diagnosis method disclosed in the present invention are proposed.

[0062] like Figure 2 As shown, Figure 2 This is a flow chart of an embodiment of a cluster fault diagnosis method in an embodiment of the present application. The cluster fault diagnosis method includes the following steps 201 to 204:

[0063] 201. Respond to a device fault diagnosis request and obtain a target device cluster corresponding to the cluster fault diagnosis request;

[0064] The cluster fault diagnosis method in this embodiment is applied to cluster fault diagnosis equipment. The type and number of cluster fault diagnosis equipment are not specifically limited. That is, the cluster fault diagnosis equipment can be one or more intelligent terminals or devices. In a specific embodiment, the cluster fault diagnosis equipment is an intelligent computer.

[0065] The cluster fault diagnosis device is configured to determine the target device cluster to be diagnosed based on the multi-dimensional device information, and perform fault diagnosis on the cluster devices in the target device cluster and the storage modules connected to the cluster devices, thereby obtaining the cluster fault diagnosis result of the target device cluster. The cluster device may be a server or other intelligent device used to support the operation of the business system; the storage module may be a distributed storage device such as Ceph or Sftp that is connected to the specified cluster device.

[0066] Specifically, the cluster fault diagnosis device receives a device fault diagnosis request during operation. The device fault diagnosis request is an operation instruction requesting the cluster fault diagnosis device to perform fault diagnosis on the cluster devices and storage modules in the target cluster. The triggering method of the device fault diagnosis request is not specifically limited here, that is, the device fault diagnosis request can be actively triggered by the user, for example, the user is an operation and maintenance personnel, who inputs the device information of the target device cluster to be detected into the cluster fault diagnosis device, and actively triggers the device fault diagnosis request; in addition, the device fault diagnosis request can also be automatically triggered by the cluster fault diagnosis device, for example, the cluster fault diagnosis device pre-sets a timed cluster diagnosis process, and automatically triggers the device fault diagnosis request for the target device cluster within a preset time period.

[0067] Specifically, after obtaining the device fault diagnosis request, the cluster fault diagnosis device obtains the device information carried in the device fault diagnosis request, wherein the device information is a query instruction for determining the target device in multiple dimensions, and optionally, the device information includes at least one or more of an application identifier, device environment information, device room information, and a storage space identifier.

[0068] After obtaining the information of each device, the cluster fault contention device accesses the preset content management database, inputs the application identifier, device environment information, device room information, storage space identifier and other information carried by the device information, and queries the content management database for each cluster device associated with the device information, thereby obtaining the target device cluster associated with the device information in the content management database.

[0069] 202. Drive each cluster device in the target device cluster to perform detection interaction with the associated distributed storage module to generate detection feedback information;

[0070] After acquiring the target device cluster corresponding to the device fault diagnosis request, the cluster fault diagnosis device further drives the distributed storage modules associated with each cluster device in the target device cluster to perform detection interaction and generate detection feedback information.

[0071] Specifically, the cluster fault diagnosis device sends a device detection instruction to each cluster device in each target device cluster, and drives the cluster device to perform detection interaction with the associated distributed storage module. That is, the cluster device is driven to send a device detection instruction to the associated distributed storage module, thereby performing detection interaction with the distributed storage module.

[0072] Specifically, the cluster fault diagnosis device obtains the storage feedback information returned by the distributed storage module according to the detection interaction, as well as the device feedback information of the cluster device, and aggregates the storage feedback information and the device feedback information to generate the detection feedback information of the cluster device and the distributed storage module, and performs fault diagnosis on the cluster device and the distributed storage module through the detection feedback information.

[0073] 203. Locate a target storage module in the target device cluster and a target cluster device associated with the target storage module according to the storage load data and the interaction record data in the detection feedback information;

[0074] After obtaining the detection feedback information of each cluster device and the corresponding distributed storage module, the cluster fault diagnosis device locates the target storage module and target cluster device with abnormal connection status in the target device cluster according to the storage load data and interaction record data in the detection feedback information.

[0075] Specifically, the cluster fault diagnosis device parses the detection feedback information, obtains the storage load data and interaction record data in the detection feedback information, and determines the connection status of the storage module and the corresponding cluster device through the storage load data and interaction data record. If the connection status of the storage module and the corresponding cluster device is an abnormal connection state, the storage module and the corresponding cluster device in the abnormal connection state are marked as the target storage module and target cluster device in the target device cluster.

[0076] 204. Obtain a candidate storage module associated with the target storage module, drive the target cluster device and the candidate storage module to perform data interaction, and obtain a cluster fault diagnosis result.

[0077] Specifically, after determining the target storage module and the corresponding target cluster device with an abnormal connection state in the target device cluster, the cluster fault diagnosis device also obtains a candidate storage module associated with the target storage module, drives the target cluster device and the candidate storage module to interact with each other, thereby determining to diagnose the abnormal connection state and judge the device failure result of the target cluster device and the target storage module.

[0078] Specifically, the cluster fault diagnosis device obtains a candidate storage module of the target storage module, and drives the target cluster device to synchronize data with the candidate storage module, thereby obtaining a data synchronization result, and determines the device connection status of the target cluster device and the candidate storage module according to the data synchronization result and the running status of the candidate storage module. If the device connection status is that the device connection is normal, the target storage module is determined to be a faulty storage module; if the device connection status is that the device connection is abnormal, the target cluster device is determined to be a faulty cluster device.

[0079] After determining that the target storage module is a faulty storage module, the cluster fault diagnosis device summarizes each target storage module in the target device cluster and the detection feedback information of the target storage module;

[0080] A fault reminder message of the target storage module is generated according to the storage device type, service type and detection feedback information of the target storage module, and the fault reminder message is output.

[0081] In this embodiment, the cluster fault diagnosis device obtains the target device cluster corresponding to the cluster fault diagnosis request by responding to the device fault diagnosis request; drives each cluster device in the target device cluster to perform detection interaction with the associated distributed storage module to generate detection feedback information; locates the target storage module in the target device cluster and the target cluster device associated with the target storage module according to the storage load data and interaction record data in the detection feedback information; obtains the candidate storage module associated with the target storage module, drives the target cluster device and the candidate storage module to perform data interaction, and obtains the cluster fault diagnosis result. The health status of each cluster device in the target device cluster and the associated distributed storage module can be quickly located, and the accuracy of cluster fault diagnosis can be improved.

[0082] like Figure 3 As shown, Figure 3 A flowchart of an embodiment of locating a target storage module in a cluster fault diagnosis method provided in an embodiment of the present application, specifically, including steps 301 to 303:

[0083] 301. Obtain a storage device type of the distributed storage module and a service type of the cluster device, and query a preset load threshold and a preset interaction threshold corresponding to the storage device type and the service type;

[0084] 302. Compare the stored load data in the detection feedback information with the preset load threshold, and compare the interaction record data with the preset interaction threshold;

[0085] 303. If the storage load data is greater than the preset load threshold, and / or the interaction record data is less than the preset interaction threshold, determine that the distributed storage module is a target storage module, and obtain a target cluster device corresponding to the target storage module.

[0086] Based on the above embodiments, in this embodiment, after acquiring the detection feedback information, the cluster fault diagnosis device locates the target storage module and the corresponding target cluster device in the target device cluster through the detection feedback information.

[0087] Specifically, the cluster fault diagnosis device pre-acquires the storage device type of the distributed storage module and the service type of the cluster device, and queries the preset load threshold and preset interaction threshold corresponding to the storage device type and the service type. The preset interaction threshold is threshold data representing the preset number of interactions between the cluster device and the storage module.

[0088] After obtaining the detection feedback information, the cluster fault diagnosis device reads the storage load data and interaction record data in the detection feedback information, compares the load data in the detection feedback information with the preset load threshold, and compares the interaction record data with the preset interaction threshold, so as to determine the device connection status of the cluster device and the distributed storage module.

[0089] Optionally, if the storage load data is less than the preset load threshold and the interaction record data is greater than the preset interaction threshold, the device connection status of the cluster device and the distributed storage module is determined to be a normal device connection status, and the device diagnosis result of the non-faulty device is output.

[0090] Optionally, if the stored data is greater than the preset load threshold and / or the interaction record data is less than the preset interaction threshold, that is, the number of interactions between the cluster device and the distributed storage module is less than the number of interactions required by the business type, the cluster fault diagnosis device determines that the device connection status of the cluster device and the distributed storage module is an abnormal device connection status, and the cluster fault diagnosis device marks the distributed storage module as a target storage module to be diagnosed, and sets the target cluster device corresponding to the target storage module as the target storage module to be diagnosed.

[0091] Specifically, after determining the target storage module and the corresponding target cluster device with an abnormal connection state in the target device cluster, the cluster fault diagnosis device also obtains a candidate storage module associated with the target storage module, drives the target cluster device and the candidate storage module to interact with data, thereby determining to diagnose the abnormal connection state and judge the device failure results of the target cluster device and the target storage module.

[0092] In this embodiment, the cluster fault diagnosis device obtains the storage device type of the distributed storage module and the business type of the cluster device, queries the preset load threshold and preset interaction threshold corresponding to the storage device type and the business type; compares the storage load data in the detection feedback information with the preset load threshold, and compares the interaction record data with the preset interaction threshold; if the storage load data is greater than the preset load threshold, and / or the interaction record data is less than the preset interaction threshold, the distributed storage module is determined to be the target storage module, and the target cluster device corresponding to the target storage module is obtained. Accurately locate the target storage module and target cluster device with abnormal device connection in the target device cluster.

[0093] like Figure 4 As shown, Figure 4 A flowchart of an embodiment of performing fault diagnosis on a target cluster device in a cluster fault diagnosis method provided in an embodiment of the present application, specifically, including steps 401 to 403:

[0094] 401. Read the service type and preset load threshold of the target cluster device corresponding to the target storage module;

[0095] 402. Query a storage database to match a candidate storage module associated with the target storage module according to the service type and the preset load threshold;

[0096] 403 : Acquire the service data of the target cluster device, synchronize the service data to the candidate storage module for data interaction, and obtain a cluster fault diagnosis result.

[0097] Based on the above embodiments, in this embodiment, after determining the target storage module and target cluster device with abnormal connection status in the target device cluster, the cluster fault diagnosis device further performs fault diagnosis on the target cluster device, thereby determining the fault diagnosis results of the target storage module and the target cluster device.

[0098] Specifically, the cluster fault diagnosis device reads the service type and preset load threshold associated with the target storage module and the target cluster device, and queries a preset storage database to match candidate storage modules of the target storage module according to the service type and preset load threshold.

[0099] After obtaining the candidate storage module, the cluster fault diagnosis device connects the candidate storage module to the target cluster device, obtains the business data of the target cluster device, synchronizes the business data to the candidate storage module for data interaction, obtains the data interaction result, and determines the cluster fault diagnosis result of the target cluster device according to the data interaction result.

[0100] Specifically, the cluster fault diagnosis device obtains the business data of the target cluster device, synchronizes the business data to the candidate storage module, and counts the data synchronization time and data synchronization completion status, and summarizes the data synchronization time and data synchronization completion status to generate a data synchronization result.

[0101] After obtaining the data synchronization result, the cluster fault diagnosis device also obtains the running status of the candidate storage module, and determines the device connection status of the target cluster device and the candidate storage module according to the data synchronization result and the running status.

[0102] Optionally, if the data synchronization time in the data synchronization result exceeds the preset synchronization time threshold, or the data synchronization fails, and the operating status of the candidate storage module is in normal operating status, the cluster fault diagnosis device determines that the device connection status between the target cluster device and the candidate storage module is an abnormal connection state, and determines that the target cluster device is a faulty cluster device, and outputs the cluster fault diagnosis result corresponding to the faulty cluster device on the preset display interface.

[0103] In this embodiment, the cluster fault diagnosis device reads the service type and preset load threshold of the target cluster device corresponding to the target storage module; queries the storage database, matches the candidate storage module associated with the target storage module according to the service type and the preset load threshold; obtains the service data of the target cluster device, synchronizes the service data to the candidate storage module for data interaction, and obtains the cluster fault diagnosis result, thereby improving the accuracy of cluster fault diagnosis.

[0104] In order to better implement the cluster fault diagnosis method in the embodiment of the present application, based on the cluster fault diagnosis method, the embodiment of the present application also provides a cluster fault diagnosis device, such as Figure 5 As shown, Figure 5 This is a schematic diagram of the structure of an embodiment of a cluster fault diagnosis device provided in an embodiment of the present application. The cluster fault diagnosis device 500 includes:

[0105] The instruction acquisition module 501 is configured to respond to the device fault diagnosis request and acquire the target device cluster corresponding to the cluster fault diagnosis request;

[0106] The device feedback module 502 is configured to drive each cluster device in the target device cluster to perform detection interaction with the associated distributed storage module to generate detection feedback information;

[0107] A connection detection module 503 is configured to locate a target storage module in the target device cluster and a target cluster device associated with the target storage module according to the storage load data and the interaction record data in the detection feedback information;

[0108] The cluster diagnosis module 504 is configured to obtain a candidate storage module associated with the target storage module, drive the target cluster device and the candidate storage module to perform data interaction, and obtain a cluster fault diagnosis result.

[0109] In some embodiments of the present application, the cluster fault diagnosis device locates the target storage module in the target device cluster and the target cluster device associated with the target storage module according to the storage load data and the interaction record data in the detection feedback information, including:

[0110] Acquire the storage device type of the distributed storage module and the service type of the cluster device, and query the preset load threshold and preset interaction threshold corresponding to the storage device type and the service type;

[0111] Comparing the stored load data in the detection feedback information with the preset load threshold, and comparing the interaction record data with the preset interaction threshold;

[0112] If the storage load data is greater than the preset load threshold, and / or the interaction record data is less than the preset interaction threshold, the distributed storage module is determined to be a target storage module, and a target cluster device corresponding to the target storage module is obtained.

[0113] In some embodiments of the present application, the cluster fault diagnosis device obtains a candidate storage module associated with the target storage module, drives the target cluster device and the candidate storage module to perform data interaction, and obtains a cluster fault diagnosis result, including:

[0114] Read the service type and preset load threshold of the target cluster device corresponding to the target storage module;

[0115] Querying a storage database to match candidate storage modules associated with the target storage module according to the service type and the preset load threshold;

[0116] The business data of the target cluster device is acquired, and the business data is synchronized to the candidate storage module for data interaction to obtain a cluster fault diagnosis result.

[0117] In some embodiments of the present application, the cluster fault diagnosis apparatus obtains the service data of the target cluster device, synchronizes the service data to the candidate storage module for data interaction, and obtains the cluster fault diagnosis result, including:

[0118] Acquire the service data of the target cluster device, synchronize the service data to the candidate storage module, and obtain a data synchronization result;

[0119] The running status of the candidate storage module is obtained, the device connection status of the target cluster device and the candidate storage module is determined according to the data synchronization result and the running status, and a cluster fault diagnosis result corresponding to the device connection status is output.

[0120] In some embodiments of the present application, a cluster fault diagnosis apparatus responds to a device fault diagnosis request and obtains a target device cluster corresponding to the cluster fault diagnosis request, including:

[0121] In response to the device fault diagnosis request, obtaining device information carried in the device fault diagnosis request, the device information including at least one of an application identifier, device environment information, device room information, and a storage space identifier;

[0122] A preset content management database is accessed, and a target device cluster associated with the device information in the content management database is acquired according to the application identifier, the device environment information, the device room information and the storage space identifier.

[0123] In some embodiments of the present application, after the cluster fault diagnosis apparatus obtains a candidate storage module associated with the target storage module, drives the target cluster device and the candidate storage module to perform data interaction, and obtains a cluster fault diagnosis result, it further includes:

[0124] Summarize each target storage module in the target device cluster and detection feedback information of the target storage module;

[0125] A fault reminder message of the target storage module is generated according to the storage device type, the service type and the detection feedback information of the target storage module, and the fault reminder message is output.

[0126] In some embodiments of the present application, the cluster fault diagnosis apparatus drives each cluster device in the target device cluster to perform detection interaction with the associated distributed storage module to generate detection feedback information, including:

[0127] Sending a device detection instruction to each cluster device in the target device cluster, driving the cluster device to perform detection interaction with the distributed storage module;

[0128] Acquire storage feedback information of the distributed storage module and device feedback information of the cluster device;

[0129] The storage feedback information and the device feedback information are aggregated to generate detection feedback information of the distributed storage module.

[0130] In this embodiment, the cluster fault diagnosis device obtains the target device cluster corresponding to the cluster fault diagnosis request by responding to the device fault diagnosis request; drives each cluster device in the target device cluster to perform detection interaction with the associated distributed storage module to generate detection feedback information; locates the target storage module in the target device cluster and the target cluster device associated with the target storage module according to the storage load data and interaction record data in the detection feedback information; obtains the candidate storage module associated with the target storage module, drives the target cluster device and the candidate storage module to perform data interaction, and obtains the cluster fault diagnosis result. The health status of each cluster device in the target device cluster and the associated distributed storage module can be quickly located, and the accuracy of cluster fault diagnosis can be improved.

[0131] The embodiment of the present invention also provides a cluster fault diagnosis device, such as Figure 6 As shown, Figure 6 It is a schematic diagram of the structure of an embodiment of a cluster fault diagnosis device provided in an embodiment of the present application.

[0132] The cluster fault diagnosis device integrates any cluster fault diagnosis apparatus provided by the embodiments of the present invention, and the cluster fault diagnosis device includes:

[0133] one or more processors;

[0134] Memory; and

[0135] One or more applications, wherein the one or more applications are stored in the memory and are configured to be executed by the processor to execute the steps of the cluster fault diagnosis method described in any of the above cluster fault diagnosis method embodiments.

[0136] Specifically, the cluster fault diagnosis device may include one or more processing core processors 601, one or more computer-readable storage media memories 602, a power supply 603, an input unit 604 and other components. Those skilled in the art will understand that Figure 6 The cluster fault diagnosis device structure shown in the figure does not constitute a limitation on the cluster fault diagnosis device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0137] The processor 601 is the control center of the cluster fault diagnosis device. It uses various interfaces and lines to connect various parts of the entire cluster fault diagnosis device. By running or executing software programs and / or modules stored in the memory 602, and calling data stored in the memory 602, it executes various functions of the cluster fault diagnosis device and processes data, thereby monitoring the cluster fault diagnosis device as a whole. Optionally, the processor 601 may include one or more processing cores; preferably, the processor 601 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 601.

[0138] The memory 602 can be used to store software programs and modules. The processor 601 executes various functional applications and data processing by running the software programs and modules stored in the memory 602. The memory 602 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the cluster fault diagnosis device, etc. In addition, the memory 602 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 602 may also include a memory controller to provide the processor 601 with access to the memory 602.

[0139] The cluster fault diagnosis device also includes a power supply 603 for supplying power to each component. Preferably, the power supply 603 can be logically connected to the processor 601 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 603 can also include any components such as one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, and power status indicators.

[0140] The cluster fault diagnosis device may further include an input unit 604, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0141] Although not shown, the cluster fault diagnosis device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 601 in the cluster fault diagnosis device will load the executable files corresponding to the processes of one or more application programs into the memory 602 according to the following instructions, and the processor 601 will run the application programs stored in the memory 602, thereby realizing various functions, as follows:

[0142] In response to the device fault diagnosis request, obtain a target device cluster corresponding to the cluster fault diagnosis request;

[0143] Driving each cluster device in the target device cluster to perform detection interaction with the associated distributed storage module to generate detection feedback information;

[0144] Locating a target storage module in the target device cluster and a target cluster device associated with the target storage module according to the storage load data and the interaction record data in the detection feedback information;

[0145] A candidate storage module associated with the target storage module is obtained, and a target cluster device and the candidate storage module are driven to perform data interaction to obtain a cluster fault diagnosis result.

[0146] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0147] To this end, an embodiment of the present invention provides a computer-readable storage medium, which may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc. A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in any cluster fault diagnosis method provided in an embodiment of the present invention. For example, the computer program may be loaded by a processor to execute the following steps:

[0148] In response to the device fault diagnosis request, obtain a target device cluster corresponding to the cluster fault diagnosis request;

[0149] Driving each cluster device in the target device cluster to perform detection interaction with the associated distributed storage module to generate detection feedback information;

[0150] Locating a target storage module in the target device cluster and a target cluster device associated with the target storage module according to the storage load data and the interaction record data in the detection feedback information;

[0151] A candidate storage module associated with the target storage module is obtained, and a target cluster device and the candidate storage module are driven to perform data interaction to obtain a cluster fault diagnosis result.

[0152] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the detailed description of other embodiments above, and will not be repeated here.

[0153] In specific implementation, the above units or structures can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units or structures can refer to the previous method embodiments, which will not be repeated here.

[0154] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0155] The above is a detailed introduction to a cluster fault diagnosis method provided in an embodiment of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A cluster fault diagnosis method, characterized in that: The cluster fault diagnosis method comprises: In response to a device fault diagnosis request, obtain a target device cluster corresponding to the device fault diagnosis request; Driving each cluster device in the target device cluster to perform detection interaction with the associated distributed storage module to generate detection feedback information; Locating a target storage module in the target device cluster and a target cluster device associated with the target storage module according to the storage load data and the interaction record data in the detection feedback information; Acquire candidate storage modules associated with the target storage module and the running status of the candidate storage modules; Driving the target cluster device to perform data synchronization with the candidate storage module to obtain a data synchronization result; The device connection status between the target cluster device and the candidate storage module is determined according to the data synchronization result and the operating status, and a cluster fault diagnosis result corresponding to the device connection status is output, wherein if the device connection status is that the device connection is normal, it is determined that the cluster fault diagnosis result indicates that the target storage module is a faulty storage module; if the device connection status is that the device connection is abnormal, it is determined that the cluster fault diagnosis result indicates that the target cluster device is a faulty cluster device.

2. The cluster fault diagnosis method according to claim 1, characterized in that: The locating the target storage module in the target device cluster and the target cluster device associated with the target storage module according to the storage load data and the interaction record data in the detection feedback information includes: Acquire the storage device type of the distributed storage module and the service type of the cluster device, and query the preset load threshold and preset interaction threshold corresponding to the storage device type and the service type; Comparing the stored load data in the detection feedback information with the preset load threshold, and comparing the interaction record data with the preset interaction threshold; If the storage load data is greater than the preset load threshold, and / or the interaction record data is less than the preset interaction threshold, the distributed storage module is determined to be a target storage module, and a target cluster device corresponding to the target storage module is obtained.

3. The cluster fault diagnosis method according to claim 1, characterized in that: The obtaining of a candidate storage module associated with the target storage module includes: Read the service type and preset load threshold of the target cluster device corresponding to the target storage module; A storage database is queried to match candidate storage modules associated with the target storage module according to the service type and the preset load threshold.

4. The cluster fault diagnosis method according to claim 3, characterized in that: The driving the target cluster device to synchronize data with the candidate storage module to obtain a data synchronization result includes: The business data of the target cluster device is acquired, and the business data is synchronized to the candidate storage module to obtain a data synchronization result.

5. The cluster fault diagnosis method according to claim 1, characterized in that: The responding to the device fault diagnosis request and obtaining a target device cluster corresponding to the device fault diagnosis request includes: In response to the device fault diagnosis request, obtaining device information carried in the device fault diagnosis request, the device information including at least one of an application identifier, device environment information, device room information, and a storage space identifier; A preset content management database is accessed, and a target device cluster associated with the device information in the content management database is acquired according to the application identifier, the device environment information, the device room information and the storage space identifier.

6. The cluster fault diagnosis method according to claim 5, characterized in that: After determining the device connection status between the target cluster device and the candidate storage module according to the data synchronization result and the running status, and outputting the cluster fault diagnosis result corresponding to the device connection status, the method further includes: Summarize each target storage module in the target device cluster and detection feedback information of the target storage module; A fault reminder message of the target storage module is generated according to the storage device type, the service type and the detection feedback information of the target storage module, and the fault reminder message is output.

7. The cluster fault diagnosis method according to any one of claims 1 to 6, characterized in that: The step of driving each cluster device in the target device cluster to perform detection interaction with the associated distributed storage module to generate detection feedback information includes: Sending a device detection instruction to each cluster device in the target device cluster, driving the cluster device to perform detection interaction with the distributed storage module; Acquire storage feedback information of the distributed storage module and device feedback information of the cluster device; The storage feedback information and the device feedback information are aggregated to generate detection feedback information of the distributed storage module.

8. A cluster fault diagnosis device, characterized in that: The cluster fault diagnosis device comprises: An instruction acquisition module is configured to respond to a device fault diagnosis request and acquire a target device cluster corresponding to the device fault diagnosis request; A device feedback module is configured to drive each cluster device in the target device cluster to perform detection interaction with the associated distributed storage module to generate detection feedback information; A connection detection module, configured to locate a target storage module in the target device cluster and a target cluster device associated with the target storage module according to storage load data and interaction record data in the detection feedback information; A cluster diagnosis module is configured to obtain a candidate storage module associated with the target storage module and an operating status of the candidate storage module; drive the target cluster device to perform data synchronization with the candidate storage module to obtain a data synchronization result; determine a device connection status between the target cluster device and the candidate storage module according to the data synchronization result and the operating status, and output a cluster fault diagnosis result corresponding to the device connection status, wherein if the device connection status is that the device connection is normal, then it is determined that the cluster fault diagnosis result indicates that the target storage module is a faulty storage module; if the device connection status is that the device connection is abnormal, then it is determined that the cluster fault diagnosis result indicates that the target cluster device is a faulty cluster device.

9. A cluster fault diagnosis device, characterized in that: The cluster fault diagnosis device comprises: one or more processors; Memory; and One or more application programs, wherein the one or more application programs are stored in the memory and are configured to be executed by the processor to implement the steps of the cluster fault diagnosis method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps of the cluster fault diagnosis method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Equipment connection state checking method and device, equipment and storage medium

    CN115190044A