CN102217247A - 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
CN102217247A
CN102217247A CN2009801187205A CN200980118720A CN102217247A CN 102217247 A CN102217247 A CN 102217247A CN 2009801187205 A CN2009801187205 A CN 2009801187205A CN 200980118720 A CN200980118720 A CN 200980118720A CN 102217247 A CN102217247 A CN 102217247A
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.)
Granted
Application number
CN2009801187205A
Other languages
Chinese (zh)
Other versions
CN102217247B (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

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 processes sent 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 many Web application requests scheduling
Realize method, the apparatus and system technical field of many Web application requests scheduling
The present invention relates to communication technical field, more particularly to a kind of method for realizing many Web application requests scheduling, apparatus and system.
Background technology
In the prior art, based on HTTP (Hyper text Transfer Protocol, HTTP)The technology of the extensive Web site of protocol construction is highly developed.
In the logic frame of the extensive Web websites built in the prior art, subscriber terminal side is primarily referred to as user browser, such as IE, Fi refox.Include in server side:Domain name resolution server(Doma in Name Sys tem, DNS), load-balanced server(Load Ba lance Server, LBS), Web Server (Web servers).Wherein, the gangster S is used for the DNS request for receiving user browser, and the user browser is returned to according to specific algorithms selection LBS service device, and by the IP address of the LBS service device of selection.The LBS service device, the HTTP request for receiving the user browser is that the user browser selects Web server according to specific algorithm, and the HTTP request is transmitted into the Web server.The Web servers, the HTTP request for handling the user browser, and after processing is completed, return to HTTP processing to the user browser and respond.
Wherein, above-mentioned specific algorithm includes:Round robin schedule(Or poll)(Round Robin Schedul ing) algorithm, power mouthful power wheel(Or poll)Dispatch (We i ghted Round-Robin Schedul ing) algorithm, Source Hashing Scheduling(Source Hashing Schedul ing) algorithm, dynamic feedback of load equalization algorithm etc..
But, during the present invention is realized, inventor has found:
Because Web site is operate on Web server, and a limited number of Web website is can only serve using logical architecture of the prior art.It is a large amount of when having(10000,100,000, it is even more many)Web websites when being operated together on the Web server platform comprising several Web servers, utilize the blunt difficult common deployment of existing framework to widely apply. The content of the invention
The embodiments of the invention provide a kind of method for realizing many Web application requests scheduling, apparatus and system, the application request of a large amount of Web sites can be handled simultaneously.
The embodiment of the present invention is adopted the following technical scheme that:
A kind of method for realizing many Web application requests scheduling, including:
The domain name mapping sent by name server is received to ask;
It is at least one load-balanced server of domain name server-assignment according to domain name analysis request;It is received as the distribution Web server process requested that the load-balanced server of domain name server service is sent;
It is that the load-balanced server distributes at least one Web server process so that the HTTP request of the user terminal is sent to the Web server process by the load-balanced server according to the distribution Web server process requested.
A kind of device for realizing many Web application requests scheduling, including:
First request reception unit, for receiving the domain name mapping request sent by name server;First allocation unit, for being at least one load-balanced server of domain name server-assignment according to domain name analysis request;
Second request reception unit, for being received as the distribution Web server process requested that the load-balanced server of domain name server service is sent;
Second allocation unit, for according to the distribution Web server process requested, at least one Web server process is distributed for the load-balanced server so that the HTTP request of the user terminal can be sent to the Web server process by the load-balanced server.
A kind of system for realizing many Web application requests scheduling, including:Name server, management control unit, at least one load-balanced server and at least one Web server;
Wherein, domain name server, for the management control unit send domain name analysis request, and from the management control unit for its distribution load-balanced server in be defined as its service load-balanced server; Management control unit, for being at least one load-balanced server of domain name server-assignment according to the domain name mapping of domain name server request;The distribution Web server process requested that the load-balanced server of domain name server service is sent is received as, is that the load-balanced server distributes at least one Web server processes;
The load-balanced server, for selecting Web server process from Web server process of the management control unit for its distribution, the HTTP request of the user terminal is sent to the Web server process of selection;
The Web server, the HTTP request for handling the user terminal.
The method for realizing many Web application requests scheduling described in the embodiment of the present invention, apparatus and system, asked by management control unit according to the domain name mapping of name server, management is scheduled to load-balanced server, i.e., the load-balanced server of service can be provided for name server for the selection of domain name server from multiple load-balanced servers;Simultaneously, by the management control unit according to the distribution Web server process requested by the selected load-balanced server of domain name server, management is scheduled to Web server process, i.e., is the Web server process for the HTTP request that the load-balanced server selection can handle user terminal from multiple Web server processes.Therefore, using the embodiment of the present invention, without the corresponding relation of the domain name of manual configuration user terminal requests and Web server on load-balanced server, so as to handle the application request of a large amount of Web sites simultaneously.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, the accompanying drawing used required in being described below to embodiment is briefly described, apparently, drawings in the following description are only some embodiments of the present invention, for those of ordinary skill in the art, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart for the method that the embodiment of the present invention realizes many Web application requests scheduling;
Fig. 2 is the schematic diagram for the device that the embodiment of the present invention realizes many Web application requests scheduling;
Fig. 3 is the first structure figure for the device that the embodiment of the present invention realizes many Web application requests scheduling;Fig. 4 is the second structure chart of the device that the embodiment of the present invention realizes many Web application requests scheduling; Fig. 5 is the 3rd structure chart of the device that the embodiment of the present invention realizes many Web application requests scheduling;Fig. 6 is the schematic diagram for the system that the embodiment of the present invention realizes many Web application requests scheduling.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art are obtained under the premise of creative work is not made belongs to the scope of protection of the invention.
It should be noted that in embodiments of the present invention, the concept of " a large amount of " refers to that 10,000,100,000 is even more more.Certainly, the embodiment of the present invention is equally applicable among the scene of prior art, so as to reach more preferable effect.
For the application request of a large amount of Web sites can be handled simultaneously, as shown in figure 1, the embodiment of the present invention realizes that the method for many Web application requests scheduling comprises the following steps:
Step 11, management control unit receive the domain name mapping sent by name server and asked(DNS request).Wherein, in the DNS request, the domain name of user terminal requests can be carried, to facilitate the management control unit to carry out domain name mapping.In addition, the I P address information of source address is may also include in gangster S requests, to cause domain name server to determine to be sent to the user terminal of domain name analysis request.
Step 12, the management control unit are the good business device of domain name server-assignment at least one load balancing month according to domain name analysis request.
In systems in practice, the quantity of the load-balanced server may have 100 it is even more many.The information that the management control unit actively can be monitored or reported according to each load-balanced server in real time monitors the load data and operation conditions of each load-balanced server in real time, and then selection can be the load-balanced server of domain name server providing services.Wherein described load data can include the CPU utilization rates of each load-balanced server, memory usage, bandwidth utilization rate etc..
When selecting load-balanced server, the management control unit can be selected according to load-balancing algorithm.Such as described management control unit can be according to the loading condition of each load-balanced server in system, at least one minimum load-balanced server of selection load, and by the IP address of the load-balanced server It is stored in load information in load-balanced server list, then sends the load-balanced server list to domain name server so that domain name server selects load-balanced server according to the load information of each load-balanced server.
Wherein, the load information may include the weight of the load-balanced server of selection, now, and domain name server directly can select load-balanced server according to the weight.Or the load information may include the loading condition of the load-balanced server of selection.When the load information includes the loading condition of the load-balanced server of selection, the weight of each load-balanced server is calculated according to the loading condition by domain name server, then load-balanced server is selected further according to the weight.Or the load information can also include the weight of load-balanced server and the loading condition that are selected by the management control unit simultaneously, now domain name server still can be directly according to weight selection load-balanced server.
In addition, after DNS request in order to avoid receiving user terminal every time, the information for the load-balanced server that can be supplied to service will be inquired about from domain name server to management control unit, domain name server can also preserve the load-balanced server list.
Also, when carrying the domain name of user terminal requests in domain name analysis request, the management control unit can also be parsed after domain name analysis request is received to the domain name that the user terminal is asked.Due to needing Slow to deposit the domain name of user terminal requests and the corresponding relation of Web server on load-balanced server, after the management control unit is parsed to the certain domain name A of user terminal requests, when having user terminal requests identical domain name again, because Slow deposited the corresponding relation between domain name A and Web server before, therefore, after the management control unit is parsed to domain name A again, load-balanced server can deposit the corresponding relation between domain name A and Web server with no longer Slow.Therefore, this allows for that the corresponding relation of substantial amounts of domain name and Web server need not be stored on load-balanced server, so as to save memory space.
Step 13, the management control unit are received as the distribution Web server process requested that the load-balanced server of domain name server service is sent.
The load-balanced server selected by domain name server is after the HTTP for receiving user terminal is asked, and by the URL analyzed in the HTTP request, (Un i form Res ource Loca tor, unified resource is fixed Position symbol)Information, and according to HOST information in URL(The Hos t headers of H t t p agreements)Obtain the actual domain name that user terminal is asked.Then, the load-balanced server can carry the actual domain name is sent to the management control unit in the distribution Web server process requested.
Step 14, the management control unit are according to the distribution Web server process requested, at least one Web server process is distributed for the load-balanced server so that the HTTP request of the user terminal is sent to the Web server process by the load-balanced server.
In a particular application, domain name is the mark of Web websites, and a domain name can only uniquely correspond to a Web site, therefore, the management control unit is after the distribution Web server process requested is received, Web site information corresponding with the actual domain name of user terminal requests described in the distribution Web server process requested can be obtained according to the domain name stored in the management control unit and the corresponding relation of Web site information first using the actual domain name as index.Then, the Web server process serviced for the Web site is judged whether according to the Web site information.
When existing for the Web server process of the Web site service, the 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 site.When in the absence of the Web server process serviced for the Web site, the management control unit distributes the good business device processes of at least one Web Λ for the Web site again.Now, the Web server host computer system that load is minimum and can be not zero with Web server number of processes is chosen in the Web server host computer system that the management control unit can be all in system, and asks the Web server host computer system to distribute Web server process for the Web site.
It should be noted that in systems in practice, may there is multiple Web servers, i.e. Web server host computer system, and may be run in each Web server host computer system has multiple(1 00 is even more more)Web server process, each Web server process therein monitors different ports.Each load-balanced server, when forwarding the HTTP request of user terminal, is for the forwarding of each Web server process.Therefore, as long as the port numbers for the IP address and internal Web services device process for obtaining Web server host computer system just can each Web server process of unique mark.
Therefore, the management control unit enters for the load-balanced server distribution Web server of the selection The process of journey, the load-balanced server being exactly possible to as the selection provides the process that the IP address of Web server host computer system and the port numbers of internal Web services device process of service are supplied to the load-balanced server selected by name server to provide service.
Because the management control unit may distribute one or more Web server processes for the load-balanced server of the selection, therefore, the load-balanced server selected by domain name server can select a Web server process according to load-balancing algorithm.Then the load-balanced server of the selection can pass through HTTP, CGI (common gateway interface according to the IP address and the port numbers of internal Web services device process of the Web server host computer system of selection)Or the HTTP request of user terminal is transmitted to the Web server process by other modes.
As seen from the above, the method for realizing many Web application requests scheduling described in the embodiment of the present invention, asked by management control unit according to the domain name mapping of name server, management is scheduled to load-balanced server, i.e., the load-balanced server of service can be provided for name server for the selection of domain name server from multiple load-balanced servers;Simultaneously, by the management control unit according to the distribution Web server process requested by the selected load-balanced server of domain name server, management is scheduled to Web server process, i.e., is the Web server process for the HTTP request that the load-balanced server selection can handle user terminal from multiple Web server processes.Therefore, using the embodiment of the present invention, without the corresponding relation of the domain name of manual configuration user terminal requests and Web server on load-balanced server, so as to handle the application request of a large amount of Web sites simultaneously.
In view of energy conservation characteristic, while the application request of a large amount of Web websites is handled, the management control unit can also be handled as follows:
(1) energy-saving distribution, is carried out to the load-balanced server in system, i.e., according to the total load degree of each load-balanced server in system, increases or decreases the quantity of the load-balanced server of service.
In the process, the total load degree if all of load-balanced server is higher(Such as overall load is more than 70%), and management and dispatching unit will start more(Certain amount)Load-balanced server.Total load degree if all of load-balanced server is relatively low(Such as overall load is less than 40%), and management and dispatching unit will stop certain amount load-balanced server. Specific implementation can be:When load-balanced server is inadequate, management and dispatching unit regard newly-increased load-balanced server as the load-balanced server to be allocated to name server when for domain name server-assignment load-balanced server;When load surplus needs to stop load-balanced server, management and dispatching unit will not distribute these load balancing for preparing to stop when for domain name server-assignment load-balanced server to name server.When some load-balanced servers no processing HTTP request within a very long time, determine that these load balancing services need stopper, then can just stop by modes such as shutdown.
In addition, the IP address of the good business devices of the load balancing Λ for needing to stop, can distributing to other load-balanced servers by the management control unit.And the management control unit is in distribution, usually the relatively low load-balanced server of selection load is allocated.So, it can prevent user terminal from HTTP request constantly being issued to the load-balanced server stopped.
(2), according to the total load degree of each Web server host computer system in system, the quantity of the Web server host computer system of service is increased or decreased.
During implementing, the management and dispatching unit will calculate overall loading level after each Web server host computer system load is counted.If overall load exceedes the peak of setting, management and dispatching unit will start one or more new Web server host computer systems.If overall load is less than the minimum of setting, then management and dispatching unit stops the one or more Web server host computer systems for controlling low-load, and the Web server process run in these Web server host systems is transferred into other Web server host computer systems.The mode wherein shifted can be, the Web server process serviced for the promising Web site of institute in the Web server host computer system that needs to stop, the 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 for needing to stop.And the Web site service that the new Web server process started is serviced the Web server processes stopped for needs.Then, the management control unit will need in the Web server host computer system stopped all Web server processes to be set to not receive new solicited status again.If necessary to each Web server host computer system for stopping within a period of time such as 1 minute, handle, then the Web server hosts system can be closed, such as shut down, standby without Web request.
(3), the management control unit also can control the life cycle of each Web server process. In a particular application, each Web server process most multipotency is a Web site service(But it is not necessarily referring to be a Web site service), it can be that no Web server process is that it is serviced that each Web site, which also not only has when a Web server process is just disposed for its service, but a Web site,.When some Web website just produces access, management and dispatching unit can control a Web server process to be serviced for the Web site.When the visit capacity of the Web site increases to certain amount, the management control unit can control new Web server process for Web site service.When the visit capacity of some Web site reaches certain defined data, the quantity of Web server process is distributed in the way of being rounded by visit capacity/50+1 per second of some Web website for it.
For example when the visit capacity per second of some Web site is 1, will have a Web server process is the Web station services;When visit capacity per second increase is 50, start two Web server processes.And when the visit capacity rank of the Web websites is reduced, management control unit will also reduce the quantity of Web server process.
Based on described above, the change of the Web server number of processes needed according to Web site, the Web server processes life cycle of itself is also possible to be changed.Can not be any Web station services during Web server process initiation, and when some Web site needs increase Web server process to be serviced for it, management and dispatching unit may control this Web server process to load this Web site, this results in Web server processes states and switched to " being X station services ", and when X site volumes are reduced, management and dispatching unit may control this Web server process to stop service, wherein the mode of stopping can killing the process or other modes.
Several processing modes more than, using the method described in the embodiment of the present invention, have reached the effect of energy-conservation.
In addition, in the method described in the embodiment of the present invention, when some Web server process, over-burden, it is for example per second to handle substantial amounts of request or all Web server processes all at work, the management control unit can also adjust the processing state of each Web server process, improve treatment effeciency.Specifically, the management control unit can obtain the current load information of each Web server process first, then according to the current load information, when the utilization rate that the present load of the Web server process is more than or equal to the first default wealthy value namely the Web server process it is high to a certain extent when, determine the Web server process service Web site whether also have service other Web server processes.If no, distributing Web server process for the Web site;If having, then when the present load of other Web server processes is all higher than being equal to the second default wealthy value, redistribute Web server process, when the present load of other Web server processes, which is less than second, presets wealthy value, the weight of the Web server processes of the Web site service is adjusted to, the reference of the Web server process to select processing user terminal HTTP request as load-balanced server.
Wherein, the described first default wealthy value represents the high degree of some Web server process utilization rate, and the described second default wealthy value represents the low degree of some Web server process utilization rate;, can be according to running situation, by system running state monitoring personnel's sets itself and the described first default wealthy value and second presets wealthy value, such as described first to preset wealthy value can be 70%, and second to preset wealthy value can be 40%.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, computer program is can be by instruct the hardware of correlation to complete, described program can be stored in a computer read/write memory medium, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic disc, CD, read-only memory(Read-Only Memory, ROM) or random access memory (Random Acces s Memory, RAM) etc..
As shown in Fig. 2 the embodiment of the present invention additionally provides a kind of device for realizing many Web application requests scheduling, including:
First request reception unit 31, for receiving the domain name mapping request sent by name server;First allocation unit 32, for being at least one load-balanced server of domain name server-assignment according to domain name analysis request;Second request reception unit 33, for being received as the distribution Web server process requested that the load-balanced server of domain name server service is sent;Second allocation unit 34, for according to the distribution Web server process requested, at least one Web server process is distributed for the load-balanced server so that the HTTP request of the user terminal is sent to the Web server process by the load-balanced server.
Wherein, as shown in figure 3, the first distribution receiving unit 32 includes:Selecting module 321, for the loading condition according to each load-balanced server in system, at least one minimum load balancing of selection load Server;Memory module 322, for the IP address of at least one load-balanced server described in selection and corresponding weight to be stored in load-balanced server list;Sending module 323, for sending the load-balanced server list to domain name server so that the weight selection load-balanced server of load-balanced server of the domain name server in the load-balanced server list.
Second allocation unit 34 includes:Request analysis module 341, for obtaining Web site information corresponding with the actual domain name of user terminal requests described in distribution Web server processes request;Judge module 342, for the Web server process for judging whether to service for the Web site according to the Web site information;Distribute module 343, for being at least one Web server process of domain name server-assignment according to the corresponding relation of the Web server process of storage and Web site when existing for the Web server process of the Web site service;When in the absence of the Web server process serviced for the Web site, selection is used for loading the Web server host computer system of the Web site, and asks the Web server host computer system to be the good business device processes of Web site distribution Web Λ.
In the Web server host computer system of the selection loading Web site, the Web server host computer system that load is minimum and can be not zero with Web server number of processes is chosen in the Web server host computer system that the distribute module can be all from system, and asks the Web server host computer system to distribute Web server process for the Web site.
As seen from the above, utilize the device of the embodiment of the present invention, it can be asked according to the domain name mapping of name server, to load-balanced server management and running, i.e., the load-balanced server of service can be provided for name server for the selection of domain name server from multiple load-balanced servers;Simultaneously, according to the distribution Web server process requested of the load-balanced server of the selection, management is scheduled to Web server process, i.e., is the Web server process for the HTTP request that the load-balanced server selection can handle user terminal from multiple Web server processes.Therefore, using the embodiment of the present invention, without the corresponding relation of the domain name of manual configuration user terminal requests and Web server on load-balanced server, so as to handle the application request of a large amount of Web sites simultaneously.
In addition, may include the domain name for having user terminal requests in domain name analysis request, and the user terminal IP address etc..As shown in figure 4, make it that on load-balanced server substantial amounts of domain need not be stored The corresponding relation of name and Web server, so as to save memory space, described device may also include:Domain name resolution unit 35, for being parsed to the domain name for carrying the user terminal requests in domain name analysis request.
In order to reach the effect of energy-conservation, as shown in Fig. 4, the device described in the embodiment of the present invention may also include:Control unit 36, for the total load degree according to each load-balanced server in system, increases or decreases the quantity of the load-balanced server of service;Or according to the total load degree of each web host system in system, increase or decrease the quantity of the web host system of service.
Or, as shown in figure 5, the treatment effeciency in order to improve each Web server treatment progress, the device described in the embodiment of the present invention may also include:Information acquisition unit 37, the current load information for obtaining each Web server process;Judging unit 38, for according to the current load information, when the present load of the Web server process, which is more than or equal to first, presets wealthy value, determine whether the Web site of the Web server process service also has other Web server processes of service;3rd allocation unit 39, for when the judged result of the judging unit is no, being the Web site distribution Web server process;When the judged result of the judging unit 38 is is, if the present load of other Web server processes is all higher than being equal to the second default wealthy value, then redistribute Web server process, if the present load of other Web server processes, which is less than second, presets wealthy value, the weight of the Web server processes of the Web site service is adjusted to.
Wherein, the meaning of described first default wealthy value and the second default wealthy value is identical with embodiment of the method, can be according to running situation, by system running state monitoring personnel's sets itself, such as described first default wealthy value can be 70%, and the second default wealthy value can be 40%.
In addition, the embodiment of the present invention additionally provides a kind of system for realizing many Web application requests scheduling.
As shown in fig. 6, the system includes: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, for the management control unit send domain name analysis request, and from the management control unit for its distribution load-balanced server in be defined as its service load-balanced server.Management control unit 42, for being the domain according to the domain name mapping of domain name server request At least one load-balanced server of name server-assignment;The distribution Web server process requested for being received as the load-balanced server transmission of domain name server service distributes at least one for the load-balanced server
Web server process;Wherein, the actual domain name of the user terminal requests is carried in the distribution Web server process requested.The load-balanced server 43, for selecting Web server process from Web server process of the management control unit for its distribution, the HTTP request of the user terminal is sent to the Web server process of selection.The Web server 44, the HTTP request for handling the user terminal.
Wherein, interface between the management control unit and name server is F1 interfaces, interface between the management control unit and load-balanced server is F2 interfaces, and the interface between the management control unit and each Web server is the interfaces of F 3.
In addition, the management control unit is when at least one load-balanced server of domain name server-assignment, according to the loading condition of each load-balanced server in system, at least one minimum load-balanced server of selection load, and the IP address and load information of at least one load-balanced server described in selection are stored in load-balanced server list, and the load-balanced server list is sent to domain name server, and domain name management server is additionally operable to preserve the load-balanced server list.
Also, it may include IP address for the domain name and user terminal for having user terminal requests etc. in domain name analysis request.Therefore, the management control unit is additionally operable to parse the domain name of the user terminal requests according to domain name analysis request.So that the corresponding relation of substantial amounts of domain name and Web server need not be stored on load-balanced server, so as to save memory space.
In order to reach the effect of energy-conservation, the management control unit is additionally operable to the total load degree according to each load-balanced server in system, increases or decreases the quantity of the load-balanced server of service;Or according to the total load degree of the Web server host computer system of each Web server in system, increase or decrease the quantity of the Web server host systems of service.
Wherein, in the Web server host computer system, it may also include administration agent unit(It is not shown), it is mainly used to manage Web server process, such as starts Web server process, the Web server process etc. is killed in the loading of control Web server process, unloading application;And the administration agent unit is additionally operable to as the communication intermediary between the management control unit and each Web server process:Enter to each Web server Journey forwards the scheduler task of the management control unit, and the load state of Web server process is reported into the management control unit.Interface between the administration agent unit and each Web server process is T1 interfaces.
Therefore, in order to improve the treatment effeciency of each Web server treatment progress, the management control unit can obtain by the administration agent unit in the Web server host computer system or directly obtain the current load information of the Web server process in each Web server host computer system.And, the management control unit can be according to the current load information, when the present load of the Web server process, which is more than or equal to first, presets wealthy value, determine whether the Web site of the Web server process service also has other Web server processes of service;If no, distributing Web server process for the Web site;If having, then when the present load of other Web server processes is all higher than being equal to the second default wealthy value, redistribute Web server process, when the present load of other Web server processes, which is less than second, presets wealthy value, the weight of the Web server processes of the Web site service is adjusted to.
Wherein, the meaning of described first default wealthy value and the second default wealthy value is identical with embodiment of the method, can be according to running situation, by system running state monitoring personnel's sets itself, such as described first default wealthy value can be 70%, and the second default wealthy value can be 40%.
As seen from the above, the system for realizing many Web application requests scheduling described in the embodiment of the present invention, asked by management control unit according to the domain name mapping of name server, management is scheduled to load-balanced server, i.e., the load-balanced server of service can be provided for name server for the selection of domain name server from multiple load-balanced servers;Simultaneously, by the management control unit according to the distribution Web server process requested by the selected load-balanced server of domain name server, management is scheduled to Web server process, i.e., is the Web server process for the HTTP request that the load-balanced server selection can handle user terminal from multiple Web server processes.Therefore, using the embodiment of the present invention, without the corresponding relation of the domain name of manual configuration user terminal requests and Web server on load-balanced server, so as to handle the application request of a large amount of Web sites simultaneously.
In summary, described in the embodiment of the present invention the method for realizing the scheduling of many Web application requests, apparatus and system, without the domain name of manual configuration user terminal requests on load-balanced server and Web server Corresponding relation, so as to handle the application request of a large amount of Web sites simultaneously.
Also, due to that can be managed to the state of load-balanced server and Web server host computer system, so as to reach the effect of energy-conservation.
It is described above; only embodiment of the invention, but protection scope of the present invention is not limited thereto, any one skilled in the art the invention discloses technical scope in; change or replacement can be readily occurred in, should be all included within the scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (20)

  1. Claims
    1st, a kind of method for realizing many Web application requests scheduling, it is characterised in that methods described includes:The domain name mapping sent by name server is received to ask;
    It is at least one load-balanced server of domain name server-assignment according to domain name analysis request;It is received as the distribution Web server process requested that the load-balanced server of domain name server service is sent;
    It is that the load-balanced server distributes at least one Web server process so that the HTTP request of the user terminal is sent to the Web server process by the load-balanced server according to the distribution Web server process requested.
    2nd, according to the method described in claim 1, it is characterised in that after the domain name mapping request for receiving and being sent by name server, methods described also includes:
    The domain name for carrying the user terminal requests in domain name analysis request is parsed.
    3rd, according to the method described in claim 1, it is characterised in that for domain name server-assignment, at least one load-balanced server includes:
    According to the loading condition of each load-balanced server in system, at least one minimum load-balanced server of selection load, and the IP address and load information of at least one load-balanced server described in selection are stored in load-balanced server list;
    The load-balanced server list is sent to domain name server so that the load information selection load-balanced server of load-balanced server of the domain name server in the load-balanced server list.
    4th, method according to claim 3, it is characterised in that methods described also includes:Domain name server preserves the load-balanced server list.
    5th, according to the method described in claim 1, it is characterised in that be that domain name server-assignment at least one Web server process includes according to the distribution Web server process requested:
    Obtain Web site information corresponding with the actual domain name of user terminal requests described in the distribution Web server process requested; The Web server process for judging whether to service for the Web site according to the Web site information;
    It is at least one Web server process of domain name server-assignment according to the corresponding relation of the Web server process of storage and Web site when existing for the Web server process of the Web site service;When in the absence of for the good business of Web site Λ Web be engaged in device process when, distribute at least one Web server process again for the Web site.
    6th, method according to claim 5, it is characterised in that when in the absence of the Web server process serviced for the Web site, distributing at least one Web server process again for the Web site includes:
    Selection is used for loading the Web server host computer system of the Web site, and asks the Web server host computer system to distribute Web server process for the Web site.
    7th, method according to claim 6, it is characterised in that the Web server host computer system that the selection is used for loading the Web websites includes:
    The Web server host computer system that load is minimum and can be not zero with Web server number of processes is chosen from all Web server host computer systems.
    8th, according to any described methods of claim 1-7, it is characterised in that methods described also includes:According to the total load degree of each load-balanced server, the quantity of the load-balanced server of service is increased or decreased.
    9th, according to any described methods of claim 1-7, it is characterised in that methods described also includes:According to the total load degree of each Web server host computer system, the quantity of the Web server host computer system of service is increased or decreased.
    10, according to any described methods of claim 1-7, it is characterised in that methods described also includes:Obtain the current load information of the Web server process in each Web server host computer system;According to the current load information, when the present load of the Web server process, which is more than or equal to first, presets wealthy value, determine whether the Web site that the Web server process is serviced also has other Web server processes serviced; If no, distributing Web server process for the Web site;
    If having, then when the present load of other Web server processes is all higher than being equal to the second default wealthy value, redistribute Web server process, when the present load of other Web server processes, which is less than second, presets wealthy value, the weight of the Web server process of the Web site service is adjusted to.
    11, a kind of device for realizing many Web application requests scheduling, it is characterised in that including:
    First request reception unit, for receiving the domain name mapping request sent by name server;First allocation unit, for being at least one load-balanced server of domain name server-assignment according to domain name analysis request;
    Second request reception unit, for being received as the distribution Web server process requested that the load-balanced server of domain name server service is sent;
    Second allocation unit, for according to the distribution Web server process requested, at least one Web server process is distributed for the load-balanced server so that the HTTP request of the user terminal is sent to the Web server process by the load-balanced server.
    12nd, the device according to claim 11, it is characterised in that first allocation unit includes:Selecting module, for the loading condition according to each load-balanced server, at least one minimum load-balanced server of selection load;
    Memory module, for the IP address and load information of at least one load-balanced server described in selection to be stored in load-balanced server list;
    Sending module, for sending the load-balanced server list to domain name server so that the load information selection load-balanced server of load-balanced server of the domain name server in the load-balanced server list.
    13, the device according to claim 11, it is characterised in that second allocation unit includes:Request analysis module, for obtaining Web site information corresponding with the actual domain name of user terminal requests described in the distribution Web server process requested;
    Judge module, for the Web server process for judging whether to service for the Web site according to the Web site information; Distribute module, for being at least one Web server processes of domain name server-assignment according to the corresponding relation of the Web server process of storage and Web site when existing for the Web server process of the Web site service;When in the absence of the Web server process serviced for the Web site, at least one Web server process is distributed again for the Web site.
    14th, the device according to claim 13, it is characterized in that, when in the absence of the Web server process serviced for the Web site, the distribute module asks the Web server host computer system to distribute Web server process for the Web site specifically for choosing the Web server host computer system that load is minimum and can be not zero with Web server number of processes from all Web server host computer systems.
    15th, according to any described devices of claim 1 1-14, it is characterised in that described device also includes:Domain name resolution unit, for being parsed to the domain name for carrying the user terminal requests in domain name analysis request.
    16th, according to any described devices of claim 1 1-14, it is characterised in that described device also includes:Control unit, for the total load degree according to each load-balanced server, increases or decreases the quantity of the load-balanced server of service;Or according to the total load degree of each Web server host computer system, increase or decrease the quantity of the Web server host computer system of service.
    17th, according to any described devices of claim 1 1-14, it is characterised in that described device also includes:Information acquisition unit, the current load information for obtaining the Web server process in each Web server host computer system;
    Judging unit, for according to the current load information, when the present load of the Web server process, which is more than or equal to first, presets wealthy value, judge whether the Web site of the Web server process service also has other Web server processes of service;
    3rd allocation unit, for when the judged result of the judging unit is no, being the Web site distribution Web server process;When the judged result of the judging unit is is, if the present load of other Web server processes is all higher than being equal to the second default wealthy value, then redistribute Web server process, if the present load of other Web server processes, which is less than second, presets wealthy value, the weight of the Web server process of the Web station services is adjusted to. 18th, a kind of system for realizing many Web application requests scheduling, it is characterised in that the system includes:Name server, management control unit, at least one load-balanced server and at least one Web server;
    Wherein, domain name server, for the management control unit send domain name analysis request, and from the management control unit for its distribution load-balanced server in be defined as its service load-balanced server;
    Management control unit, for being at least one load-balanced server of domain name server-assignment according to the domain name mapping of domain name server request;The distribution Web server process requested that the load-balanced server of domain name server service is sent is received as, is that the load-balanced server distributes at least one Web server processes;
    The load-balanced server, for selecting Web server process from Web server process of the management control unit for its distribution, the HTTP request of the user terminal is sent to the Web server process of selection;
    The Web server, the HTTP request for handling the user terminal.
    19th, system according to claim 18, it is characterized in that, the management control unit is when at least one load-balanced server of domain name server-assignment, according to the loading condition of each load-balanced server in system, at least one minimum load-balanced server of selection load, and the IP address and load information of at least one load-balanced server described in selection are stored in load-balanced server list, the load-balanced server list is sent to domain name management server;
    Domain name management server is additionally operable to preserve the load-balanced server list.
    20th, the system according to claim 18 or 19, it is characterised in that the management control unit, is additionally operable to parse the domain name for carrying the user terminal requests in domain name analysis request.
    21st, the system according to claim 18 or 19, it is characterised in that the management control unit is additionally operable to, obtains the current load information of the Web server process in each Web server host computer system;When the present load of the Web server process, which is more than or equal to first, presets wealthy value, determine whether the Web site of the Web server process service also has other Web server processes of service;If being no, institute State Web site distribution Web server process;If having, then when the present load of other Web server processes is all higher than being equal to the second predetermined threshold value, redistribute Web server process, when the present load of other Web server processes is less than the second predetermined threshold value, the weight of the Web server process of the Web site service is adjusted to.
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 true CN102217247A (en) 2011-10-12
CN102217247B 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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103312629A (en) * 2012-03-09 2013-09-18 深圳市腾讯计算机系统有限公司 Method, device and system of CDN (content delivery network) flow distribution
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
CN115379027A (en) * 2022-04-27 2022-11-22 国家计算机网络与信息安全管理中心 DNS message analysis improvement method, device, improvement equipment and storage medium

Families Citing this family (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
CN103873590B (en) * 2014-04-01 2017-04-26 北京奇立软件技术有限公司 Accessing method of webpage IM and webpage browser
CN105939371A (en) * 2015-11-24 2016-09-14 中国银联股份有限公司 Load balancing method and load balancing system for cloud computing

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 (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103312629A (en) * 2012-03-09 2013-09-18 深圳市腾讯计算机系统有限公司 Method, device and system of CDN (content delivery network) flow distribution
CN103312629B (en) * 2012-03-09 2018-02-27 深圳市腾讯计算机系统有限公司 A kind of CDN flow allocation methods, equipment and system
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
CN115379027A (en) * 2022-04-27 2022-11-22 国家计算机网络与信息安全管理中心 DNS message analysis improvement method, device, improvement equipment and storage medium
CN115379027B (en) * 2022-04-27 2023-08-01 国家计算机网络与信息安全管理中心 DNS message resolution improvement method, device, improvement equipment and storage medium

Also Published As

Publication number Publication date
CN102217247B (en) 2013-09-11
WO2011075899A1 (en) 2011-06-30

Similar Documents

Publication Publication Date Title
CN103369601B (en) For cell-phone customer terminal provides the method for large concurrent processing and flow control
CN102217247A (en) Method, apparatus and system for implementing multiple web application requests scheduling
CN102469023B (en) Based on the dispatching method of cloud computing, unit and system
KR101129731B1 (en) Method for improving quality-of-service management in networks
CN105159781B (en) Adjust the method, apparatus and intelligent terminal of intelligent terminal application network speed
CN102045321B (en) Flow control method and system for software downloading
CN102480469B (en) Based on the method for the load dispatch of balancing energy and device in a kind of SIP service cluster
US20150317583A1 (en) Business Scheduling Method and Apparatus and Convergence Device
CN102025630A (en) Load balancing method and load balancing system
CN105141541A (en) Task-based dynamic load balancing scheduling method and device
CN101217483A (en) A method to realize cluster server inner load sharing agent
CN101076978B (en) Method for distributing loads among servers
CN112350952B (en) Controller distribution method and network service system
CN103516744A (en) A data processing method, an application server and an application server cluster
JP2013525931A (en) Dynamic binding used for content delivery
CN102394822A (en) System and method for adjusting network transmission rate
CN102394929A (en) Conversation-oriented cloud computing load balancing system and method therefor
CN112351083B (en) Service processing method and network service system
CN102316133A (en) Method and device for balancing load
CN113055469B (en) Cloud container storage control method and system, electronic equipment and storage medium
JP2011015196A (en) Load assignment control method and load distribution system
CN103873513B (en) Adaptive method for down loading and system
CN107645540A (en) The load-balancing method of web application systems
CN104426694A (en) Method and device for adjusting virtual-machine resources
CN107835262A (en) A kind of streaming media server dynamical load distribution method

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

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.

TR01 Transfer of patent right