CN107645540A - The load-balancing method of web application systems - Google Patents
The load-balancing method of web application systems Download PDFInfo
- Publication number
- CN107645540A CN107645540A CN201710717465.2A CN201710717465A CN107645540A CN 107645540 A CN107645540 A CN 107645540A CN 201710717465 A CN201710717465 A CN 201710717465A CN 107645540 A CN107645540 A CN 107645540A
- Authority
- CN
- China
- Prior art keywords
- server
- load
- current request
- current
- chained lists
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Abstract
The invention belongs to computer information technology field, and in particular to the load-balancing method of web application systems, including IP chained lists are established, it is stored with server and IP corresponding relation in described IP chained lists;For any one current request, the IP of current request is obtained, server corresponding to the IP of the current request is searched in described IP chained lists, and current request is transmitted to the server process.The load-balancing method of the present invention also considers the resource using status of server simultaneously, current connection number state including memory usage and CPU usage and combination server, more excellent load-balancing performance can be achieved, and can effectively alleviate server host hardware resource utilization rate it is very high and connect number it is very low when carry out network response speed caused by load balancing it is slack-off, even server delay machine the problem of.
Description
Technical field
The invention belongs to computer information technology field, and in particular to the load-balancing method of web application systems.
Background technology
With increasing rapidly for website visiting amount, single server can not undertake the concurrently access of a large number of users.In order to
The disposal ability of computer system is improved, meets the needs of user's current traffic, must just use the common work of multiple servers
Make.In order to realize rational portfolio distribution between multiple network equipments of said function are completed, so as not to occur one
Equipment is excessively busy and remaining equipment does not make full use of, or even idle state, and then load-balancing technique occurs.
Load balancing is to be made up of a server set in a symmetrical manner multiple servers, and every server all has
Status of equal value, it individually can externally provide auxiliary of the service without other servers.By certain load balancing technology,
The request that outside is sent is evenly distributed on a certain server in symmetrical structure, and the server for receiving request is only
On the spot respond the request of client.Load balancing can mean allocation client request arrive server array, thereby quick obtaining is important
Data, solve largely concurrently to access service problem, this clustering technique can be obtained close to mainframe with minimum investment
Performance.
The content of the invention
In order to solve the technical problem of the load balancing of server request in the prior art, the present invention provides web applications system
The load-balancing method of system, is achieved especially by following technical scheme:
The load-balancing method of web application systems, it is characterised in that establish IP chained lists, be stored with described IP chained lists
The corresponding relation of server and IP;For any one current request, the IP of current request is obtained, is looked into described IP chained lists
Server corresponding to the IP of the current request is looked for, and current request is transmitted to the server process.
Described method also includes, if the IP of current request does not find corresponding server in IP chained lists, obtains institute
There is the resource using status that server is current, current request is transmitted to the minimum server of Current resource use state.
Described establishes IP chained lists, specifically includes, and counts all requests in 15 days, and obtains the IP of all requests,
Hash storage, and a server corresponding to each different IP are done for these IP.
Described obtains the current resource using status of Servers-all, and current request is transmitted into Current resource and uses shape
The minimum server of state, is specifically included, the CPU usage and memory usage of every server described in poll, judges each clothes
Whether the CPU usage of business device judges whether the memory usage of each server exceed memory threshold more than CPU threshold values;Obtain
CPU usage is not less than the Servers-all of CPU threshold values and memory usage not less than memory threshold, and by these servers
Service state is arranged to forward, service state described in poll for can forwarding state application server monitoring module, judge
The ratio of current the connection number and maximum number of connections of each server, the minimum application server of the ratio is defined as receiving
The server of current request.
Above technical scheme has following technique effect compared with prior art:
Load-balancing method under the web application protection of the present invention, it is solid by the way that the IP of same request and server are established
Fixed session control, while the load-balancing method of the present invention also considers the resource using status of server, including internal memory
Utilization rate and CPU usage and the current connection number state for combining server, more excellent load-balancing performance can be achieved, and can
Effectively alleviate server host hardware resource utilization rate it is very high and connect number it is very low when carry out load balancing caused by network
Response speed is slack-off, even server delay machine the problem of.
Brief description of the drawings
Fig. 1 is flow chart of the method for the present invention;
Embodiment
To make the purpose, technical scheme and advantage of embodiments of the invention clearer, below in conjunction with accompanying drawing to this hair
It is bright to be described in further detail.
A kind of load-balancing method of web application systems, such as Fig. 1, including IP chained lists are established, stored in described IP chained lists
There are server and IP corresponding relation;For any one current request, the IP of current request is obtained, in described IP chained lists
Server corresponding to the IP of the current request is searched, and current request is transmitted to the server process.
Further, described method also includes, if the IP of current request does not find corresponding server in IP chained lists
When, the current resource using status of Servers-all is obtained, current request is transmitted to the minimum clothes of Current resource use state
Business device.
Further, described IP chained lists of establishing specifically include, all requests in statistics 15 days, and obtain the institute ask the visitor in
The IP asked, Hash storage is done for these IP, obtain each IP cryptographic Hash, a server corresponding to different cryptographic Hash,
An and server corresponding to each different IP.
Further, the current resource using status of described acquisition Servers-all, current request is transmitted to currently
The minimum server of resource using status, is specifically included, the CPU usage and memory usage of every server described in poll,
Judge that the CPU usage of each server whether more than CPU threshold values, judges whether the memory usage of each server exceedes internal memory
Threshold value;CPU utilization rate threshold value may be configured as any one in 80%, 81%, 82%, 83%, 84%, 85% in the present embodiment
Individual, the threshold value of memory usage may be configured as any one in 75%, 76%, 77%, 78%, obtains CPU usage and does not surpass
Cross CPU threshold values and memory usage is not less than the Servers-all of memory threshold, and the service states of these servers is set
For that can forward, service state described in poll for can forwarding state application server monitoring module, judge each server
The ratio of current connection number and maximum number of connections, the minimum application server of the ratio is defined as receiving to the clothes of current request
Business device.
Claims (4)
- The load-balancing method of 1.web application systems, it is characterised in that establish IP chained lists, clothes are stored with described IP chained lists The corresponding relation of business device and IP;For any one current request, the IP of current request is obtained, is searched in described IP chained lists Server corresponding to the IP of the current request, and current request is transmitted to the server process.
- 2. load-balancing method as claimed in claim 1, it is characterised in that described method also includes, if current request When IP does not find corresponding server in IP chained lists, the current resource using status of Servers-all is obtained, by current request It is transmitted to the minimum server of Current resource use state.
- 3. load-balancing method as claimed in claim 1, it is characterised in that described establishes IP chained lists, specifically includes, statistics All requests in 15 days, and the IP of all requests is obtained, do Hash storage, and each different IP pairs for these IP The server answered.
- 4. load-balancing method as claimed in claim 1, it is characterised in that described obtains the current resource of Servers-all Use state, current request is transmitted to the minimum server of Current resource use state, specifically included, every clothes described in poll The CPU usage and memory usage of business device, judge that the CPU usage of each server whether more than CPU threshold values, judges each clothes Whether the memory usage of business device exceedes memory threshold;Obtain CPU usage not less than CPU threshold values and memory usage not less than The Servers-all of memory threshold, and the service state of these servers is arranged to forward, service state is described in poll Can forwarding state application server monitoring module, judge the ratio of current the connection number and maximum number of connections of each server Value, the minimum application server of the ratio is defined as receiving to the server of current request.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710717465.2A CN107645540A (en) | 2017-08-21 | 2017-08-21 | The load-balancing method of web application systems |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710717465.2A CN107645540A (en) | 2017-08-21 | 2017-08-21 | The load-balancing method of web application systems |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107645540A true CN107645540A (en) | 2018-01-30 |
Family
ID=61110808
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710717465.2A Pending CN107645540A (en) | 2017-08-21 | 2017-08-21 | The load-balancing method of web application systems |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107645540A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109165096A (en) * | 2018-08-20 | 2019-01-08 | 四川长虹电器股份有限公司 | The caching of web cluster utilizes system and method |
CN110198359A (en) * | 2019-07-08 | 2019-09-03 | 紫光云技术有限公司 | A kind of load-balancing method and device |
CN110290556A (en) * | 2019-05-15 | 2019-09-27 | 江苏大学 | A kind of balancing resource load dispatching method based on the optimum control calculus of variations |
CN110839086A (en) * | 2019-12-23 | 2020-02-25 | 吉林省民航机场集团公司 | High-concurrency load balancing processing method |
CN113082722A (en) * | 2021-03-15 | 2021-07-09 | 上海硬通网络科技有限公司 | Game management system and game management method |
CN113630329A (en) * | 2021-07-20 | 2021-11-09 | 湖北美和易思教育科技有限公司 | Load balancing method and system based on user access amount and readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101741907A (en) * | 2009-12-23 | 2010-06-16 | 金蝶软件(中国)有限公司 | Method and system for balancing server load and main server |
CN101867976A (en) * | 2010-07-22 | 2010-10-20 | 杭州华三通信技术有限公司 | Load balancing method based on mobile terminal number and equipment |
US20120284411A1 (en) * | 2001-07-24 | 2012-11-08 | International Business Machines Corporation | Dynamic http load balancing |
CN106713499A (en) * | 2017-01-23 | 2017-05-24 | 天地融科技股份有限公司 | Load balancing method, equipment and system |
CN107070983A (en) * | 2017-01-23 | 2017-08-18 | 天地融科技股份有限公司 | A kind of load-balancing method, equipment and system forwarded based on address |
-
2017
- 2017-08-21 CN CN201710717465.2A patent/CN107645540A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120284411A1 (en) * | 2001-07-24 | 2012-11-08 | International Business Machines Corporation | Dynamic http load balancing |
CN101741907A (en) * | 2009-12-23 | 2010-06-16 | 金蝶软件(中国)有限公司 | Method and system for balancing server load and main server |
CN101867976A (en) * | 2010-07-22 | 2010-10-20 | 杭州华三通信技术有限公司 | Load balancing method based on mobile terminal number and equipment |
CN106713499A (en) * | 2017-01-23 | 2017-05-24 | 天地融科技股份有限公司 | Load balancing method, equipment and system |
CN107070983A (en) * | 2017-01-23 | 2017-08-18 | 天地融科技股份有限公司 | A kind of load-balancing method, equipment and system forwarded based on address |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109165096A (en) * | 2018-08-20 | 2019-01-08 | 四川长虹电器股份有限公司 | The caching of web cluster utilizes system and method |
CN110290556A (en) * | 2019-05-15 | 2019-09-27 | 江苏大学 | A kind of balancing resource load dispatching method based on the optimum control calculus of variations |
CN110290556B (en) * | 2019-05-15 | 2022-10-25 | 江苏大学 | Resource load balancing scheduling method based on optimal control variational method |
CN110198359A (en) * | 2019-07-08 | 2019-09-03 | 紫光云技术有限公司 | A kind of load-balancing method and device |
CN110839086A (en) * | 2019-12-23 | 2020-02-25 | 吉林省民航机场集团公司 | High-concurrency load balancing processing method |
CN113082722A (en) * | 2021-03-15 | 2021-07-09 | 上海硬通网络科技有限公司 | Game management system and game management method |
CN113630329A (en) * | 2021-07-20 | 2021-11-09 | 湖北美和易思教育科技有限公司 | Load balancing method and system based on user access amount and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107645540A (en) | The load-balancing method of web application systems | |
US20190182351A1 (en) | Route selection method and system, network acceleration node, and network acceleration system | |
Nakai et al. | Load balancing for internet distributed services using limited redirection rates | |
CN109672711B (en) | Reverse proxy server Nginx-based http request processing method and system | |
WO2015096681A1 (en) | Method and device for processing service access | |
CN103220354A (en) | Method for achieving load balancing of server cluster | |
CN110505319A (en) | A kind of RS485 is from device address auto-allocation method and system | |
US9525727B2 (en) | Efficient and scalable pull-based load distribution | |
CN108933829A (en) | A kind of load-balancing method and device | |
CN104065759A (en) | Method for improving utilization efficiency of NAT address pool resource and device thereof | |
CN102045396A (en) | Load balancing method of server document | |
CN106294472A (en) | The querying method of a kind of Hadoop data base HBase and device | |
CN108055338B (en) | ISCSI access load balancing method | |
CN103458013A (en) | Streaming media server cluster load balancing system and balancing method | |
US10476746B2 (en) | Network management method, device, and system | |
CN107689878A (en) | TCP length connection SiteServer LBSs based on name scheduling | |
CN104461727A (en) | Memory module access method and device | |
CN107835262A (en) | A kind of streaming media server dynamical load distribution method | |
CN106060131B (en) | A kind of method and apparatus for distributing dns server | |
CN114006863A (en) | Multi-core load balancing cooperative processing method and device and storage medium | |
CN102932269A (en) | Method and device for balancing load | |
CN104852859A (en) | Aggregate interface service processing method and aggregate interface service processing equipment | |
CN116708450A (en) | Load balancing method, load balancing device, electronic equipment and computer readable storage medium | |
CN101741556B (en) | Method and system for accessing Internet | |
CN101599857A (en) | Detect method, device and the network measuring system that inserts number of host of sharing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180130 |