A dynamic load balancing method of Nginx based on WebSocket long connection
A balancing method and dynamic load technology, which is applied in resource allocation, program control design, instrumentation, etc., can solve the problem of setting the load information collection cycle, collecting load information without considering the JVM load problem, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0038] Such as figure 1 , 2 As shown, a Nginx dynamic load balancing method based on WebSocket long connection includes the following steps:
[0039] Step S1, start the server cluster, use Nginx as the WebSocket server, and the back-end server node as the WebSocket client, establish a WebSocket persistent connection, and send a heartbeat message to detect the status of the persistent connection. The persistent connection can make the back-end server node actively according to its own status Report weight changes.
[0040] It should be noted that the long connection can make the back-end server node actively report the weight change according to its own state. Compared with the short connection method of request-response, it solves the problem that in the request-response mode, the back-end server node can only wait for the request, and then Replying to the response message, it is impossible to actively make timely feedback according to its own status, and it is easy to mix w...
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