Fault handling method and system for a cluster node
A fault handling method and node technology, applied in the field of communications, can solve problems such as split-brain, the inability of the cluster to provide services to the outside world, and the impact of client business, so as to highlight substantive features, improve stability and scene adaptability, and avoid split-brain effect of risk
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0072] like figure 1 As shown, this embodiment provides a method for troubleshooting cluster nodes, including the following steps:
[0073] S1: Add a node information database to the cluster, obtain the information of all nodes in the cluster and store it in the node information database.
[0074] Wherein, the data stored in the node information database includes: node service information, node information, cluster information and fault handling node entries. The node service information includes service name, service start time and service status information; the node information includes node start time, node CPU usage and the number of clients connected to the node; the cluster information includes the number of nodes in the cluster , node state information and cluster state information; the fault processing node bar is used to store the current fault processing node label.
[0075] S2: After the cluster is started and the client is connected to the cluster nodes, the nod...
Embodiment 2
[0089] This embodiment also provides a fault handling method for cluster nodes, including:
[0090] 1. After the node is started, the cluster adds a new node information database, and starts a timing event to obtain the information of each node and store it in the updated node information database.
[0091] Among them, the following information is stored in the node information database;
[0092] Node service information: service name, service start time, service status information;
[0093] Information about this node: node startup time, CPU usage, client connection number information;
[0094] Cluster information: number of nodes, status of each node, cluster status;
[0095] A failover node entry for storing the failover node label.
[0096] 2. After the cluster is started and the client is connected to the cluster nodes, the above information is regularly updated to the node information database, and the health status of the nodes is determined according to the sorting ...
Embodiment 3
[0107] Based on Example 1, such as figure 2 As shown, the present invention also discloses a fault handling system for cluster nodes, including: a database building unit 1 , a sorting unit 2 , a storage unit 3 and a node selection unit 4 .
[0108] The database building unit 1 is used to add a node information database in the cluster, obtain information of all nodes in the cluster and store it in the node information database.
[0109] The sorting unit 2 is used to regularly update the node information database after the cluster is started and the client is connected to the cluster nodes, and determine the ranking of the health status of the nodes according to the data stored in the node information database using a sorting algorithm.
[0110] Wherein, the sorting unit 2 specifically includes:
[0111] The first scoring module is used to determine the state score of each node according to the node state information;
[0112] The second scoring module is used to determine th...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

