Cluster management method, device, computer equipment and storage medium

Through real-time monitoring and isolation of abnormal nodes, new target nodes are elected to provide business services in the cluster system, which solves the problem of business service discontinuity caused by abnormal node detection and correction, and improves the availability and efficiency of the cluster system.

CN115102962BActive Publication Date: 2024-08-23QINGDAO ZHONGKE SHUGUANG TECH SERVICE CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210711547.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-22
Publication Date
2024-08-23
Estimated Expiration
2042-06-22

AI Technical Summary

Technical Problem

In a cluster system, the detection and correction process of abnormal target nodes takes a long time, resulting in discontinuity of business services, especially when the abnormal node has complex functions and needs to connect to multiple external services.

Method used

Through real-time monitoring of the running status of nodes in the cluster system, abnormal nodes are identified and placed in isolation areas, blocked and corrected, and new target nodes are elected to continue providing business services to ensure uninterrupted business services.

Benefits of technology

This enables the cluster system to provide uninterrupted business services when abnormal nodes are detected, improves the continuity of business services and node activity, and reduces service interruption time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115102962B
    Figure CN115102962B
Patent Text Reader

Abstract

The present application relates to a cluster management method, device, computer equipment, storage medium and computer program product. The method comprises: monitoring the operation status of each node in the cluster system, determining the abnormal node in the cluster system according to the operation status; if the node attribute of the abnormal node is a target attribute, the abnormal node is placed in an isolation zone, the target attribute represents that the current node is providing business services, and the isolation zone is used to block the cluster system from correcting the abnormal node; determining a first target node among other nodes except the abnormal node, updating the node attribute of the first target node to the target attribute, obtaining a new target attribute node, and executing business services through the new target attribute node. By adopting this method, the cluster system can provide business services uninterruptedly.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to a cluster management method, apparatus, computer equipment, storage medium and computer program product. Background Art

[0002] With the development of Internet technology, in the current cluster system, the cluster management tool will pre-configure a virtual IP (Internet Protocol). Users access the virtual IP and initiate a business service request. Then, the cluster system determines the target node and provides the business service through the target node. Therefore, in order to effectively provide business services, it is necessary to perform anomaly detection management on the target node.

[0003] The current target node abnormality management method, in order to ensure the multi-node liveness of the cluster system (also known as resource liveness), the cluster system will immediately detect and correct abnormal parameters of the target node until the target node recovers, and then the target node will provide the business service.

[0004] However, when the abnormal target node has complex functions and needs to connect to more external services, it takes a long time to detect and correct the abnormality of the abnormal target node, which in turn leads to discontinuity in providing business services. Summary of the invention

[0005] Based on this, it is necessary to provide a cluster management method, apparatus, computer equipment, computer-readable storage medium and computer program product to address the above technical issues.

[0006] In a first aspect, the present application provides a cluster management method. The method comprises:

[0007] Monitoring the operating status of each node in the cluster system, and determining abnormal nodes in the cluster system according to the operating status;

[0008] If the node attribute of the abnormal node is a target attribute, the abnormal node is placed in an isolation zone, the target attribute indicates that the current node is providing business services, and the isolation zone is used to block the cluster system from correcting the abnormal node;

[0009] A first target node is determined among other nodes except the abnormal node, a node attribute of the first target node is updated to the target attribute to obtain a new target attribute node, and a business service is executed through the new target attribute node.

[0010] By adopting this method, each node in the cluster system is monitored in real time. If the node attribute of the abnormal node is detected to be the target attribute, the abnormal node is directly placed in the isolation area, and then a new target attribute node is elected to perform business services, so that the cluster system can provide business services uninterruptedly.

[0011] In one embodiment, monitoring the operating status of each node in the cluster system and determining an abnormal node in the cluster system according to the operating status includes:

[0012] Monitor the heartbeat signals sent by each node in the cluster system;

[0013] If the heartbeat signal sent by the second target node does not meet the preset heartbeat signal detection condition, the second target node is determined to be an abnormal node.

[0014] In this embodiment, the heartbeat detection tool monitors the heartbeat signals sent by each node in real time, and judges the operating status of each node in the cluster system through the periodic sending rule of the heartbeat signals of each node, so as to timely discover abnormal nodes in the cluster system.

[0015] In one embodiment, determining a first target node among other nodes except the abnormal node, updating the node attribute of the first target node to the target attribute, and obtaining a new target attribute node includes:

[0016] According to a preset node election strategy, a first target node is determined among other nodes except the abnormal node;

[0017] Adding an attribute tag of a target attribute to the first target node, and updating the node attribute of the first target node to the target attribute;

[0018] According to the attribute label of the first target node and the cluster virtual access address, the cluster virtual access address is pointed to the first target node to obtain a new target attribute node.

[0019] In this embodiment, the first target node is elected, the node attribute of the target node is updated and the direction of the virtual access address in the cluster system is re-determined, and a new target attribute node is obtained to continue to provide business services, thereby ensuring the uninterrupted business services.

[0020] In one embodiment, the method further comprises:

[0021] If the node attribute of the abnormal node is a non-target attribute, the abnormal node is corrected by a preset abnormality processing strategy to obtain a corrected node with the non-target attribute.

[0022] In this embodiment, by detecting the node attributes of the abnormal node, it is determined that the abnormal node is a node with non-target attributes, and thus will not affect the business services provided by the cluster system. Therefore, the abnormal problem of the abnormal node is directly corrected and processed to obtain a corrected normal operating node, thereby improving the node activity in the cluster system.

[0023] In one of the embodiments, if the node attribute of the abnormal node is a target attribute, after placing the abnormal node into an isolation zone, the method further includes:

[0024] Generate an alarm message indicating that the target attribute node is abnormal, and output the alarm message for display.

[0025] In this embodiment, when the node attribute of the abnormal node is the target attribute, the abnormal node will be placed in an isolation area, preventing the cluster management system from performing corrective processing on the abnormal node, and also preventing the node from providing business services. Therefore, the cluster management tool generates alarm information for abnormal nodes with target attributes to promptly inform management personnel of the current operation status of the cluster system, thereby improving the timeliness of the cluster management.

[0026] In one embodiment, the method further comprises:

[0027] In response to a request for releasing isolation of the abnormal node in the isolation zone, updating a node attribute of the abnormal node to a non-target attribute, and adding the node to the cluster system;

[0028] In the case that the node attribute of the abnormal node in the cluster system is the non-target attribute, the abnormal node is corrected according to a preset abnormality processing strategy to obtain a corrected node of the non-target attribute in the cluster system.

[0029] In this embodiment, the abnormal node in the isolation area is restored to the cluster system, becoming an abnormal node with non-target attributes, and the processing of the abnormal node will not affect the business services provided by the cluster system. Therefore, the abnormal problem of the abnormal node is directly corrected and processed to obtain a corrected normal operating node, thereby ensuring the number of surviving nodes in the cluster system and improving the activity of nodes in the cluster system.

[0030] In a second aspect, the present application also provides a cluster management device. The device includes:

[0031] A monitoring module, used to monitor the operating status of each node in the cluster system, and determine abnormal nodes in the cluster system according to the operating status;

[0032] a processing module, configured to place the abnormal node into an isolation zone if the node attribute of the abnormal node is a target attribute, wherein the target attribute indicates that the current node is providing a business service, and the isolation zone is used to block the cluster system from performing a correction process on the abnormal node;

[0033] The updating module is used to determine a first target node among other nodes except the abnormal node, update the node attribute of the first target node to the target attribute, obtain a new target attribute node, and execute the business service through the new target attribute node.

[0034] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0035] Monitoring the operating status of each node in the cluster system, and determining abnormal nodes in the cluster system according to the operating status;

[0036] If the node attribute of the abnormal node is a target attribute, the abnormal node is placed in an isolation zone, the target attribute indicates that the current node is providing business services, and the isolation zone is used to block the cluster system from correcting the abnormal node;

[0037] A first target node is determined among other nodes except the abnormal node, a node attribute of the first target node is updated to the target attribute to obtain a new target attribute node, and a business service is executed through the new target attribute node.

[0038] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0039] Monitoring the operating status of each node in the cluster system, and determining abnormal nodes in the cluster system according to the operating status;

[0040] If the node attribute of the abnormal node is a target attribute, the abnormal node is placed in an isolation zone, the target attribute indicates that the current node is providing business services, and the isolation zone is used to block the cluster system from correcting the abnormal node;

[0041] A first target node is determined among other nodes except the abnormal node, a node attribute of the first target node is updated to the target attribute to obtain a new target attribute node, and a business service is executed through the new target attribute node.

[0042] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0043] Monitoring the operating status of each node in the cluster system, and determining abnormal nodes in the cluster system according to the operating status;

[0044] If the node attribute of the abnormal node is a target attribute, the abnormal node is placed in an isolation zone, the target attribute indicates that the current node is providing business services, and the isolation zone is used to block the cluster system from correcting the abnormal node;

[0045] A first target node is determined among other nodes except the abnormal node, a node attribute of the first target node is updated to the target attribute to obtain a new target attribute node, and a business service is executed through the new target attribute node.

[0046] The above cluster management method, device, computer equipment, storage medium and computer program product monitor the running status of each node in the cluster system, determine the abnormal node in the cluster system according to the running status; if the node attribute of the abnormal node is the target attribute, put the abnormal node into an isolation zone, the target attribute represents that the current node is providing business services, and the isolation zone is used to block the cluster system from correcting the abnormal node; determine the first target node among other nodes except the abnormal node, update the node attribute of the first target node to the target attribute, obtain a new target attribute node, and perform business services through the new target attribute node. Using this method, in the cluster system, each node is monitored in real time. If it is detected that the node attribute of the abnormal node is the target attribute, the abnormal node is directly placed in an isolation zone, and then a new target attribute node is elected to perform business services, so that the cluster system provides business services uninterruptedly. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 A schematic diagram of a flow chart of a cluster management method in an embodiment;

[0048] Figure 2 The following is a flowchart of an abnormal node detection step in an embodiment;

[0049] Figure 3 A schematic diagram of a flow chart of a step of determining a new target attribute node in an embodiment;

[0050] Figure 4 A schematic diagram of cluster system node election in one embodiment;

[0051] Figure 5A schematic diagram of a process for restoring isolation steps of an abnormal node in an isolation zone in one embodiment;

[0052] Figure 6 A schematic diagram of an example flow chart of a cluster management method in an embodiment;

[0053] Figure 7 is a structural block diagram of a cluster management device in one embodiment;

[0054] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0056] In one embodiment, Figure 1 As shown, a cluster management method is provided. This embodiment takes the method applied to a distributed cluster system as an example. In this embodiment, the method includes the following steps:

[0057] Step 102: monitor the operating status of each node in the cluster system, and determine the abnormal node in the cluster system according to the operating status.

[0058] In implementation, the cluster system includes multiple distributed nodes, which can execute software programs running on the cluster system to provide software services (also called business services) for users. In addition, the cluster system is also pre-set with a heartbeat detection tool and a cluster management tool, wherein the heartbeat detection tool is used to monitor the operating status of each node included in the cluster system to determine whether there are abnormal nodes in the cluster system according to the operating status of each node. The cluster management tool processes the abnormal nodes determined by the heartbeat detection tool.

[0059] If there is an abnormal node, the heartbeat detection tool can send the information of the detected abnormal node to the cluster management tool in the cluster system, and the cluster management tool will process the abnormal node.

[0060] Step 104: If the node attribute of the abnormal node is the target attribute, the abnormal node is placed in an isolation area.

[0061] Among them, the node attributes include target attributes and non-target attributes. The target attribute indicates that the current node is providing business services, and the non-target attribute indicates that the current node is not participating in business services. Specifically, the node attributes of each node in the cluster system are determined by whether the node is providing business services. The cluster system configures a unified virtual IP (Internet Protocol) address (also called a virtual access address) for the user. When the user initiates a request for the target business service by accessing the virtual access address, the cluster system will respond to the target business service request and elect at least one node in the cluster system as the node providing the target business service. Then, the cluster system points the virtual access address to the elected node to execute the target business service. At this time, the node attributes of the node elected to provide the target business service are marked as target attributes, while the node attributes of other nodes that have not been elected in the cluster system are marked as non-target attributes.

[0062] During implementation, when the heartbeat detection tool detects the existence of an abnormal node in the cluster system, the heartbeat detection tool notifies the cluster management tool in the cluster system of the information of the abnormal node. Then, the cluster management tool detects the node attributes of the abnormal node. If the node attributes of the abnormal node are target attributes, the cluster management tool immediately puts the abnormal node into an isolation area, blocking the cluster system from correcting the abnormal node, and also blocking the abnormal node from participating in the target business service.

[0063] Optionally, there is a situation where all nodes in the cluster system are non-target attribute nodes, that is, the cluster system does not undertake any business services for a period of time. At this time, each node in the cluster system does not participate in any business services. Therefore, the node attributes of each node in the cluster system are non-target attribute nodes. Moreover, even if the cluster system does not undertake any business services, the heartbeat detection tool still maintains the detection of the running status of each node in the cluster system to detect abnormal nodes in time.

[0064] Optionally, the isolation zone of the abnormal node of the target attribute can be set on an electronic device outside the cluster system, or on an offline device in the cluster system, which is not limited in this embodiment. The isolation zone is used to isolate the communication of the node placed therein, block the node from providing business services to the outside, and also block the cluster system from correcting the node.

[0065] Step 106, determine a first target node among other nodes except the abnormal node, update the node attribute of the first target node to the target attribute, obtain a new target attribute node, and execute the business service through the new target attribute node.

[0066] In implementation, the cluster system pre-stores the node election strategy corresponding to each business service. The node election strategy corresponding to different business services may also be different. For example, when the business service requires higher data processing performance and request response rate, the node election strategy can combine node performance parameters, network reachability and other conditions to screen each node in the cluster system. The elected node is used as the target attribute node to provide business services. Therefore, when the abnormal node of the target attribute is placed in the isolation area, the cluster management tool will re-determine the target attribute node according to the corresponding node election strategy. Specifically, the cluster management tool selects the first target node from other nodes except the abnormal node according to the node election strategy, and updates the node attribute of the first target node to the target attribute, so that the first target node serves as the new target attribute node and continues to undertake business services.

[0067] In the cluster management method, the heartbeat detection tool monitors the running status of each node in the cluster system, and determines the abnormal node in the cluster system according to the running status; if the node attribute of the abnormal node is the target attribute, the abnormal node is placed in an isolation zone; the cluster management tool determines the first target node among other nodes except the abnormal node, updates the node attribute of the first target node to the target attribute, obtains a new target attribute node, and executes business services through the new target attribute node. With this method, in the cluster system, each node is monitored in real time. If an abnormal node is detected and the node attribute of the abnormal node is the target attribute, the abnormal node is directly placed in an isolation zone, blocking the cluster system from correcting the abnormal node, and electing a new target attribute node to execute business services. The cluster system provides business services uninterruptedly, improving the continuity and completion efficiency of business services.

[0068] In one embodiment, Figure 2 As shown, the specific processing process of step 102 includes the following steps:

[0069] Step 202: monitor the heartbeat signal sent by each node in the cluster system.

[0070] In implementation, the heartbeat detection tool receives heartbeat signals sent from each distributed node (referred to as node) included in the cluster system to monitor the operation status of each node in the cluster system. Specifically, the heartbeat detection tool pre-stores heartbeat signal detection conditions such as the sending period of each node sending the heartbeat signal and the heartbeat signal strength. The heartbeat detection tool determines each received heartbeat signal based on the heartbeat signal detection conditions to determine whether the operation status of each node is abnormal.

[0071] Step 204: If the heartbeat signal sent by the second target node does not meet the preset heartbeat signal detection condition, the second target node is determined to be an abnormal node.

[0072] In implementation, if the heartbeat signal sent by the second target node does not meet the preset heartbeat signal detection condition, the heartbeat detection tool determines that the second target node is an abnormal node, and then the information of the abnormal node can be sent to the cluster management tool in the cluster system. For example, if the heartbeat detection tool does not receive the heartbeat signal sent by the second target node within the preset sending period, the heartbeat detection tool determines that the second target node is an abnormal node. Among them, the heartbeat signal detection condition can be set based on the actual characteristics of each node device, and the embodiment of the present application does not limit it.

[0073] In this embodiment, the heartbeat signal sent by each node is monitored in real time by a heartbeat detection tool, and the operating status of each node in the cluster system is judged through preset heartbeat signal detection conditions, thereby improving the timeliness of discovering abnormal nodes in the cluster system.

[0074] In one embodiment, when the node attribute of the abnormal node is the target attribute, the cluster management tool will directly put the abnormal node of the target attribute into the isolation zone, blocking the cluster system from correcting the current target attribute node. At the same time, it also blocks the business service currently provided by the current target attribute node. Therefore, the cluster system needs to elect a new node of the target attribute to provide business services uninterruptedly. Figure 3 As shown, the specific processing process of step 106 includes the following steps:

[0075] Step 302: According to a preset node election strategy, a first target node is determined from other nodes except abnormal nodes.

[0076] Among them, each node election standard included in the node election strategy corresponds to the node requirements in the business services to be provided. For example, the node election standard may include network response speed, node data processing performance, storage capacity, etc., which is not limited in the embodiments of the present application.

[0077] In implementation, the cluster management tool determines a first target node from other nodes except abnormal nodes according to a preset node election strategy. The first target node is the node that best meets the node election criteria in the current cluster system.

[0078] Step 304: Add an attribute tag of a target attribute to the first target node, and update the node attribute of the first target node to the target attribute.

[0079] In implementation, the node attributes of each node in the cluster system are represented by attribute labels. Therefore, when a new node (i.e., the first target node) is elected in the cluster system to inherit the target attribute node of the original exception, the cluster management tool will add the attribute label of the target attribute to the first target node as an operation to update the node attributes of the first target node to the target attribute.

[0080] Step 306: According to the attribute label of the first target node and the cluster virtual access address, point the cluster virtual access address to the first target node to obtain a new target attribute node.

[0081] In implementation, in all nodes of the cluster system, the cluster management tool points the virtual access address (virtual IP address) to the first target node with the attribute tag of the target attribute, and the first target node is used as the new target attribute node to continue to execute the currently unfinished business service. After that, if the user initiates service requests for the same business service multiple times, the cluster system does not need to elect a node every time, and can directly determine that the new target attribute node will execute the business service based on the pointing relationship between the attribute tag and the virtual access address, thereby improving the business service efficiency of the cluster system.

[0082] Optionally, after adding a new node to the cluster system, restoring the original abnormal node from the isolation area, or deleting some nodes, if the user initiates a business service request, the nodes in the cluster system can be re-elected to ensure that the target attribute node elected in the cluster system is the optimal node that provides business services among all the nodes in the current cluster system.

[0083] In this embodiment, the first target node is elected, the node attribute of the target node is updated and the direction of the virtual access address in the cluster system is re-determined, and a new target attribute node is obtained to continue to provide business services, thereby ensuring the uninterrupted business services.

[0084] In one embodiment, the cluster management method further includes: if the node attribute of the abnormal node is a non-target attribute, correcting the abnormal node by using a preset abnormality processing strategy to obtain a corrected node with the non-target attribute.

[0085] In implementation, if the cluster management tool determines that the node attribute of the abnormal node is a non-target attribute, it means that the abnormal node is not currently performing any business services. At this time, processing the abnormal node will not affect the cluster system's provision of business services. Therefore, there is no need to put the abnormal node with non-target attributes into the isolation zone. The cluster management tool directly corrects the abnormal node through the preset abnormal processing strategy, and restores the performance of the abnormal node by modifying the node parameters and other operations, thereby obtaining a node that runs normally. After the correction, the node attribute of the node remains a non-target attribute. Figure 4 As shown, the cluster system includes three nodes A, B, and C, among which node A is a target attribute node (i.e., a node that is providing business services), and B and C are non-target attribute nodes. If node B or node C is an abnormal node, node B or node C is directly corrected in the cluster system without affecting the business services provided by the cluster system.

[0086] In this embodiment, by detecting the node attributes of the abnormal node, it is determined that the abnormal node is a node with non-target attributes, and thus will not affect the business services provided by the cluster system. Therefore, the abnormal problem of the abnormal node is directly corrected and processed to obtain a corrected normal operating node, thereby improving the node activity in the cluster system.

[0087] In one embodiment, after the abnormal node of the target attribute is placed in the isolation area, the number of nodes operating normally in the cluster system decreases accordingly. In order to ensure the number of surviving nodes in the cluster system, the cluster management personnel should be promptly informed of the node abnormality and the reduction in the number of nodes in the cluster system. Therefore, after step 104, the cluster management method also includes: generating alarm information of the abnormal node of the target attribute, and outputting and displaying the alarm information.

[0088] In implementation, during cluster management, if the node attribute of an abnormal node is detected as a target attribute, the cluster management tool will generate an alarm message of the target attribute node abnormality, and output and display the alarm message to inform the administrator of the cluster system. The generated alarm message can be a text alarm message and a voice alarm message, which is not limited in the embodiment of the present application.

[0089] In this embodiment, when the node attribute of the abnormal node is the target attribute, the abnormal node will be placed in an isolation area, preventing the cluster management system from performing corrective processing on the abnormal node, and also preventing the node from providing business services. Therefore, the cluster management tool generates alarm information for abnormal nodes with target attributes to promptly inform management personnel of the current operation status of the cluster system, thereby improving the timeliness of the cluster management.

[0090] In one embodiment, Figure 5 As shown, the specific processing process of step 102 includes the following steps:

[0091] Step 502: In response to a request for releasing isolation of an abnormal node in an isolation zone, the node attribute of the abnormal node is updated to a non-target attribute, and the node is added to the cluster system.

[0092] In implementation, when there are abnormal nodes in the isolation area, in order to maintain more available nodes in the cluster system, the user can restore the abnormal nodes in the isolation area to the cluster system. Specifically, the user sends a request to release isolation to the electronic device where the isolation area is located, and the electronic device responds to the request to release isolation by updating the node attribute of the abnormal node in the isolation area from the target attribute to the non-target attribute, and re-adds the node to the cluster system.

[0093] Step 504: when the node attribute of the abnormal node in the cluster system is a non-target attribute, the abnormal node is corrected according to a preset abnormality processing strategy to obtain a corrected node with a non-target attribute in the cluster system.

[0094] During implementation, in the cluster system, the node attributes of the nodes recovered from the isolation area are non-target attributes. At this time, when the node attributes of the abnormal nodes are non-target attributes, the cluster management tool can correct the abnormal nodes according to the preset exception handling strategy to obtain nodes with non-target attributes and normal operating status after correction.

[0095] like Figure 4 As shown, the abnormal node (node ​​A) in the isolation area is restored to the cluster system and a non-target attribute node is obtained that operates normally. Optionally, the non-target attribute node can be elected to become a target attribute node again when providing business services next time.

[0096] In this embodiment, the abnormal node in the isolation area is restored to the cluster system, becoming an abnormal node with non-target attributes, and the processing of the abnormal node will not affect the business services provided by the cluster system. Therefore, the abnormal problem of the abnormal node is directly corrected and processed to obtain a corrected normal operating node, thereby ensuring the number of surviving nodes in the cluster system and improving the activity of nodes in the cluster system.

[0097] In one embodiment, Figure 6 As shown, an example of a cluster management method is provided, which includes the following steps:

[0098] Step 601 : monitor the running status of each node in the cluster system, and determine the abnormal node in the cluster system according to the running status.

[0099] Step 602 , determine whether the node attribute of the abnormal node is the target attribute, if so, execute step 603 , if not, execute step 607 .

[0100] Step 603: Put the abnormal node into the isolation zone.

[0101] Step 604: determine a first target node among other nodes except the abnormal node, update the node attribute of the first target node to the target attribute, and obtain a new target attribute node.

[0102] Step 605: Generate warning information of abnormality of target attribute node, and output and display the warning information.

[0103] Step 606: In response to the isolation release request for the abnormal node in the isolation zone, the node attribute of the abnormal node is updated to a non-target attribute, and the node is added to the cluster system.

[0104] Step 607: When the node attribute of the abnormal node in the cluster system is a non-target attribute, the abnormal node is corrected according to a preset abnormality processing strategy to obtain a corrected node with a non-target attribute in the cluster system.

[0105] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0106] Based on the same inventive concept, the embodiment of the present application also provides a cluster management device for implementing the cluster management method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more cluster management device embodiments provided below can refer to the limitations of the cluster management method above, and will not be repeated here.

[0107] In one embodiment, Figure 7 As shown, a cluster management device 700 is provided, including: a monitoring module 710, a processing module 720 and an updating module 730, wherein:

[0108] A monitoring module 710 is used to monitor the operating status of each node in the cluster system and determine abnormal nodes in the cluster system according to the operating status;

[0109] The processing module 720 is used to put the abnormal node into an isolation zone if the node attribute of the abnormal node is a target attribute, the target attribute indicates that the current node is providing business services, and the isolation zone is used to block the cluster system from correcting the abnormal node;

[0110] The updating module 730 is used to determine a first target node among other nodes except the abnormal node, update the node attribute of the first target node to the target attribute, obtain a new target attribute node, and execute the business service through the new target attribute node.

[0111] By adopting this device, each node in the cluster system is monitored in real time. If the node attribute of the abnormal node is detected to be the target attribute, the abnormal node is directly placed in the isolation area, and then a new target attribute node is elected to perform business services, so that the cluster system can provide business services uninterruptedly.

[0112] In one embodiment, the monitoring module 710 is further used to monitor the heartbeat signal sent by each node in the cluster system;

[0113] If the heartbeat signal sent by the second target node does not meet the preset heartbeat signal detection condition, the second target node is determined to be an abnormal node.

[0114] In one embodiment, the updating module 730 is used to determine the first target node among other nodes except the abnormal node according to a preset node election strategy;

[0115] Adding an attribute tag of a target attribute to the first target node, and updating the node attribute of the first target node to the target attribute;

[0116] According to the attribute label of the first target node and the cluster virtual access address, the cluster virtual access address is pointed to the first target node to obtain a new target attribute node.

[0117] In one embodiment, the cluster management device 700 further includes:

[0118] The correction processing module is used to correct the abnormal node by using a preset abnormal processing strategy if the node attribute of the abnormal node is a non-target attribute, so as to obtain a corrected node with a non-target attribute.

[0119] In one embodiment, the cluster management device 700 further includes:

[0120] The alarm module is used to generate alarm information of abnormal target attribute nodes and output and display the alarm information.

[0121] In one embodiment, the cluster management device 700 further includes:

[0122] The isolation release module is used to respond to the isolation release request for the abnormal node in the isolation area, update the node attribute of the abnormal node to a non-target attribute, and add it to the cluster system;

[0123] The correction processing module is used to correct the abnormal node in the cluster system according to a preset abnormal processing strategy when the node attribute of the abnormal node is a non-target attribute, so as to obtain a corrected node with a non-target attribute in the cluster system.

[0124] Each module in the above cluster management device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0125] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a cluster management method is implemented.

[0126] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0127] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0128] Monitoring the operating status of each node in the cluster system, and determining abnormal nodes in the cluster system according to the operating status;

[0129] If the node attribute of the abnormal node is a target attribute, the abnormal node is placed in an isolation zone, the target attribute indicates that the current node is providing business services, and the isolation zone is used to block the abnormal node from performing business services and also block the cluster system from correcting the abnormal node;

[0130] A first target node is determined among other nodes except the abnormal node, a node attribute of the first target node is updated to the target attribute to obtain a new target attribute node, and a business service is executed through the new target attribute node.

[0131] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0132] Monitor the heartbeat signals sent by each node in the cluster system;

[0133] If the heartbeat signal sent by the second target node does not meet the preset heartbeat signal detection condition, the second target node is determined to be an abnormal node.

[0134] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0135] According to a preset node election strategy, a first target node is determined among other nodes except the abnormal node;

[0136] Adding an attribute tag of a target attribute to the first target node, and updating the node attribute of the first target node to the target attribute;

[0137] According to the attribute label of the first target node and the cluster virtual access address, the cluster virtual access address is pointed to the first target node to obtain a new target attribute node.

[0138] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0139] If the node attribute of the abnormal node is a non-target attribute, the abnormal node is corrected by a preset abnormality processing strategy to obtain a corrected node with the non-target attribute.

[0140] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0141] Generate an alarm message indicating that the target attribute node is abnormal, and output the alarm message for display.

[0142] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0143] In response to a request for releasing isolation of the abnormal node in the isolation zone, updating a node attribute of the abnormal node to a non-target attribute, and adding the node to the cluster system;

[0144] In the case that the node attribute of the abnormal node in the cluster system is the non-target attribute, the abnormal node is corrected according to a preset abnormality processing strategy to obtain a corrected node of the non-target attribute in the cluster system.

[0145] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0146] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0147] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0148] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0149] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0150] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A cluster management method, characterized in that: The method comprises: Monitoring the operating status of each node in the cluster system, and determining abnormal nodes in the cluster system according to the operating status; If the node attribute of the abnormal node is a target attribute, the abnormal node is placed in an isolation zone, the target attribute indicates that the current node is providing business services, and the isolation zone is used to block the abnormal node from performing business services and also block the cluster system from correcting the abnormal node; Determine a first target node among other nodes except the abnormal node, update the node attribute of the first target node to the target attribute, obtain a new target attribute node, and execute the business service through the new target attribute node; The method further comprises: If the node attribute of the abnormal node is a non-target attribute, the abnormal node is corrected by a preset abnormality processing strategy to obtain a corrected node with the non-target attribute.

2. The method according to claim 1, characterized in that The monitoring the operating status of each node in the cluster system and determining an abnormal node in the cluster system according to the operating status includes: Monitor the heartbeat signals sent by each node in the cluster system; If the heartbeat signal sent by the second target node does not meet the preset heartbeat signal detection condition, the second target node is determined to be an abnormal node.

3. The method according to claim 1, characterized in that The determining of a first target node among other nodes except the abnormal node, updating the node attribute of the first target node to the target attribute, and obtaining a new target attribute node includes: According to a preset node election strategy, a first target node is determined among other nodes except the abnormal node; Adding an attribute tag of a target attribute to the first target node, and updating the node attribute of the first target node to the target attribute; According to the attribute label of the first target node and the cluster virtual access address, the cluster virtual access address is pointed to the first target node to obtain a new target attribute node.

4. The method according to claim 1, characterized in that: If the node attribute of the abnormal node is the target attribute, after placing the abnormal node into the isolation zone, the method further includes: Generate an alarm message indicating that the target attribute node is abnormal, and output the alarm message for display.

5. The method according to claim 1, characterized in that The method further comprises: In response to a request for releasing isolation of the abnormal node in the isolation zone, updating a node attribute of the abnormal node to a non-target attribute, and adding the node to the cluster system; In the case that the node attribute of the abnormal node in the cluster system is the non-target attribute, the abnormal node is corrected according to a preset abnormality processing strategy to obtain a corrected node of the non-target attribute in the cluster system.

6. A cluster management device, characterized in that: The device comprises: A monitoring module, used to monitor the operating status of each node in the cluster system, and determine abnormal nodes in the cluster system according to the operating status; a processing module, configured to place the abnormal node into an isolation zone if the node attribute of the abnormal node is a target attribute, wherein the target attribute indicates that the current node is providing a business service, and the isolation zone is used to block the cluster system from performing a correction process on the abnormal node; An updating module, configured to determine a first target node among other nodes except the abnormal node, update the node attribute of the first target node to the target attribute, obtain a new target attribute node, and execute the business service through the new target attribute node; The device also includes: The correction processing module is used to correct the abnormal node by using a preset abnormal processing strategy if the node attribute of the abnormal node is a non-target attribute, so as to obtain a corrected node with a non-target attribute.

7. The device according to claim 6, characterized in that The device also includes: The isolation release module is used to respond to the isolation release request for the abnormal node in the isolation area, update the node attribute of the abnormal node to a non-target attribute, and add it to the cluster system; The correction processing module is used to correct the abnormal node in the cluster system according to a preset abnormal processing strategy when the node attribute of the abnormal node is a non-target attribute, so as to obtain a corrected node with a non-target attribute in the cluster system.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

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

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.