CN104320492A - Method and device for dispatching web servers - Google Patents

Method and device for dispatching web servers Download PDF

Info

Publication number
CN104320492A
CN104320492A CN201410642651.0A CN201410642651A CN104320492A CN 104320492 A CN104320492 A CN 104320492A CN 201410642651 A CN201410642651 A CN 201410642651A CN 104320492 A CN104320492 A CN 104320492A
Authority
CN
China
Prior art keywords
server
website server
connection request
website
list
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410642651.0A
Other languages
Chinese (zh)
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.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology 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 Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201410642651.0A priority Critical patent/CN104320492A/en
Publication of CN104320492A publication Critical patent/CN104320492A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements

Abstract

The invention discloses a method and device for dispatching web servers. The method for dispatching the web servers comprises the steps that a connection request is received, wherein the connection request is sent by a client side and used for having access to web resources; the web server used for processing the connection request is selected from a pre-built server list, wherein the server list is updated in real time according to the detected running states of the web servers, and the server list comprises identification corresponding to a plurality of normally-running web servers obtained after real-time updating; the connection request is sent to the selected web server, wherein connection between the selected web server and the client side is built after the connection request is received. By means of the method and device, the problem that when a web server runs abnormally, a user cannot have access to the web resources is solved, and the effects of transferring faults and improving the availability of the servers are achieved.

Description

Website server dispatching method and device
Technical field
The present invention relates to server field, in particular to a kind of Website server dispatching method and device.
Background technology
The Internet has become people and to have lived requisite part, and user can access all kinds of website as required to search the information required for oneself.Along with the increase of visit capacity, website operator needs constantly to expand the load that website can carry, and avoids occurring when a large number of users access websites the situation that Website server is paralysed.
At present, the mode of the load that existing expansion website can carry mainly increases the quantity of the Website server for the treatment of user's connection request, processes connection request by scheduling Website server.But when Website server operation exception, still dispatch the Website server of this operation exception to process connection request, this cannot have access to site resource by making the user initiating this connection request.
Easily cause user cannot have access to the problem of site resource in prior art when Website server operation exception, not yet propose effective solution at present.
Summary of the invention
Main purpose of the present invention is to provide a kind of Website server dispatching method and device, easily causes user cannot have access to the problem of site resource to solve in prior art when Website server operation exception.
To achieve these goals, according to an aspect of the embodiment of the present invention, a kind of Website server dispatching method is provided.Website server dispatching method according to the present invention can comprise: receive connection request, and connection request is the request for access websites resource that client sends; The Website server for the treatment of connection request is selected from the server list set up in advance, server list is the list according to the running status real-time update of multiple Website servers detected, the mark that the Website server of the multiple normal operation that server list obtains after comprising real-time update is corresponding; And connection request is sent to the Website server of selection, wherein, the Website server of selection connects with client after receiving connection request.
Further, before select the Website server for the treatment of connection request from the server list set up in advance, Website server dispatching method can also comprise: the running status detecting each Website server in multiple Website server, obtains testing result; The Website server that whether there is operation exception in multiple Website server is judged according to testing result; If judge the Website server that there is operation exception in multiple Website server, then from the mark that the Website server of server list rejecting operation exception is corresponding.
Further, from the server list set up in advance, the Website server for the treatment of connection request is selected to comprise: from server list, determine the current Website server be assigned to according to preset schedule rule, using the Website server determined as the Website server for the treatment of connection request, wherein, preset schedule rule is the rule of distributing connection request according to the order of Website server in server list successively.
Further, from the server list set up in advance, select the Website server for the treatment of connection request to comprise: the current linking number detecting each Website server in server list, current linking number is the quantity of current the set up connection of Website server each in server list; The Website server selecting current linking number minimum is as the Website server for the treatment of connection request.
Further, before the current linking number detecting each Website server in server list, Website server dispatching method can also comprise: the current linking number of each Website server in record server list; The current linking number presetting Website server in server list is set to and presets mark, wherein, the minimum Website server of current linking number is selected to comprise as the Website server for the treatment of connection request: the Website server that in other servers in selection server list outside default Website server, current linking number is minimum is as the Website server for the treatment of connection request.
To achieve these goals, according to another aspect of the embodiment of the present invention, provide a kind of Website server dispatching device.Website server dispatching device according to the present invention can comprise: receiving element, and for receiving connection request, connection request is the request for access websites resource that client sends; Selected cell, for selecting the Website server for the treatment of connection request from the server list set up in advance, server list is the list according to the running status real-time update of multiple Website servers detected, the mark that the Website server of the multiple normal operation that server list obtains after comprising real-time update is corresponding; Linkage unit, for connection request being sent to the Website server of selection, wherein, the Website server of selection connects with client after receiving connection request.
Further, Website server dispatching device can also comprise: detecting unit, for before select the Website server for the treatment of connection request from the server list set up in advance, detect the running status of each Website server in multiple Website server, obtain testing result; Judging unit, for judging the Website server that whether there is operation exception in multiple Website server according to testing result; And culling unit, if for judging the Website server that there is operation exception in multiple Website server, then from the mark that the Website server of server list rejecting operation exception is corresponding.
Further, selected cell can comprise: determination module, for determining the current Website server be assigned to according to preset schedule rule from server list, using the Website server determined as the Website server for the treatment of connection request, wherein, preset schedule rule is the rule of distributing connection request according to the order of Website server in server list successively.
Further, selected cell can comprise: detection module, and for detecting the current linking number of each Website server in server list, current linking number is the quantity of current the set up connection of Website server each in server list; Select module, for select current linking number minimum Website server as the Website server for the treatment of connection request.
Further, Website server dispatching device can also comprise: record cell, for before the current linking number detecting each Website server in server list, and the current linking number of each Website server in record server list; Preset unit, mark is preset for being set to by the current linking number presetting Website server in server list, wherein, selection module comprises: chooser module, for selecting to preset in server list Website server that in other servers outside Website server, current linking number is minimum as the Website server for the treatment of connection request.
According to inventive embodiments, by receiving connection request, connection request is the request for access websites resource that client sends; The Website server for the treatment of connection request is selected from the server list set up in advance, server list is the list according to the running status real-time update of multiple Website servers detected, the mark that the Website server of the multiple normal operation that server list obtains after comprising real-time update is corresponding; And connection request is sent to the Website server of selection, wherein, the Website server selected connects with client after receiving connection request, solve and easily cause user cannot have access to the problem of site resource when Website server operation exception, reach Failure Transfer thus the effect of the availability of raising server.
Accompanying drawing explanation
The accompanying drawing forming a application's part is used to provide a further understanding of the present invention, and schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the Website server dispatching method according to the embodiment of the present invention;
Fig. 2 is the flow chart according to the preferred Website server dispatching method of the embodiment of the present invention;
Fig. 3 is the schematic diagram of the Website server dispatching device according to the embodiment of the present invention;
Fig. 4 is the schematic diagram according to the preferred Website server dispatching device of the embodiment of the present invention.
Embodiment
It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.Below with reference to the accompanying drawings and describe the present invention in detail in conjunction with the embodiments.
The present invention program is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the embodiment of a part of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, should belong to the scope of protection of the invention.
It should be noted that, term " first ", " second " etc. in specification of the present invention and claims and above-mentioned accompanying drawing are for distinguishing similar object, and need not be used for describing specific order or precedence.Should be appreciated that the data used like this can be exchanged, in the appropriate case so that embodiments of the invention described herein.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, such as, contain those steps or unit that the process of series of steps or unit, method, system, product or equipment is not necessarily limited to clearly list, but can comprise clearly do not list or for intrinsic other step of these processes, method, product or equipment or unit.
Embodiments provide a kind of Website server dispatching method, this Website server dispatching method is used for the normal Website server of management and running and processes connection request.This Website server dispatching method may operate on computer-processing equipment.
Fig. 1 is the flow chart of the Website server dispatching method according to the embodiment of the present invention.As shown in Figure 1, can to comprise step as follows for this Website server dispatching method:
Step S102, receives connection request, and connection request is the request for access websites resource that client sends.
When user wants access websites resource, connection request can be sent by client to website (web) server, such as Http request, in order to ask the site resource of accessing.Particularly, can be receive this connection request by schedule component, scheduler or dispatch server, so that scheduling Website server processes this connection request.
Step S104, selects the Website server for the treatment of connection request from the server list set up in advance.
Server list is the list of the running status real-time update according to the multiple Website servers detected, the mark that the Website server of the multiple normal operation that server list obtains after comprising real-time update is corresponding, this mark is used for Website servers different in the list of Differentiated Services device.The Website server comprised due to server list is normal Website server, and this server list according to the running status real-time update of Website server, thus can ensure that the server in this server list is the normal server run.
Particularly, schedule component may be used for safeguarding above-mentioned server list, and after receiving connection request, the Website server for the treatment of connection request is selected from this server list, owing to being the normal Website server run in server list, thus avoid the server of operation exception to receive connection request, cause user cannot have access to the problem of site resource.
In server list, when selecting connection request to send to any station server, can determine according to dispatching algorithm the server receiving connection request.The http request that client sends at every turn first can carry out the distribution of connection request again according to the dispatching algorithm selected through schedule component.A server list normally worked safeguarded by this assembly, and when there being http request to arrive, scheduler, according to this server list, is selected http request to be dispatched on which station server.This Website server list can be upgraded by schedule component, when server operation exception being detected, notifies this assembly update server list.
Step S106, is sent to the Website server of selection by connection request.
After selecting the Website server for the treatment of connection request, connection request, to the Website server of this selection, is sent to the Website server of selection by mark fast finding that can be corresponding based on the server that server list is selected.
Step S108, the Website server of selection connects with client after receiving connection request.
The Website server selected connects with the client sending this connection request after receiving connection request, then the Internet resources that user asks is sent to client.
Pass through the embodiment of the present invention, after receiving connection request, the Website server for the treatment of connection request is selected from server list, wherein, because the server in server list is the Website server of normal operation, solving in prior art easily causes user cannot have access to the problem of site resource when Website server operation exception, reaches and avoids the server of operation exception receive connection request and cause user cannot have access to the effect of site resource.
Fig. 2 is the flow chart according to the preferred Website server dispatching method of the embodiment of the present invention.The Website server dispatching method of this embodiment can be a kind of preferred implementation of the Website server dispatching method of above-described embodiment.As shown in Figure 2, before select the Website server for the treatment of connection request from the server list set up in advance, it is as follows that this Website server dispatching method can also comprise step:
Step S202, detects the running status of each Website server in multiple Website server, obtains testing result.
Particularly, can be the running status of real-time checking network site server, also can be the running status according to some cycles checking network site server.Such as, can safeguard assembly by server state, whether (as 3 minutes) are detected web server by the mode of ping and still can be used at regular intervals, return testing result simultaneously.
Step S204, judges according to testing result the Website server that whether there is operation exception in multiple Website server.
If the testing result returned normally is run, then connection request is on average dispatched to different servers, if return results exception, then connection request can not be dispatched to and returns on the server of abnormal results.
Step S206, if judge the Website server that there is operation exception in multiple Website server, then from the mark that the Website server of server list rejecting operation exception is corresponding.
If return results exception, i.e. corresponding Website server operation exception, from above-mentioned server list, then reject the mark of the Website server of this operation exception, to avoid when receiving connection request, connection request is sent to the Website server of this operation exception, and send it to the server of normal operation.
According to the embodiment of the present invention, by detecting the running status of each server, in order to update server list, thus avoiding the Website server this request being sent to operation exception, reaching the effect making the normal accesses network resource of user.
Preferably, in embodiments of the present invention, from the server list set up in advance, the Website server for the treatment of connection request is selected to comprise:
S4, determines the current Website server be assigned to according to preset schedule rule from server list, and preset schedule rule is the rule of distributing connection request according to the order of Website server in server list successively.
Particularly, but when there is N number of server in server list, the list of scheduler program traversal server, according to server list 1 to N (server number), connection request is each time distributed in turn the server of the normal operation in list, then circulation is restarted, such as when a upper connection request is sent to the 2nd Website server, then current connection request is sent to the 3rd Website server, and the next one is then sent to the 4th Website server until N number of Website server.If receive connection request again, then travel through successively until N number of Website server from the 1st Website server.The advantage of this algorithm is its terseness, without the need to recording the state of current all connections, so it is the scheduling of a kind of stateless, i.e. and static scheduling algorithm.
S6, using the Website server determined as the Website server for the treatment of connection request.
According to aforementioned dispatching algorithm, connection request is assigned on the server of normal operation, and processes this connection request.
Preferably, in embodiments of the present invention, from the server list set up in advance, the Website server for the treatment of connection request is selected to comprise:
S8, detects the current linking number of each Website server in server list, and current linking number is the quantity of current the set up connection of Website server each in server list.
S10, the Website server selecting current linking number minimum is as the Website server for the treatment of connection request.
New connection request is assigned to the minimum server of current linking number, Least-Connection Scheduling is the short algorithm of a kind of dynamic dispatching, it estimates the load capacity of server by the linking number that server is current enlivened, scheduler needs to record the number that each server has connected, the initial value that server connects is 0, when a request is scheduled for certain station server, its linking number adds 1, when connection stops or time-out, its linking number subtracts one, system can judge the size of linking number, is forwarded to newly connecting above the less server of linking number.Like this, the load capacity of this server can be judged by the linking number current according to server, thus connection request is evenly distributed on each server, reach the effect improving server operational efficiency.
Preferably, in embodiments of the present invention, before the current linking number detecting each Website server in server list, this Website server dispatching method can also comprise:
S12, the current linking number of each Website server in record server list.
S14, is set to the current linking number presetting Website server in server list and presets mark.Wherein, presetting Website server is can not invoked Website server.
S16, the Website server that in other servers in selection server list outside default Website server, current linking number is minimum is as the Website server for the treatment of connection request.
When system realizes, can manual modification server linking number for preset mark, such as m (or other are nonnumeric), so, linking number is that the server presetting mark then can be not used in process connection request, but this server is be still normal server.Like this, can real-time implementation to the flexible division of labor of server.When the aforesaid load capacity judging this server according to linking number size, when connection request is distributed to server, linking number due to this server is set to preset mark, and this default mark is not numeral, make a distinction with other linking numbers with the server of Digital ID, thus when distributing connection request, skip this can not be called server and dispatch other server to process connection request.
As can be seen from the above description, present invention achieves following technique effect:
Because the server in server list is the Website server of normal operation, solving in prior art easily causes user cannot have access to the problem of site resource when Website server operation exception, reaches and avoids the server of operation exception receive connection request and cause user cannot have access to the effect of site resource.
By detecting the running status of each server, in order to update server list, thus avoiding the Website server this request being sent to operation exception, reaching the effect making the normal accesses network resource of user.
The embodiment of the present invention additionally provides a kind of Website server dispatching device.This device can realize its function by Website server scheduling.It should be noted that, the Website server dispatching device of the embodiment of the present invention may be used for performing the Website server dispatching method that the embodiment of the present invention provides, and the Website server dispatching device that the Website server dispatching method of the embodiment of the present invention also can be provided by the embodiment of the present invention performs.
Fig. 3 is the schematic diagram of the Website server dispatching device according to the embodiment of the present invention.As shown in Figure 3, this Website server dispatching device can comprise: receiving element 10, selected cell 20 and linkage unit 30.
Receiving element 10 is for receiving connection request, and connection request is the request for access websites resource that client sends.When user wants access websites resource, connection request can be sent by client to website to (web) server, such as Http request, in order to ask the site resource of accessing.Particularly, can be receive this connection request by schedule component, scheduler or dispatch server, so that scheduling Website server processes this connection request.
Selected cell 20 for selecting the Website server for the treatment of connection request from the server list set up in advance, server list is the list according to the running status real-time update of multiple Website servers detected, the mark that the Website server of the multiple normal operation that server list obtains after comprising real-time update is corresponding.
Server list is the list of the running status real-time update according to the multiple Website servers detected, the mark that the Website server of the multiple normal operation that server list obtains after comprising real-time update is corresponding, this mark is used for Website servers different in the list of Differentiated Services device.The Website server comprised due to server list is normal Website server, and this server list according to the running status real-time update of Website server, thus can ensure that the server in this server list is the normal server run.
Particularly, schedule component may be used for safeguarding above-mentioned server list, and after receiving connection request, the Website server for the treatment of connection request is selected from this server list, owing to being the normal Website server run in server list, thus avoid the server of operation exception to receive connection request, cause user cannot have access to the problem of site resource.
In server list, when selecting connection request to send to any station server, can determine according to dispatching algorithm the server receiving connection request.The http request that client sends at every turn first can carry out the distribution of connection request again according to the dispatching algorithm selected through schedule component.A server list normally worked safeguarded by this assembly, and when there being http request to arrive, scheduler, according to this server list, is selected http request to be dispatched on which station server.This Website server list can be upgraded by schedule component, when server operation exception being detected, notifies this assembly update server list.
Linkage unit 30 is for being sent to the Website server of selection by connection request, wherein, the Website server of selection connects with client after receiving connection request.The Website server selected connects with the client sending this connection request after receiving connection request, then the Internet resources that user asks is sent to client.
Pass through the embodiment of the present invention, after receiving connection request, the Website server for the treatment of connection request is selected from server list, wherein, because the server in server list is the Website server of normal operation, solving in prior art easily causes user cannot have access to the problem of site resource when Website server operation exception, reaches and avoids the server of operation exception receive connection request and cause user cannot have access to the effect of site resource.
Fig. 4 is the schematic diagram according to the preferred Website server dispatching device of the embodiment of the present invention.As shown in Figure 4, this Website server dispatching device can also comprise: detecting unit 40, judging unit 50 and culling unit 60.
Detecting unit 40, for before select the Website server for the treatment of connection request from the server list set up in advance, detects the running status of each Website server in multiple Website server, obtains testing result.
Particularly, can be the running status of real-time checking network site server, also can be the running status according to some cycles checking network site server.Such as, can safeguard assembly by server state, whether (as 3 minutes) are detected web server by the mode of ping and still can be used at regular intervals, return testing result simultaneously.
Judging unit 50 is for judging the Website server that whether there is operation exception in multiple Website server according to testing result.
If culling unit 60 is for judging the Website server that there is operation exception in multiple Website server, then from the mark that the Website server of server list rejecting operation exception is corresponding.
If the testing result returned normally is run, then connection request is on average dispatched to different servers, if return results exception, then connection request can not be dispatched to and returns on the server of abnormal results.If return results exception, i.e. corresponding Website server operation exception, from above-mentioned server list, then reject the mark of the Website server of this operation exception, to avoid when receiving connection request, connection request is sent to the Website server of this operation exception, and send it to the server of normal operation.
According to the embodiment of the present invention, by detecting the running status of each server, in order to update server list, thus avoiding the Website server this request being sent to operation exception, reaching the effect making the normal accesses network resource of user.
Preferably, in embodiments of the present invention, aforesaid selected cell 20 can comprise: determination module.
Determination module, for determining the current Website server be assigned to according to preset schedule rule from server list, using the Website server determined as the Website server for the treatment of connection request, wherein, preset schedule rule is the rule of distributing connection request according to the order of Website server in server list successively.
Particularly, but when there is N number of server in server list, the list of scheduler program traversal server, according to server list 1 to N (server number), connection request is each time distributed in turn the server of the normal operation in list, then circulation is restarted, such as when a upper connection request is sent to the 2nd Website server, then current connection request is sent to the 3rd Website server, and the next one is then sent to the 4th Website server until N number of Website server.If receive connection request again, then travel through successively until N number of Website server from the 1st Website server.The advantage of this algorithm is its terseness, without the need to recording the state of current all connections, so it is the scheduling of a kind of stateless, i.e. and static scheduling algorithm.According to aforementioned dispatching algorithm, connection request is assigned on the server of normal operation again, and processes this connection request
Preferably, in embodiments of the present invention, aforesaid selected cell can comprise: aforesaid selected cell 20 can comprise: detection module, selection module.
Detection module, for detecting the current linking number of each Website server in server list, current linking number is the quantity of current the set up connection of Website server each in server list.
Select module, for select current linking number minimum Website server as the Website server for the treatment of connection request.New connection request is assigned to the minimum server of current linking number, Least-Connection Scheduling is the short algorithm of a kind of dynamic dispatching, it estimates the load capacity of server by the linking number that server is current enlivened, scheduler needs to record the number that each server has connected, the initial value that server connects is 0, when a request is scheduled for certain station server, its linking number adds 1, when connection stops or time-out, its linking number subtracts one, system can judge the size of linking number, is forwarded to newly connecting above the less server of linking number.Like this, the load capacity of this server can be judged by the linking number current according to server, thus connection request is evenly distributed on each server, reach the effect improving server operational efficiency.
Preferably, in embodiments of the present invention, this Website server dispatching device can also comprise: record cell, default unit, wherein, selects module to comprise chooser module.
Record cell is used for before the current linking number detecting each Website server in server list, the current linking number of each Website server in record server list;
Chooser module is for selecting to preset in server list Website server that in other servers outside Website server, current linking number is minimum as the Website server for the treatment of connection request
Preset unit to be used for the current linking number presetting Website server in server list to be set to preset mark, wherein, presetting Website server is can not invoked Website server.When system realizes, can manual modification server linking number for preset mark, such as m (or other are nonnumeric), so, linking number is that the server presetting mark then can be not used in process connection request, but this server is be still normal server.Like this, the flexible division of labor to server can be realized.When the aforesaid load capacity judging this server according to linking number size, when connection request is distributed to server, linking number due to this server is set to preset mark, and this default mark is not numeral, make a distinction with other linking numbers with the server of Digital ID, thus when distributing connection request, skip this can not be called server and dispatch other server to process connection request.
As can be seen from the above description, present invention achieves following technique effect:
Because the server in server list is the Website server of normal operation, solving in prior art easily causes user cannot have access to the problem of site resource when Website server operation exception, reaches and avoids the server of operation exception receive connection request and cause user cannot have access to the effect of site resource.
By detecting the running status of each server, in order to update server list, thus avoiding the Website server this request being sent to operation exception, reaching the effect making the normal accesses network resource of user.
It should be noted that, for aforesaid each embodiment of the method, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not by the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and involved action and module might not be that the present invention is necessary.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
In several embodiments that the application provides, should be understood that, disclosed device, the mode by other realizes.Such as, device embodiment described above is only schematic, the such as division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprises all or part of step of some instructions in order to make a computer equipment (can be personal computer, mobile terminal, server or the network equipment etc.) perform method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), portable hard drive, magnetic disc or CD etc. various can be program code stored medium.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a Website server dispatching method, is characterized in that, comprising:
Receive connection request, connection request is the request for access websites resource that client sends;
The Website server for the treatment of connection request is selected from the server list set up in advance, server list is the list according to the running status real-time update of multiple Website servers detected, the mark that the Website server of the multiple normal operation that server list obtains after comprising real-time update is corresponding; And
Connection request is sent to the Website server of selection, wherein, the Website server of selection connects with client after receiving connection request.
2. Website server dispatching method according to claim 1, is characterized in that, before select the Website server for the treatment of connection request from the server list set up in advance, Website server dispatching method also comprises:
Detect the running status of each Website server in multiple Website server, obtain testing result;
The Website server that whether there is operation exception in multiple Website server is judged according to testing result;
If judge the Website server that there is operation exception in multiple Website server, then from the mark that the Website server of server list rejecting operation exception is corresponding.
3. Website server dispatching method according to claim 1, is characterized in that, selects the Website server for the treatment of described connection request to comprise from the server list set up in advance:
From described server list, the current Website server be assigned to is determined according to preset schedule rule, using the Website server determined as the Website server for the treatment of described connection request, wherein, described preset schedule rule is the rule of distributing described connection request according to the order of Website server in server list successively.
4. Website server dispatching method according to claim 1, is characterized in that, selects the Website server for the treatment of described connection request to comprise from the server list set up in advance:
Detect the current linking number of each Website server in described server list, current linking number is the quantity of current the set up connection of Website server each in described server list;
The Website server selecting described current linking number minimum is as the Website server for the treatment of described connection request.
5. Website server dispatching method according to claim 4, is characterized in that,
Before the current linking number detecting each Website server in described server list, described Website server dispatching method also comprises: the current linking number recording each Website server in described server list; The current linking number presetting Website server in described server list is set to and presets mark;
Wherein, the minimum Website server of described current linking number is selected to comprise as the Website server for the treatment of described connection request: to select to preset in described server list Website server that in other servers outside Website server, current linking number is minimum as the Website server for the treatment of described connection request.
6. a Website server dispatching device, is characterized in that, comprising:
Receiving element, for receiving connection request, described connection request is the request for access websites resource that client sends;
Selected cell, for selecting the Website server for the treatment of described connection request from the server list set up in advance, described server list is the list according to the running status real-time update of multiple Website servers detected, the mark that the Website server of the multiple normal operation that described server list obtains after comprising real-time update is corresponding;
Linkage unit, for described connection request being sent to the Website server of selection, wherein, the Website server of described selection connects with described client after receiving described connection request.
7. Website server dispatching device according to claim 6, is characterized in that, described Website server dispatching device also comprises:
Detecting unit, for before select the Website server for the treatment of described connection request from the server list set up in advance, detects the running status of each Website server in described multiple Website server, obtains testing result;
Judging unit, for judging the Website server that whether there is operation exception in described multiple Website server according to described testing result; And
Culling unit, if for judging the Website server that there is operation exception in described multiple Website server, then rejects mark corresponding to the Website server of described operation exception from described server list.
8. Website server dispatching device according to claim 6, is characterized in that, described selected cell comprises:
Determination module, for determining the current Website server be assigned to according to preset schedule rule from described server list, using the Website server determined as the Website server for the treatment of described connection request, wherein, described preset schedule rule is the rule of distributing described connection request according to the order of Website server in server list successively.
9. Website server dispatching device according to claim 6, is characterized in that, described selected cell comprises:
Detection module, for detecting the current linking number of each Website server in described server list, current linking number is the quantity of current the set up connection of Website server each in described server list;
Select module, for select described current linking number minimum Website server as the Website server for the treatment of described connection request.
10. Website server dispatching device according to claim 9, is characterized in that, described Website server dispatching device also comprises:
Record cell, for before the current linking number detecting each Website server in described server list, records the current linking number of each Website server in described server list;
Presetting unit, presetting mark for being set to by the current linking number presetting Website server in described server list;
Described selection module comprises: chooser module, for selecting to preset in described server list Website server that in other servers outside Website server, current linking number is minimum as the Website server for the treatment of described connection request.
CN201410642651.0A 2014-11-11 2014-11-11 Method and device for dispatching web servers Pending CN104320492A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410642651.0A CN104320492A (en) 2014-11-11 2014-11-11 Method and device for dispatching web servers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410642651.0A CN104320492A (en) 2014-11-11 2014-11-11 Method and device for dispatching web servers

Publications (1)

Publication Number Publication Date
CN104320492A true CN104320492A (en) 2015-01-28

Family

ID=52375660

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410642651.0A Pending CN104320492A (en) 2014-11-11 2014-11-11 Method and device for dispatching web servers

Country Status (1)

Country Link
CN (1) CN104320492A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618497A (en) * 2015-02-13 2015-05-13 小米科技有限责任公司 Webpage access method and device
CN105049517A (en) * 2015-08-07 2015-11-11 北京思特奇信息技术股份有限公司 Transaction-lossless distributed deployment method and system
CN107171885A (en) * 2017-03-31 2017-09-15 北京奇艺世纪科技有限公司 A kind of methods, devices and systems of detection service device running status
CN108809993A (en) * 2018-06-15 2018-11-13 北京信安世纪科技股份有限公司 The dispositions method and certificate authentication method of certificate authentication system, certificate authentication system
CN109542645A (en) * 2018-11-20 2019-03-29 北京锐安科技有限公司 A kind of method, apparatus, electronic equipment and storage medium calling service
CN109936639A (en) * 2017-12-15 2019-06-25 中兴通讯股份有限公司 A kind of service calling method and server
CN110022375A (en) * 2019-04-19 2019-07-16 宜人恒业科技发展(北京)有限公司 The distribution method and device of agent node
CN110071980A (en) * 2019-04-26 2019-07-30 宜人恒业科技发展(北京)有限公司 The distribution method and device of agent node
CN110365517A (en) * 2019-05-31 2019-10-22 浙江口碑网络技术有限公司 Data processing method, device, storage medium and computer equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207550A (en) * 2007-03-16 2008-06-25 中国科学技术大学 Load balancing system and method for multi business to implement load balancing
CN101340327A (en) * 2008-08-21 2009-01-07 腾讯科技(深圳)有限公司 Method, system and domain name parsing server implementing load balance of network server
CN101448027A (en) * 2008-12-29 2009-06-03 中国科学院计算技术研究所 System of a pipeline Web server and operating method thereof
CN101860493A (en) * 2009-04-08 2010-10-13 华为软件技术有限公司 Method, server and system for distributing application server address for clients
CN101984632A (en) * 2010-11-15 2011-03-09 中兴通讯股份有限公司 Load distributing method, device and server in distributed cache system
CN102316160A (en) * 2011-06-14 2012-01-11 贵阳朗玛信息技术股份有限公司 Website system and communication method thereof
CN103731315A (en) * 2012-10-16 2014-04-16 无锡云捷科技有限公司 Server failure detecting method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207550A (en) * 2007-03-16 2008-06-25 中国科学技术大学 Load balancing system and method for multi business to implement load balancing
CN101340327A (en) * 2008-08-21 2009-01-07 腾讯科技(深圳)有限公司 Method, system and domain name parsing server implementing load balance of network server
CN101448027A (en) * 2008-12-29 2009-06-03 中国科学院计算技术研究所 System of a pipeline Web server and operating method thereof
CN101860493A (en) * 2009-04-08 2010-10-13 华为软件技术有限公司 Method, server and system for distributing application server address for clients
CN101984632A (en) * 2010-11-15 2011-03-09 中兴通讯股份有限公司 Load distributing method, device and server in distributed cache system
CN102316160A (en) * 2011-06-14 2012-01-11 贵阳朗玛信息技术股份有限公司 Website system and communication method thereof
CN103731315A (en) * 2012-10-16 2014-04-16 无锡云捷科技有限公司 Server failure detecting method

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618497A (en) * 2015-02-13 2015-05-13 小米科技有限责任公司 Webpage access method and device
CN105049517A (en) * 2015-08-07 2015-11-11 北京思特奇信息技术股份有限公司 Transaction-lossless distributed deployment method and system
CN105049517B (en) * 2015-08-07 2019-01-11 北京思特奇信息技术股份有限公司 A kind of distributed deployment method and system for trading lossless
CN107171885A (en) * 2017-03-31 2017-09-15 北京奇艺世纪科技有限公司 A kind of methods, devices and systems of detection service device running status
CN107171885B (en) * 2017-03-31 2019-11-15 北京奇艺世纪科技有限公司 A kind of methods, devices and systems of detection service device operating status
CN109936639A (en) * 2017-12-15 2019-06-25 中兴通讯股份有限公司 A kind of service calling method and server
CN108809993A (en) * 2018-06-15 2018-11-13 北京信安世纪科技股份有限公司 The dispositions method and certificate authentication method of certificate authentication system, certificate authentication system
CN109542645A (en) * 2018-11-20 2019-03-29 北京锐安科技有限公司 A kind of method, apparatus, electronic equipment and storage medium calling service
CN110022375A (en) * 2019-04-19 2019-07-16 宜人恒业科技发展(北京)有限公司 The distribution method and device of agent node
CN110071980A (en) * 2019-04-26 2019-07-30 宜人恒业科技发展(北京)有限公司 The distribution method and device of agent node
CN110365517A (en) * 2019-05-31 2019-10-22 浙江口碑网络技术有限公司 Data processing method, device, storage medium and computer equipment
CN110365517B (en) * 2019-05-31 2022-06-24 浙江口碑网络技术有限公司 Data processing method, data processing device, storage medium and computer equipment

Similar Documents

Publication Publication Date Title
CN104320492A (en) Method and device for dispatching web servers
US10667151B2 (en) Coverage solution recommendation tool
CN108696581B (en) Distributed information caching method and device, computer equipment and storage medium
CN103746934A (en) CDN bandwidth balancing method, CDN control center and system
CN109800204B (en) Data distribution method and related product
CN107819797B (en) Access request processing method and device
CN105915650A (en) Load balancing method and device
CN108804399B (en) Form verification method and device
CN112383632A (en) Load balancing method and device
CN104408640A (en) Application software recommending method and apparatus
CN104767756A (en) Equipment information processing method, client side device and server side device
CN103095824A (en) File uploading control method and system
CN107819825A (en) A kind of service scheduling method, device and electronic equipment
CN109582418A (en) User behavior data collection method, device, computer installation, storage medium
CN106557404B (en) Application control method and mobile terminal
CN104992060A (en) User age estimation method and apparatus
US11627193B2 (en) Method and system for tracking application activity data from remote devices and generating a corrective action data structure for the remote devices
CN109558152A (en) Flow switching method, device, medium and electronic equipment when system gray scale is issued
CN106855824B (en) Task stopping method and device and electronic equipment
CN107800694A (en) A kind of front end equipment access method, device, server and storage medium
CN104579793B (en) The dispatching method and system of Internet resources
CN110391929B (en) Fault-tolerant control method and device and fault-tolerant component
US9119204B2 (en) User based network component analytics
CN104519321A (en) Method and device for checking monitoring video
CN111045790A (en) Virtual machine deployment 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150128