Load balancing method and device, Web servers and storage medium

A load balancing and server technology, applied to electrical components, transmission systems, etc., can solve problems such as server node service blocking, server node requests cannot obtain effective responses, etc., to improve business processing efficiency and reduce service congestion.

Inactive Publication Date: 2018-10-30
BEIJING BAIWU TECH CO LTD
View PDF10 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide a load balancing method, device, Web server, and storage medium to solve the problem that existing server node services are blocked when polling is used as a load balancing strategy in the prior art, resulting in failure of newly received requests by server nodes. Questions That Get Valid Responses

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Load balancing method and device, Web servers and storage medium
  • Load balancing method and device, Web servers and storage medium
  • Load balancing method and device, Web servers and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0022] Such as figure 1 As shown, it is a flow chart of the steps of the load balancing method in the embodiment of the present invention, the load balancing method is applied to the first Web server in the Web server cluster, and the Web server cluster also includes other Web servers other than the first Web server , the method includes:

[002...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention provides a load balancing method and device, Web servers and a storage medium. The method is applied to the first Web server in a Web server cluster. The method includes the steps that an HTTP request sent by an Nginx server is received, and the service type of a service requested by the HTTP request is acquired; when it is detected that a first service logic blocking value, corresponding to the service type, of the first Web server is larger than or equal to a preset blocking threshold value, the second Web server with a service logic blocking value, corresponding to the service type, in the Web server cluster being the minimum value is determined; an RPC message is sent to the second Web serer, wherein the RPC message carries service information of the requested service, and the second Web server processes the requested service according to the service information. Service forwarding between the Web servers in the Web server cluster is achieved, and the request response efficiency is improved.

Description

technical field [0001] The embodiment of the present invention relates to the technical field of Web cluster load balancing, and in particular to a load balancing method, device, Web server and storage medium. Background technique [0002] In large-scale Internet applications, load balancing is an essential node. Load balancing refers to evenly distributing requests to multiple servers for processing. Among them, the Web load balancing technology is a commonly used load balancing technology. The mainstream of existing web load balancing is to use Nginx as the relay for request forwarding, and distribute the request to one of the cluster load servers according to the configuration rules, and one server responds. [0003] Nginx includes five load balancing strategies: round robin, weight round robin, IP-hash, fair and URL-hash. Among them, in the round-robin strategy, requests are allocated to each application server in turn. At this time, if a certain server receives more r...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/08H04L29/06
CPCH04L67/02H04L67/1008H04L67/1014H04L67/1017H04L67/1001H04L67/60H04L67/133
Inventor 陈宝玉
Owner BEIJING BAIWU TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products