A method and system for cluster load balancing
A cluster load balancing and node technology, applied in the field of computer communication, can solve problems such as unable to reflect the current processing capacity in a timely and accurate manner, affect the processing performance of computer clusters, and cannot reasonably allocate connection requests, so as to achieve the effect of improving processing performance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0058] Embodiment 1 of the present invention provides a method for cluster load balancing, figure 1 A flowchart of the method is shown, the method includes the following steps:
[0059] Step S11: Obtain the performance parameters of each node in the cluster at regular intervals.
[0060] The cluster in the embodiment of the present invention is a whole formed by connecting multiple ordinary computers through a local area network. Each ordinary computer in the cluster is called a node. The performance parameters of a node reflect the current load situation and remaining processing capacity of the node. The performance parameter of the node in the embodiment of the present invention can comprise one parameter value or more than two parameter values, and these parameter values can be memory utilization rate, CPU utilization rate, response time, network bandwidth and number of surviving request connections (that is, connections waiting to be processed request), etc. Of course...
Embodiment 2
[0076] Different from Embodiment 1, the performance parameters of nodes in the cluster in Embodiment 2 of the present invention may include multiple parameter values, such as memory utilization, CPU utilization, response time, network bandwidth, and survival number of connections requested, etc.
[0077] figure 2 It is a schematic flowchart of a method for cluster load balancing in Embodiment 2 of the present invention, the method includes the following steps:
[0078] Step S21: Obtain the performance parameters of each node in the cluster at regular intervals.
[0079] This step is similar to the above-mentioned step S11, the difference is that the performance parameters of the nodes in this embodiment include multiple parameter values, and these parameter values can be memory utilization, CPU utilization, response time, network bandwidth, and surviving request connections number.
[0080] (1) Memory utilization:
[0081] Taking the Linux system as an example, the memo...
Embodiment 3
[0122] Embodiment 3 of the present invention provides a cluster load balancing method, which is different from Embodiment 2 in that a static rotation method is used in this embodiment to allocate nodes, and the content of this part will be described in detail below. image 3 A flowchart of the method is shown, the method includes the following steps:
[0123] Since steps S31 to S34 are the same as steps S21 to S24 in the second embodiment above, details will not be repeated here. For details, please refer to steps S21 to S24 in the second embodiment.
[0124] Step S35: Obtain the comprehensive load redundancy rate of each node according to the comprehensive load redundancy value of each node and the total comprehensive load redundancy value of the cluster.
[0125] Specifically, the following steps A and B can be used to obtain the comprehensive load redundancy rate of the node:
[0126] A: Obtain the total integrated load redundancy value L of the cluster (that is, the total...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 
