Micro-service load balancing optimization method based on dynamic feedback
A load balancing algorithm and load balancing technology, applied in the field of microservice architecture, can solve problems such as insufficient load information and failure to consider real-time server load information.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0047] The following will further describe the present invention. The invention includes the following steps:
[0048] Step 1, consistent hashing algorithm to allocate virtual node
[0049]The consistency hash is a dynamic expansion technology used to server clusters, which is widely used due to its good elastic horizontal extensibility. The traditional consistency hash uses a hash function, where Integer.max_Value represents the largest positive integer, ie 2 31 -1, the value obtained by it and the hash function is calculated, ensuring that the final target value falls in the range of [0, 2 31 -1] The hash ring.
[0050] Target = GetHashcode (Request.IPv4) & integer.max_value
[0051] Among them, the GetHashCode () method represents a hash value based on the input parameters; Request.IPv4 represents the IP address of the received request; the target represents the calculated position corresponding to the calculated request on the hash ring. This hash ring is usually 2 31 Compose,...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


