Method and device for load balancing
A load balancing and active technology, applied in the communication field, can solve load imbalance and other problems, achieve the effect of balancing load, efficient network service, and ensuring stability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0039] The embodiment of the present invention provides a load balancing method, which is applicable to the case of balancing the number of active connections handled by the server, and the method can be executed by a load balancing device, such as figure 2 As shown, the method specifically includes the following steps:
[0040] Step S201, setting the threshold value of the number of active connections accessed by each VIP (Virtual IP Address, virtual IP address) and the threshold value of the number of active connections accessed by each realserver (real server).
[0041] In this step, a director server (multi-load scheduler) can receive multiple VIPs to receive client requests. Since the number of active connections of the director server is limited, in order to prevent the number of active connections from being too large, causing the director server to crash, The number of active connections for VIP access needs to be limited. Therefore, set the active connection thresho...
Embodiment 2
[0049] Because some active connections received by realserver are long connections, some active connections are short connections. Therefore, when some realservers receive a new active connection, the previously received active connection is a long connection and has not been disconnected, and some realservers have a heavy load; when some realservers receive a new active connection, the previously received active connection The connection is short and has been disconnected. In the case of some realservers with light load, it is necessary to balance the load among the realservers. On the basis of Embodiment 1 of the present invention, Embodiment 2 of the present invention provides another load balancing method, such as image 3 shown, including the following steps:
[0050] Step S301, setting thresholds for the number of active connections accessed by each VIP and thresholds for the number of active connections accessed by each realserver.
[0051] Step S302, monitor the numb...
Embodiment 3
[0062] An embodiment of the present invention provides a load balancing device, which can perform the above load balancing method, such as Figure 4 As shown, the load balancing device includes: a threshold setting module 41 , a VIP monitoring module 42 and a realserver monitoring module 43 .
[0063] Threshold setting module 41 is used to set the active connection threshold of each virtual IP address VIP access and the active connection threshold of each real server realserver access; VIP monitoring module 42 is used to monitor the active connections of each VIP access If the number of active connections of any VIP access exceeds the threshold of the number of active connections of VIP access, the subsequent active connections of the VIP whose number of active connections exceeds the threshold of the number of active connections of VIP access are prohibited; the realserver monitoring module 43. It is used to monitor the number of active connections accessed by each realserver...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com