CN102217247B - Method, apparatus and system for implementing multiple web application requests scheduling - Google Patents

Method, apparatus and system for implementing multiple web application requests scheduling Download PDF

Info

Publication number
CN102217247B
CN102217247B CN200980118720.5A CN200980118720A CN102217247B CN 102217247 B CN102217247 B CN 102217247B CN 200980118720 A CN200980118720 A CN 200980118720A CN 102217247 B CN102217247 B CN 102217247B
Authority
CN
China
Prior art keywords
load
server
web
web server
domain name
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.)
Active
Application number
CN200980118720.5A
Other languages
Chinese (zh)
Other versions
CN102217247A (en
Inventor
陈普
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Cloud Computing Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN102217247A publication Critical patent/CN102217247A/en
Application granted granted Critical
Publication of CN102217247B publication Critical patent/CN102217247B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Abstract

A method, an apparatus and a system for implementing multiple Web application requests scheduling are disclosed by the embodiments of the present invention, which relate to the field of communication technology and are invented for processing application requests for plenty of Web sites simultaneously. The method of the present invention comprises: receiving a domain name resolution request sent from a domain name server; assigning at least one load balance server for the domain name server according to the domain name resolution request; receiving a request for assigning Web server processessent from the load balance server which serves the domain name server; assigning at least one Web server process for the load balance server according to the request for assigning Web server processes, so that the load balance server sends an HTTP request of a user terminal to the Web server process. The embodiments of the present invention are mainly applied in a distribution network.

Description

Realize method, the Apparatus and system of the scheduling of many Web application request
Technical field
The present invention relates to communication technical field, relate in particular to a kind of method, Apparatus and system of many Web of realization application request scheduling.
Background technology
In the prior art, the technology based on HTTP (Hypertext Transfer Protocol, HTML (Hypertext Markup Language)) the extensive Web of protocol construction website is very ripe.
In the logic frame of the extensive Web website of Gou Jianing, subscriber terminal side mainly refers to user browser, as IE, Firefox etc. in the prior art.Comprise at server side: domain name resolution server (Domain Name System, DNS), load-balanced server (Load Balance Server, LBS), Web Server (Web server).Wherein, described DNS be used for to receive the DNS request of user browser, selects the LBS server according to specific algorithm, and the IP address of the LBS server selected is returned to described user browser.Described LBS server is used for receiving the HTTP request of described user browser, is that described user browser is selected Web server according to specific algorithm, and described HTTP request is transmitted to described Web server.Described Web server for the treatment of the HTTP request of described user browser, and after finishing dealing with, returns the HTTP processing response to described user browser.
Wherein, above-mentioned specific algorithm comprises: wheel is scheduling (or poll) (Round Robin Scheduling) algorithm, weighted round robin (or poll) scheduling (Weighted Round-Robin Scheduling) algorithm, Source Hashing Scheduling (Source Hashing Scheduling) algorithm, dynamic feedback of load equalization algorithm etc.
But in realizing process of the present invention, the inventor finds:
Because the Web website runs on the Web server, and utilizes logical architecture of the prior art can only serve limited several Web websites.When the Web website of a large amount of (10,000,100,000 even more) runs on the Web server platform that comprises several Web servers jointly, utilize existing framework to be difficult to common the deployment and widely apply.
Summary of the invention
The embodiment of the invention provides a kind of method, Apparatus and system of many Web of realization application request scheduling, can handle the application request of a large amount of Web websites simultaneously.
The embodiment of the invention adopts following technical scheme:
A kind of method that realizes the scheduling of many Web application request comprises:
The domain name mapping request that reception is sent by name server;
Be at least one load-balanced server of domain name server-assignment according to the domain name analysis request;
Be received as the distribution Web server process requested of the load-balanced server transmission of domain name server service;
According to described distribution Web server process requested, for described load-balanced server distributes at least one Web server process, make described load-balanced server that the HTTP request of described user terminal is sent to described Web server process.
A kind of device of realizing the scheduling of many Web application request comprises:
The first request receiving element is used for receiving the domain name mapping request that is sent by name server;
First allocation units, being used for according to the domain name analysis request is at least one load-balanced server of domain name server-assignment;
The second request receiving element is for the distribution Web server process requested of the load-balanced server transmission that is received as the domain name server service;
Second allocation units, be used for according to described distribution Web server process requested, for described load-balanced server distributes at least one Web server process, make described load-balanced server the HTTP request of described user terminal can be sent to described Web server process.
A kind of system that realizes the scheduling of many Web application request comprises: name server, management control unit, at least one load-balanced server and at least one Web server;
Wherein, the domain name server is used for sending the domain name mapping request to described management control unit, and from described management control unit for being defined as the load-balanced server of its service the load-balanced server of its distribution;
Management control unit, the domain name mapping request that is used for according to the domain name server is at least one load-balanced server of domain name server-assignment; Be received as the distribution Web server process requested of the load-balanced server transmission of domain name server service, for described load-balanced server distributes at least one Web server process;
Described load-balanced server, being used for from described management control unit is the Web server process selection Web server process of its distribution, the HTTP request of described user terminal is sent to the Web server process of selection;
Described Web server is for the treatment of the HTTP request of described user terminal.
Method, the Apparatus and system of the scheduling of many Web of the described realization of embodiment of the invention application request, by the domain name mapping request of management control unit according to name server, load-balanced server is carried out dispatching management, namely from a plurality of load-balanced servers, select to provide for name server the load-balanced server of service for the domain name server; Simultaneously, by the distribution Web server process requested of described management control unit basis by the selected load-balanced server of domain name server, the Web server process is carried out dispatching management, namely is the Web server process that described load-balanced server is selected HTTP request that can the process user terminal from a plurality of Web server processes.Therefore, utilize the embodiment of the invention, need not the domain name of manual configure user terminal request on load-balanced server and the corresponding relation of Web server, thereby can handle the application request of a large amount of Web websites simultaneously.
Description of drawings
In order to be illustrated more clearly in the technical scheme of the embodiment of the invention, the accompanying drawing of required use is done an introduction simply in will describing embodiment below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 realizes the flow chart of the method for many Web application request scheduling for the embodiment of the invention;
Fig. 2 realizes the schematic representation of apparatus of many Web application request scheduling for the embodiment of the invention;
Fig. 3 realizes first structure chart of the device of many Web application request scheduling for the embodiment of the invention;
Fig. 4 realizes second structure chart of the device of many Web application request scheduling for the embodiment of the invention;
Fig. 5 realizes the 3rd structure chart of the device of many Web application request scheduling for the embodiment of the invention;
Fig. 6 realizes the schematic diagram of the system of many Web application request scheduling for the embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Need to prove that in embodiments of the present invention, the concept of " in a large number " refers to 10,000,100,000 even more.Certainly, the embodiment of the invention also can be applicable among the scene of prior art, thereby reaches better effect.
For handling the application request of a large amount of Web websites simultaneously, as shown in Figure 1, the embodiment of the invention realizes that the method for many Web application request scheduling comprises the steps:
Step 11, management control unit receive the domain name mapping request (DNS request) that is sent by name server.
Wherein, in described DNS request, the domain name of portability user terminal requests is carried out domain name mapping with convenient described management control unit.In addition, in described DNS request, also can include the IP address information of source address, so that the domain name server determines to send to it user terminal of domain name analysis request.
Step 12, described management control unit are at least one load-balanced server of domain name server-assignment according to the domain name analysis request.
In real system, the quantity of described load-balanced server may have 100 even more.The initiatively monitoring in real time or monitor load data and the operation conditions of each load-balanced server in real time according to the information that each load-balanced server reports of described management control unit selects to provide for the domain name server load-balanced server of service then.Wherein said load data can comprise the CPU usage of each load-balanced server, memory usage, bandwidth utilization rate etc.
When selecting load-balanced server, described management control unit can be selected according to load-balancing algorithm.For example described management control unit can be according to the loading condition of each load-balanced server in the system, select at least one minimum load-balanced server of load, and the IP address of described load-balanced server and load information be stored in the load-balanced server tabulation, send described load-balanced server tabulation to the domain name server then, make the domain name server select load-balanced server according to the load information of each load-balanced server.
Wherein, described load information can comprise the weight of the load-balanced server of selection, and at this moment, the domain name server can directly be selected load-balanced server according to described weight.Perhaps described load information can comprise the loading condition of the load-balanced server of selection.When described load information comprises the loading condition of load-balanced server of selection, calculate the weight of each load-balanced server by the domain name server according to described loading condition, and then select load-balanced server according to described weight.Perhaps described load information also can comprise weight and the loading condition of the load-balanced server of being selected by described management control unit simultaneously, and this moment, the domain name server still can directly be selected load-balanced server according to described weight.
In addition, after the DNS request that at every turn receives user terminal, all will can offer the information of the load-balanced server of service to management control unit inquiry by the domain name server, the domain name server also can be preserved described load-balanced server tabulation.
And when carrying the domain name of user terminal requests in the domain name analysis request, the domain name that described management control unit also can be asked described user terminal after receiving the domain name analysis request is resolved.Owing to need the domain name of cache user terminal request and the corresponding relation of Web server at load-balanced server, after described management control unit is resolved certain domain name A of user terminal requests, when the identical domain name of user terminal requests is arranged again, since before buffer memory cross corresponding relation between this domain name A and the Web server, therefore, after described management control unit was resolved this domain name A again, load-balanced server is the corresponding relation between buffer memory this domain name A and the Web server no longer.Therefore, this just makes needn't store a large amount of domain names and the corresponding relation of Web server on the load-balanced server, thereby saves memory space.
Step 13, described management control unit are received as the distribution Web server process requested of the load-balanced server transmission of domain name server service.
The load-balanced server of being selected by the domain name server is after the HTTP request that receives user terminal, with URL (the Uniform Resource Locator that analyzes in the described HTTP request, URL(uniform resource locator)) information, and obtain the actual domain name that user terminal is asked according to HOST information among the URL (the Host header of Http agreement).Then, described load-balanced server can be carried at described actual domain name in the described distribution Web server process requested and send to described management control unit.
Step 14, described management control unit are according to described distribution Web server process requested, for described load-balanced server distributes at least one Web server process, make described load-balanced server that the HTTP request of described user terminal is sent to described Web server process.
In concrete the application, domain name is the sign of Web website, and domain name can only be unique corresponding to a Web website, therefore, described management control unit is after receiving described distribution Web server process requested, can be index with described actual domain name at first, obtain the Web site information corresponding with the actual domain name of user terminal requests described in the described distribution Web server process requested according to the domain name of in described management control unit, storing and the corresponding relation of Web site information.Then, judge whether to exist for the Web server process of described Web website service according to described Web site information.
When existing for the Web server process of described Web website service, described management control unit is at least one Web server process of domain name server-assignment according to the Web server process of storage and the corresponding relation of Web website.When not existing for the Web server process of described Web website service, described management control unit distributes at least one Web server process for described Web website again.At this moment, described management control unit can be by choosing the non-vanishing Web server host computer system of the minimum and available Web server number of processes of load in the Web server host computer systems all in the system, and to ask described Web server host computer system be that described Web website distributes the Web server process.
Need to prove, in real system, may there be a plurality of Web servers, i.e. the Web server host computer system, and may move a plurality of (100 even more) Web server process in each Web server host computer system, each Web server process is wherein monitored different ports.Each load-balanced server is transmitted at each Web server process when the HTTP request of transmitting user terminal.Therefore, just can each Web server process of unique identification as long as obtain the port numbers of the IP address of Web server host computer system and internal web server processes.
Therefore, described management control unit is the process that the load-balanced server of described selection distributes the Web server process, can provide the IP address of Web server host computer system of service and the port numbers of internal web server processes to offer the process that the described load-balanced server of being selected by name server provides service exactly for the load-balanced server of described selection.
Because described management control unit may distribute one or more Web server processes for the load-balanced server of described selection, therefore, the load-balanced server of being selected by the domain name server can be selected a Web server process according to load-balancing algorithm.The load-balanced server of described selection can be according to the IP address of the Web server host computer system of selecting and the port numbers of internal web server processes then, by HTTP, CGI (common gateway interface) or other modes the HTTP request of user terminal is transmitted to described Web server process.
As seen from the above, the method of many Web of the described realization of embodiment of the invention application request scheduling, by the domain name mapping request of management control unit according to name server, load-balanced server is carried out dispatching management, namely from a plurality of load-balanced servers, select to provide for name server the load-balanced server of service for the domain name server; Simultaneously, by the distribution Web server process requested of described management control unit basis by the selected load-balanced server of domain name server, the Web server process is carried out dispatching management, namely is the Web server process that described load-balanced server is selected HTTP request that can the process user terminal from a plurality of Web server processes.Therefore, utilize the embodiment of the invention, need not the domain name of manual configure user terminal request on load-balanced server and the corresponding relation of Web server, thereby can handle the application request of a large amount of Web websites simultaneously.
Consider energy conservation characteristic, in the application request of handling a large amount of Web websites, described management control unit also can carry out following processing:
(1), the load-balanced server in the system is carried out energy-saving distribution, namely according to the total load degree of each load-balanced server in the system, increase or reduce the quantity of the load-balanced server of service.
In this process, if the total load degree of all load-balanced servers is than higher (surpassing 70% as overall load), the management and dispatching unit will start the load-balanced server of more (somes).If the total load degree of all load-balanced servers lower (being lower than 40% as overall load), the management and dispatching unit will stop some load-balanced servers.
Specific implementation can be: when load-balanced server was not enough, the management and dispatching unit will increase load-balanced server newly as the load-balanced server of giving name server to be allocated when being domain name server-assignment load-balanced server; When the load surplus need stop load-balanced server, the management and dispatching unit was when being domain name server-assignment load-balanced server, with the load balancing that can not distribute these preparations to stop to name server.When some load-balanced server is not handled the HTTP request in a very long time, determine that these load balancing services need stopper, so just can stop by modes such as shutdown.
In addition, the IP address of the load-balanced server that described needs stop can be distributed to other load-balanced server by described management control unit.And described management control unit generally is to select the lower load-balanced server of load to distribute in a minute timing.Like this, can prevent that user terminal from constantly issuing HTTP request the load-balanced server that has stopped.
(2), according to the total load degree of each Web server host computer system in the system, increase or reduce the quantity of the Web server host computer system of service.
In the specific implementation process, described management and dispatching unit will calculate whole loading level after each Web server host computer system load of statistics.If overall load surpasses the peak of setting, then the management and dispatching unit will start one or more new Web server host computer systems.If overall load is lower than the minimum of setting, then the management and dispatching unit one or more Web server host computer systems that will control low load stop, and the Web server process of moving on these Web server host computer systems is transferred to other Web server host computer systems.Wherein the mode of Zhuan Yiing can be, on the Web server host computer system that stops for needs the Web server process of promising Web website service, described management control unit will start new Web server process in other Web server host computer systems, and the new Web server number of processes of startup is consistent with the Web server process that need stop.And the Web website service that the new Web server process that starts will be served for the Web server process that needs stop.Then, all Web server processes are set to and do not receive new solicited status on the Web server host computer system that described management control unit stops needs again.Each the Web server host computer system that stops if desired as 1 minute, has not had the Web request to handle in a period of time, and then this Web server host computer system can be closed, as shutdown, standby etc.
(3), described management control unit also can be controlled the life cycle of each Web server process.
In concrete the application, the multipotency of each Web server process is a Web website service (but being not that finger must be the service of a Web website), each Web website is not only to have a Web server process to be its service yet, but a Web website can not have the Web server process to be its service when just being deployed.When certain Web website had just produced visit, the management and dispatching unit can be controlled a Web server process and be this Web website service.When the visit capacity of described Web website was increased to some, described management control unit can be controlled new Web server process and come to be this Web website service.When the visit capacity of certain Web website reaches certain predetermined data, the mode that can round by the per second visit capacity/50+1 of certain Web website is its quantity of distributing the Web server process.
For example the per second visit capacity of certain Web website is 1 o'clock, will have a Web server process to be this Web website service; When the per second visit capacity increases to 50, start two Web server processes.And when the visit capacity rank of this Web website reduces, management control unit also will reduce the quantity of Web server process.
Based on described above, according to the variation of the Web server number of processes of Web website needs, the life cycle of Web server process self also might be changed.It can not be any Web website service during the Web server process initiation, and when certain Web website need increase the Web server process and serves for it, the management and dispatching unit may be controlled this Web server process and load this Web website, this just causes the Web server process status to transfer " for the service of x website " to, and when the minimizing of x site volume, the management and dispatching unit may be controlled this Web server process and stop service, and the mode that wherein stops can be to kill this process or other modes.
By above several processing modes, utilize the described method of the embodiment of the invention, reached energy-conservation effect.
In addition, in the described method of the embodiment of the invention, over-burden when certain Web server process, for example per second need be handled a large amount of requests or all Web server processes all at work, described management control unit also can be regulated the treatment state of each Web server process, improves treatment effeciency.Specifically be, described management control unit can at first obtain the present load information of described each Web server process, then according to described present load information, also namely the utilance of this Web server process is high to a certain degree the time more than or equal to first predetermined threshold value when the present load of described Web server process, and whether the Web website of determining described Web server process service also has other Web server processes of service.If do not have, then be that described Web website distributes the Web server process; If have, then when the present load of described other Web server processes during all more than or equal to second predetermined threshold value, redistribute the Web server process, when the present load of described other Web server processes during less than second predetermined threshold value, be adjusted into the weight of the Web server process of described Web website service, with the reference of the Web server process of selecting process user terminal HTTP request as load-balanced server.
Wherein, described first predetermined threshold value is represented the high degree of certain Web server process utilance, and described second predetermined threshold value is represented the low degree of certain Web server process utilance; And described first predetermined threshold value and second predetermined threshold value can be according to system's practical operation situation, and personnel set up on their own by the system running state monitoring, and for example described first predetermined threshold value can be 70%, the second predetermined threshold value and can be 40%.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in above-described embodiment method, be to instruct relevant hardware to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
As shown in Figure 2, the embodiment of the invention also provides a kind of device of many Web of realization application request scheduling, comprising:
The first request receiving element 31 is used for receiving the domain name mapping request that is sent by name server; First allocation units 32, being used for according to the domain name analysis request is at least one load-balanced server of domain name server-assignment; The second request receiving element 33 is for the distribution Web server process requested of the load-balanced server transmission that is received as the domain name server service; Second allocation units 34, be used for according to described distribution Web server process requested, for described load-balanced server distributes at least one Web server process, make described load-balanced server that the HTTP request of described user terminal is sent to described Web server process.
Wherein, as shown in Figure 3, described first distributes receiving element 32 to comprise: select module 321, be used for the loading condition according to each load-balanced server of system, select at least one minimum load-balanced server of load; Memory module 322 is stored in the load-balanced server tabulation for the IP address of described at least one load-balanced server that will select and the weight of correspondence; Sending module 323 is used for sending described load-balanced server tabulation to the domain name server, makes the domain name server select load-balanced server according to the weight of the load-balanced server in the described load-balanced server tabulation.
Described second allocation units 34 comprise: request analysis module 341 is used for obtaining the Web site information corresponding with the actual domain name of user terminal requests described in the described distribution Web server process requested; Judge module 342 is used for judging whether to exist for the Web server process that described Web website is served according to described Web site information; Distribution module 343 is used for when existing for the Web server process of described Web website service, is at least one Web server process of domain name server-assignment according to the Web server process of storage and the corresponding relation of Web website; When not existing for the Web server process of described Web website service, select to be used for loading the Web server host computer system of described Web website, and to ask described Web server host computer system be that described Web website distributes the Web server process.
When selecting to load the Web server host computer system of described Web website, choose the non-vanishing Web server host computer system of the minimum and available Web server number of processes of load in can be from the system all Web server host computer system of described distribution module, and to ask described Web server host computer system be that described Web website distributes the Web server process.
As seen from the above, utilize the device of the embodiment of the invention, can to the load-balanced server dispatching management, namely from a plurality of load-balanced servers, select to provide for name server the load-balanced server of service for the domain name server according to the domain name mapping request of name server; Simultaneously, distribution Web server process requested according to the load-balanced server of described selection, the Web server process is carried out dispatching management, namely is the Web server process that described load-balanced server is selected HTTP request that can the process user terminal from a plurality of Web server processes.Therefore, utilize the embodiment of the invention, need not the domain name of manual configure user terminal request on load-balanced server and the corresponding relation of Web server, thereby can handle the application request of a large amount of Web websites simultaneously.
In addition, in the domain name analysis request, can include the domain name of user terminal requests, and the IP address of described user terminal etc.As shown in Figure 4, needn't store a large amount of domain names and the corresponding relation of Web server for making on the load-balanced server, thereby saving memory space, described device also can comprise: domain name mapping unit 35 is used for the domain name of the described user terminal requests that is carried at the domain name analysis request is resolved.
In order to reach energy-conservation effect, as shown in Figure 4, the described device of the embodiment of the invention also can comprise: control unit 36, be used for the total load degree according to each load-balanced server of system, and increase or reduce the quantity of the load-balanced server of service; Perhaps according to the total load degree of each web host system in the system, increase or reduce the quantity of the web host system of service.
Perhaps, as shown in Figure 5, in order to improve the treatment effeciency of each Web server treatment progress, the described device of the embodiment of the invention also can comprise: information acquisition unit 37, for the present load information of obtaining described each Web server process; Judging unit 38 is used for according to described present load information, and when the present load of described Web server process during more than or equal to first predetermined threshold value, whether the Web website of determining described Web server process service also has other Web server processes of service; The 3rd allocation units 39, be used for when the judged result of described judging unit for not the time, be described Web website distribution Web server process; When the judged result of described judging unit 38 when being, if the present load of described other Web server processes is all more than or equal to second predetermined threshold value, then redistribute the Web server process, if the present load of described other Web server processes, then is adjusted into the weight of the Web server process of described Web website service less than second predetermined threshold value.
Wherein, identical among the meaning of described first predetermined threshold value and second predetermined threshold value and the method embodiment can be according to system's practical operation situation, and personnel set up on their own by the system running state monitoring, for example described first predetermined threshold value can be 70%, the second predetermined threshold value and can be 40%.
In addition, the embodiment of the invention also provides a kind of system of many Web of realization application request scheduling.
As shown in Figure 6, described system comprises: name server 41, management control unit 42, at least one load-balanced server 43 and at least one Web server 44.
Wherein, domain name server 41 is used for sending the domain name mapping request to described management control unit, and from described management control unit for being defined as the load-balanced server of its service the load-balanced server of its distribution.Management control unit 42, the domain name mapping request that is used for according to the domain name server is at least one load-balanced server of domain name server-assignment; The distribution Web server process requested that is received as the load-balanced server transmission of domain name server service is that described load-balanced server distributes at least one Web server process; Wherein, in described distribution Web server process requested, carry the actual domain name of described user terminal requests.Described load-balanced server 43, being used for from described management control unit is the Web server process selection Web server process of its distribution, the HTTP request of described user terminal is sent to the Web server process of selection.Described Web server 44 is for the treatment of the HTTP request of described user terminal.
Wherein, the interface between described management control unit and the name server is the F1 interface, and the interface between described management control unit and the load-balanced server is the F2 interface, and the interface between described management control unit and each Web server is the F3 interface.
In addition, described management control unit is when being at least one load-balanced server of domain name server-assignment, loading condition according to each load-balanced server in the system, select at least one minimum load-balanced server of load, and the IP address of described at least one load-balanced server that will select and load information are stored in the load-balanced server tabulation, and send the tabulation of described load-balanced server to the domain name server, and the domain name management server also is used for preserving described load-balanced server tabulation.
And, in the domain name analysis request, can include the domain name of user terminal requests and the IP address of described user terminal etc.Therefore, described management control unit also is used for according to the domain name analysis request domain name of described user terminal requests being resolved.Make and to store a large amount of domain names and the corresponding relation of Web server on the load-balanced server, thereby save memory space.
In order to reach energy-conservation effect, described management control unit also is used for the total load degree according to each load-balanced server of system, increases or reduce the quantity of the load-balanced server of service; Perhaps according to the total load degree of the Web server host computer system of each Web server in the system, increase or reduce the quantity of the Web server host computer system of service.
Wherein, in described Web server host computer system, also can comprise administration agent unit (not shown), be mainly used to manage the Web server process, as starting the Web server process, control Web server process loads, unloading is used, and kills this Web server process etc.; And described administration agent unit also is used for as the communication intermediary between described management control unit and each the Web server process: transmit the scheduler task of described management control unit to each Web server process, and the load state of Web server process is reported described management control unit.Interface between described administration agent unit and each the Web server process is the T1 interface.
Therefore, in order to improve the treatment effeciency of each Web server treatment progress, described management control unit can obtain or directly obtain the present load information of the Web server process in each Web server host computer system by the administration agent unit in the described Web server host computer system.And, described management control unit can be according to described present load information, when the present load of described Web server process during more than or equal to first predetermined threshold value, whether the Web website of determining described Web server process service also has other Web server processes of service; If do not have, then be that described Web website distributes the Web server process; If have, then when the present load of described other Web server processes during all more than or equal to second predetermined threshold value, redistribute the Web server process, when the present load of described other Web server processes during less than second predetermined threshold value, be adjusted into the weight of the Web server process of described Web website service.
Wherein, identical among the meaning of described first predetermined threshold value and second predetermined threshold value and the method embodiment can be according to system's practical operation situation, and personnel set up on their own by the system running state monitoring, for example described first predetermined threshold value can be 70%, the second predetermined threshold value and can be 40%.
As seen from the above, the system of many Web of the described realization of embodiment of the invention application request scheduling, by the domain name mapping request of management control unit according to name server, load-balanced server is carried out dispatching management, namely from a plurality of load-balanced servers, select to provide for name server the load-balanced server of service for the domain name server; Simultaneously, by the distribution Web server process requested of described management control unit basis by the selected load-balanced server of domain name server, the Web server process is carried out dispatching management, namely is the Web server process that described load-balanced server is selected HTTP request that can the process user terminal from a plurality of Web server processes.Therefore, utilize the embodiment of the invention, need not the domain name of manual configure user terminal request on load-balanced server and the corresponding relation of Web server, thereby can handle the application request of a large amount of Web websites simultaneously.
In sum, method, the Apparatus and system of the scheduling of many Web of the described realization of embodiment of the invention application request, need not the domain name of manual configure user terminal request on load-balanced server and the corresponding relation of Web server, thereby can handle the application request of a large amount of Web websites simultaneously.
And, owing to can the state of load-balanced server and Web server host computer system be managed, thereby reached energy-conservation effect.
The above; only be the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.

Claims (18)

1. method that realizes the scheduling of many Web application request is characterized in that described method comprises:
The domain name mapping request that reception is sent by name server;
Be at least one load-balanced server of domain name server-assignment according to the domain name analysis request;
Be received as the distribution Web server process requested of the load-balanced server transmission of domain name server service;
According to described distribution Web server process requested, for described load-balanced server distributes at least one Web server process, make described load-balanced server that the HTTP request of user terminal is sent to described Web server process;
Described method also comprises:
Obtain the present load information of the Web server process in each Web server host computer system;
According to described present load information, when the present load of described Web server process during more than or equal to first predetermined threshold value, determine whether Web website that described Web server process is served also has other Web server processes of service;
If do not have, then be that described Web website distributes the Web server process;
If have, then when the present load of described other Web server processes during all more than or equal to second predetermined threshold value, redistribute the Web server process, when the present load of described other Web server processes during less than second predetermined threshold value, be adjusted into the weight of the Web server process of described Web website service.
2. method according to claim 1 is characterized in that, after the domain name mapping request that described reception is sent by name server, described method also comprises:
The domain name that is carried at the described user terminal requests in the domain name analysis request is resolved.
3. method according to claim 1 is characterized in that, at least one load-balanced server of domain name server-assignment comprises:
According to the loading condition of each load-balanced server in the system, select at least one minimum load-balanced server of load, and the IP address of described at least one load-balanced server that will select and load information are stored in during load-balanced server tabulates;
Send described load-balanced server tabulation to the domain name server, make the domain name server select load-balanced server according to the load information of the load-balanced server in the described load-balanced server tabulation.
4. method according to claim 3 is characterized in that, described method also comprises:
The domain name server is preserved described load-balanced server tabulation.
5. method according to claim 1 is characterized in that, according to described distribution Web server process requested, at least one Web server process of domain name server-assignment comprises:
Obtain the Web site information corresponding with the actual domain name of user terminal requests described in the described distribution Web server process requested;
Judge whether to exist for the Web server process of described Web website service according to described Web site information;
When existing for the Web server process of described Web website service, be at least one Web server process of domain name server-assignment according to the Web server process of storage and the corresponding relation of Web website;
When not existing for the Web server process of described Web website service, distribute at least one Web server process for described Web website again.
6. method according to claim 5 is characterized in that, when not existing for the Web server process of described Web website service, distributes at least one Web server process to comprise for described Web website again:
Selection is used for loading the Web server host computer system of described Web website, and to ask described Web server host computer system be that described Web website distributes the Web server process.
7. method according to claim 6 is characterized in that, the Web server host computer system that described selection is used for loading described Web website comprises:
From all Web server host computer systems, choose the non-vanishing Web server host computer system of the minimum and available Web server number of processes of load.
8. according to the arbitrary described method of claim 1-7, it is characterized in that described method also comprises:
According to the total load degree of each load-balanced server, increase or reduce the quantity of the load-balanced server of service.
9. according to the arbitrary described method of claim 1-7, it is characterized in that described method also comprises:
According to the total load degree of each Web server host computer system, increase or reduce the quantity of the Web server host computer system of service.
10. a device of realizing the scheduling of many Web application request is characterized in that, comprising:
The first request receiving element is used for receiving the domain name mapping request that is sent by name server;
First allocation units, being used for according to the domain name analysis request is at least one load-balanced server of domain name server-assignment;
The second request receiving element is for the distribution Web server process requested of the load-balanced server transmission that is received as the domain name server service;
Second allocation units are used for according to described distribution Web server process requested, for described load-balanced server distributes at least one Web server process, make described load-balanced server that the HTTP request of user terminal is sent to described Web server process;
Described device also comprises:
Information acquisition unit is for the present load information of the Web server process of obtaining each Web server host computer system;
Judging unit is used for according to described present load information, and when the present load of described Web server process during more than or equal to first predetermined threshold value, whether the Web website of judging described Web server process service also has other Web server processes of service;
The 3rd allocation units, be used for when the judged result of described judging unit for not the time, be described Web website distribution Web server process; When the judged result of described judging unit when being, if the present load of described other Web server processes is all more than or equal to second predetermined threshold value, then redistribute the Web server process, if the present load of described other Web server processes, then is adjusted into the weight of the Web server process of described Web website service less than second predetermined threshold value.
11. device according to claim 10 is characterized in that, described first allocation units comprise:
Select module, be used for the loading condition according to each load-balanced server, select at least one minimum load-balanced server of load;
Memory module is used for the IP address of described at least one load-balanced server that will select and load information and is stored in load-balanced server and tabulates;
Sending module is used for sending described load-balanced server tabulation to the domain name server, makes the domain name server select load-balanced server according to the load information of the load-balanced server in the described load-balanced server tabulation.
12. device according to claim 10 is characterized in that, described second allocation units comprise:
The request analysis module is used for obtaining the Web site information corresponding with the actual domain name of user terminal requests described in the described distribution Web server process requested;
Judge module is used for judging whether to exist for the Web server process that described Web website is served according to described Web site information;
Distribution module is used for when existing for the Web server process of described Web website service, is at least one Web server process of domain name server-assignment according to the Web server process of storage and the corresponding relation of Web website; When not existing for the Web server process of described Web website service, distribute at least one Web server process for described Web website again.
13. device according to claim 12, it is characterized in that, when not existing for the Web server process of described Web website service, described distribution module specifically is used for choosing the non-vanishing Web server host computer system of the minimum and available Web server number of processes of load from all Web server host computer systems, and to ask described Web server host computer system be that described Web website distributes the Web server process.
14. according to the arbitrary described device of claim 10-13, it is characterized in that described device also comprises:
The domain name mapping unit is used for the domain name of the described user terminal requests that is carried at the domain name analysis request is resolved.
15. according to the arbitrary described device of claim 10-13, it is characterized in that described device also comprises:
Control unit is used for the total load degree according to each load-balanced server, increases or reduce the quantity of the load-balanced server of service; Perhaps according to the total load degree of each Web server host computer system, increase or reduce the quantity of the Web server host computer system of service.
16. a system that realizes the scheduling of many Web application request is characterized in that described system comprises: name server, management control unit, at least one load-balanced server and at least one Web server;
Wherein, the domain name server is used for sending the domain name mapping request to described management control unit, and from described management control unit for being defined as the load-balanced server of its service the load-balanced server of its distribution;
Management control unit, the domain name mapping request that is used for according to the domain name server is at least one load-balanced server of domain name server-assignment; Be received as the distribution Web server process requested of the load-balanced server transmission of domain name server service, for described load-balanced server distributes at least one Web server process;
Described load-balanced server, being used for from described management control unit is the Web server process selection Web server process of its distribution, the HTTP request of user terminal is sent to the Web server process of selection;
Described Web server is for the treatment of the HTTP request of described user terminal;
Described management control unit also is used for, and obtains the present load information of the Web server process in each Web server host computer system; When the present load of described Web server process during more than or equal to first predetermined threshold value, whether the Web website of determining described Web server process service also has other Web server processes of service; If do not have, then be that described Web website distributes the Web server process; If have, then when the present load of described other Web server processes during all more than or equal to second predetermined threshold value, redistribute the Web server process, when the present load of described other Web server processes during less than second predetermined threshold value, be adjusted into the weight of the Web server process of described Web website service.
17. system according to claim 16, it is characterized in that, described management control unit is when being at least one load-balanced server of domain name server-assignment, loading condition according to each load-balanced server in the system, select at least one minimum load-balanced server of load, and the IP address of described at least one load-balanced server that will select and load information be stored in the load-balanced server tabulation, and described load-balanced server tabulation is sent to the domain name management server;
The domain name management server also is used for preserving described load-balanced server tabulation.
18., it is characterized in that described management control unit also is used for the domain name of the described user terminal requests that is carried at the domain name analysis request is resolved according to claim 16 or 17 described systems.
CN200980118720.5A 2009-12-24 2009-12-24 Method, apparatus and system for implementing multiple web application requests scheduling Active CN102217247B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2009/075977 WO2011075899A1 (en) 2009-12-24 2009-12-24 Method, apparatus and system for implementing multiple web application requests scheduling

Publications (2)

Publication Number Publication Date
CN102217247A CN102217247A (en) 2011-10-12
CN102217247B true CN102217247B (en) 2013-09-11

Family

ID=44194916

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200980118720.5A Active CN102217247B (en) 2009-12-24 2009-12-24 Method, apparatus and system for implementing multiple web application requests scheduling

Country Status (2)

Country Link
CN (1) CN102217247B (en)
WO (1) WO2011075899A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103826101A (en) * 2014-02-17 2014-05-28 宁波公众信息产业有限公司 Cloud video intelligent service system
CN103873590A (en) * 2014-04-01 2014-06-18 北京奇虎科技有限公司 Accessing method of webpage IM and webpage browser

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103312629B (en) * 2012-03-09 2018-02-27 深圳市腾讯计算机系统有限公司 A kind of CDN flow allocation methods, equipment and system
CN105939371A (en) * 2015-11-24 2016-09-14 中国银联股份有限公司 Load balancing method and load balancing system for cloud computing
CN106953926A (en) * 2017-03-31 2017-07-14 北京奇艺世纪科技有限公司 A kind of method for routing and device
CN113138893A (en) * 2021-03-26 2021-07-20 河北航天信息技术有限公司 Method for solving problem of Java Web application report 500Internal Error
CN115379027B (en) * 2022-04-27 2023-08-01 国家计算机网络与信息安全管理中心 DNS message resolution improvement method, device, improvement equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1516831A (en) * 2001-03-29 2004-07-28 国际商业机器公司 Wordload management of stateful program entities
EP1566940A1 (en) * 2004-02-20 2005-08-24 Alcatel Alsthom Compagnie Generale D'electricite A method, a service system, and a computer software product of self-organizing distributing services in a computing network
CN1755634A (en) * 2004-09-29 2006-04-05 国际商业机器公司 Method, system for supporting a large number of intermittently used application clusters
CN101111078A (en) * 2007-08-21 2008-01-23 华为技术有限公司 Method for implementing load equalization in pool district and core network node
CN101431532A (en) * 2008-12-15 2009-05-13 中国电信股份有限公司 Content routing method, load balancing equipment and resource management equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1516831A (en) * 2001-03-29 2004-07-28 国际商业机器公司 Wordload management of stateful program entities
EP1566940A1 (en) * 2004-02-20 2005-08-24 Alcatel Alsthom Compagnie Generale D'electricite A method, a service system, and a computer software product of self-organizing distributing services in a computing network
CN1755634A (en) * 2004-09-29 2006-04-05 国际商业机器公司 Method, system for supporting a large number of intermittently used application clusters
CN101111078A (en) * 2007-08-21 2008-01-23 华为技术有限公司 Method for implementing load equalization in pool district and core network node
CN101431532A (en) * 2008-12-15 2009-05-13 中国电信股份有限公司 Content routing method, load balancing equipment and resource management equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103826101A (en) * 2014-02-17 2014-05-28 宁波公众信息产业有限公司 Cloud video intelligent service system
CN103873590A (en) * 2014-04-01 2014-06-18 北京奇虎科技有限公司 Accessing method of webpage IM and webpage browser
CN103873590B (en) * 2014-04-01 2017-04-26 北京奇立软件技术有限公司 Accessing method of webpage IM and webpage browser

Also Published As

Publication number Publication date
CN102217247A (en) 2011-10-12
WO2011075899A1 (en) 2011-06-30

Similar Documents

Publication Publication Date Title
CN102217247B (en) Method, apparatus and system for implementing multiple web application requests scheduling
Lee et al. Load-balancing tactics in cloud
CN103312629B (en) A kind of CDN flow allocation methods, equipment and system
CN103391299B (en) Load-balancing method and SiteServer LBS
Colajanni et al. Scheduling algorithms for distributed web servers
US8949410B2 (en) Server load balancer scaling for virtual servers
CN102480469B (en) Based on the method for the load dispatch of balancing energy and device in a kind of SIP service cluster
CN102164116B (en) Method, system and corresponding device for balancing load
CN107026907A (en) A kind of load-balancing method, load equalizer and SiteServer LBS
CN103401947A (en) Method and device for allocating tasks to multiple servers
CN102281190A (en) Networking method for load balancing apparatus, server and client access method
CN109327550A (en) A kind of distribution method of access request, device, storage medium and computer equipment
US20140304713A1 (en) Method and apparatus for distributed processing tasks
CN109933431B (en) Intelligent client load balancing method and system
CN102316133A (en) Method and device for balancing load
CN102394929A (en) Conversation-oriented cloud computing load balancing system and method therefor
CN105208133A (en) Server, load balancer as well as server load balancing method and system
CN107835262A (en) A kind of streaming media server dynamical load distribution method
CN102195944A (en) Priority access control method, device and system
CN109951566A (en) A kind of Nginx load-balancing method, device, equipment and readable storage medium storing program for executing
CN108881509A (en) A kind of DNS query method and device based on HTTPDNS
CN107645540A (en) The load-balancing method of web application systems
CN105007336A (en) Load balancing method and load balancing system of server
Nakai et al. On the use of resource reservation for web services load balancing
CN110213349A (en) A kind of HTTP dispatching method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220217

Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province

Patentee after: Huawei Cloud Computing Technology Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.