CN104410677B - Server load balancing method and apparatus - Google Patents

Server load balancing method and apparatus Download PDF

Info

Publication number
CN104410677B
CN104410677B CN201410659288.3A CN201410659288A CN104410677B CN 104410677 B CN104410677 B CN 104410677B CN 201410659288 A CN201410659288 A CN 201410659288A CN 104410677 B CN104410677 B CN 104410677B
Authority
CN
China
Prior art keywords
route entry
load
server
port
web page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410659288.3A
Other languages
Chinese (zh)
Other versions
CN104410677A (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.)
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 CN201410659288.3A priority Critical patent/CN104410677B/en
Publication of CN104410677A publication Critical patent/CN104410677A/en
Application granted granted Critical
Publication of CN104410677B publication Critical patent/CN104410677B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • H04L67/1038Load balancing arrangements to avoid a single path through a load balancer

Abstract

The invention discloses a kind of server load balancing method and apparatus.This method includes:Whether normal detect the communication of the first route entry;If detecting that the communication of the first route entry is normal, the first load-balanced server is sent information to by the first route entry;If detecting that the first route entry communicates obstacle, pass through secondary route entry forwarding information to the second load-balanced server.By the present invention, solve when a set of load-balanced server delays machine, the problem of corresponding web page server cisco unity malfunction.

Description

Server load balancing method and apparatus
Technical field
The present invention relates to internet arena, in particular to a kind of server load balancing method and apparatus.
Background technology
When client accesses domain name A, it is necessary to first obtain the host server IP of domain name A bindings.First, client hair please Ask to recursion server (i.e.:Local bandwidth operator servers), recursion server hair request is to resolution server, analysis service All poll host server IP that device sets domain name return to recursion server, recursion server by these IP return again to Client.The browser of client can conduct interviews to one of IP at random.In the prior art, in linux Virtual Services (linux virtual server are referred to as device:Lvs) load balancing network address translation (Network Address Translation, referred to as:Nat) under pattern, the request that lvs load-balanced servers A can only send client is transmitted to net Page server 1 or the requests that client can only be sent of 2, lvs load-balanced server B be transmitted to web page server 3 or 4.A namely web page server can only correspond to a lvs server load balancing server, and a lvs load balancing takes Business device can correspond to more web page servers.Therefore in this case, when have a set of load balancing delay machine when, only one Half back-end host works, and second half can not then work.For example, when failure occurs in lvs load-balanced servers A, then all The request that sends of client can be transmitted to web page server 3 or 4 by lvs load balancing B, and web page server 1 and 2 is then not Can work.
For of the prior art when a set of load-balanced server delays machine, corresponding web page server can not be just Often the problem of work, effective solution is not yet proposed at present.
The content of the invention
It is a primary object of the present invention to provide a kind of server load balancing method and apparatus, to solve to work as a set of load Equalization server delay machine when, the problem of corresponding web page server cisco unity malfunction.
To achieve these goals, according to an aspect of the invention, there is provided a kind of server load balancing method.Root Server load balancing method according to the present invention includes:The load that server load balancing method is used for multiple web page servers is equal Weighing apparatus, is provided with multiple route entrys, load-balanced server includes between each web page server and load-balanced server First load-balanced server and the second load-balanced server, multiple route entrys include the first route entry and secondary route Entry, the first route entry send the path of information between each web page server and the first load-balanced server, and second Route entry sends the path of information between each web page server and the second load-balanced server;The first via is detected by bar Whether mesh communication is normal;If detecting that the communication of the first route entry is normal, first is sent information to by the first route entry Load-balanced server;And if detect that the first route entry communicates obstacle, by secondary route entry forwarding information extremely Second load-balanced server.
Further, detect whether the communication of the first route entry normally includes:Send detection information;Detection is in preset time Inside whether receive via the first route entry feedack;If received via the first route entry feedack, Detect that the communication of the first route entry is normal;And if do not received via the first route entry feedack, detect One route entry communication failure.
Further, first port and second port are provided with web page server, wherein, open first port and represent Allow web page server to send information to the first load-balanced server via the first route entry, close first port and represent not Allow web page server to send information to the first load-balanced server via the first route entry, open second port and represent to permit Perhaps web page server sends information via secondary route entry to the second load-balanced server, closes second port and represents not permit Perhaps web page server sends information via secondary route entry to the second load-balanced server, is detecting the first route entry After communication is normal, before the first load-balanced server is sent information to by the first route entry, this method also includes: Open first port and simultaneously close off second port.
Further, sending information to the first load-balanced server by the first route entry includes:Detect first end Whether mouth is opened;And in the case where detecting first port to open, pass through the first route entry forwarding information to first Load-balanced server.
Further, first port and second port are provided with web page server, wherein, open first port and represent Allow web page server to send information to the first load-balanced server via the first route entry, close first port and represent not Allow web page server to send information to the first load-balanced server via the first route entry, open second port and represent to permit Perhaps web page server sends information via secondary route entry to the second load-balanced server, closes second port and represents not permit Perhaps web page server sends information via secondary route entry to the second load-balanced server, is detecting the first route entry After obstacle occurs in communication, before by secondary route entry forwarding information to the second load-balanced server, this method is also Including:Close first port and open second port simultaneously.
Further, the first route entry has the default priority of first path first and first path second preferential Level, the priority of first path first represent that perform web page server sends out via the first route entry to the first load-balanced server Send the priority of message, secondary route entry has second the first priority of path, second the first priority of path represent via Secondary route entry sends the priority of message to the second load-balanced server, and second the first priority of path is less than the first via The priority of footpath first, if detecting that the first route entry communicates obstacle, it is negative to send information to second by secondary route entry Carrying equalization server includes:The priority of first path first is changed to the priority of first path second, wherein, first path Two priority are less than second the first priority of path;Judge whether secondary route entry is highest priority in multiple route entrys Route entry;And judging situation of the secondary route entry for the route entry of highest priority in multiple route entrys Under, the second load-balanced server receives the information of secondary route entry forwarding.
To achieve these goals, according to another aspect of the present invention, there is provided a kind of server load balancing device.Clothes Business device load balancing apparatus is used for the load balancing of multiple web page servers, in each web page server and load-balanced server Between be provided with multiple route entrys, load-balanced server includes the first load-balanced server and the second load balancing service Device, multiple route entrys include the first route entry and secondary route entry, the first route entry be each web page server and The path of information is sent between first load-balanced server, secondary route entry is that each web page server and the second load are equal The path of information is sent between weighing apparatus server, is included according to the server load balancing device of the present invention:Detection unit, for examining Whether normal survey the communication of the first route entry;First transmitting element, for detecting the normal feelings of the first route entry communication Under condition, the first load-balanced server is sent information to by the first route entry;And second transmitting element, for detecting In the case of going out the first route entry communication obstacle, pass through secondary route entry forwarding information to the second load-balanced server.
Further, detection unit includes:Second sending module, for sending detection information;First detection module, it is used for Whether detection is received in preset time via the first route entry feedack;Second detection module, for receiving In the case of via the first route entry feedack, detect that the communication of the first route entry is normal;And the 3rd detection Module, if in the case where not receiving via the first route entry feedack, detecting that the first route entry is led to Interrogate failure.
Further, first port and second port are provided with web page server, wherein, open first port and represent Allow web page server to send information to the first load-balanced server via the first route entry, close first port and represent not Allow web page server to send information to the first load-balanced server via the first route entry, open second port and represent to permit Perhaps web page server sends information via secondary route entry to the second load-balanced server, closes second port and represents not permit Perhaps web page server sends information via secondary route entry to the second load-balanced server, is detecting the first route entry After communication is normal, before the first load-balanced server is sent information to by the first route entry, the device also includes: Configuration module, second port is simultaneously closed off for opening first port.
Further, the first transmitting element includes:4th detection module, for detecting whether first port opens;And Sending module, in the case where detecting first port to open, by the first route entry forwarding information to first negative Carry equalization server.
By the present invention, using the method comprised the following steps:Whether normal detect the communication of the first route entry;If inspection It is normal to measure the communication of the first route entry, the first load-balanced server is sent information to by the first route entry;If inspection The first route entry communication obstacle is measured, passes through secondary route entry forwarding information to the second load-balanced server.Pass through this It is whether normal that the communication of the first route entry is detected in invention, is determined by communicating normal route entry, by web page server Middle information is sent to corresponding load-balanced server via normal route entry is communicated, and is solved when a set of load balancing takes Business device delay machine when, the problem of corresponding web page server cisco unity malfunction.
Brief description of the drawings
The accompanying drawing for forming the part of the application is used for providing a further understanding of the present invention, schematic reality of the invention Apply example and its illustrate to be used to explain the present invention, do not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart according to the server load balancing method of the present invention;
Fig. 2 is the schematic diagram that client accesses web page server;And
Fig. 3 is the schematic diagram according to the server load balancing device of the present invention.
Embodiment
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase Mutually combination.Describe the present invention in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
In order that those skilled in the art more fully understand application scheme, below in conjunction with the embodiment of the present application Accompanying drawing, the technical scheme in the embodiment of the present application is clearly and completely described, it is clear that described embodiment is only The embodiment of the application part, rather than whole embodiments.Based on the embodiment in the application, ordinary skill people The every other embodiment that member is obtained under the premise of creative work is not made, it should all belong to the model of the application protection Enclose.
It should be noted that term " first " in the description and claims of this application and above-mentioned accompanying drawing, " Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so use Data can exchange in the appropriate case, so as to embodiments herein described herein.In addition, term " comprising " and " tool Have " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing series of steps or unit Process, method, system, product or equipment are not necessarily limited to those steps clearly listed or unit, but may include without clear It is listing to Chu or for the intrinsic other steps of these processes, method, product or equipment or unit.
Fig. 1 is the flow chart according to the server load balancing method of the present invention.As shown in figure 1, this method is including as follows Step S101 to step S105:
Whether step S101, detection the first route entry communication are normal.
Web page server is multiple web page servers, is provided between each web page server and load-balanced server Multiple route entrys, load-balanced server include the first load-balanced server and the second load-balanced server, Duo Gelu First route entry and secondary route entry are included by entry, the first route entry is that each web page server and the first load are equal Weigh and the path of information sent between server, secondary route entry be each web page server and the second load-balanced server it Between send information path.
Whether detect the first route entry communication of first web page server to the first load-balanced server transmission information Normally.
Specifically, the first web page server sends detection letter via the first route entry to the first load-balanced server Breath;Whether detection first web page server in preset time is received via the first route entry feedack;If connect Receive via the first route entry feedack, detect that the communication of the first route entry is normal;If do not receive via first Route entry feedack, detect the first route entry communication failure.
Step S102, if detecting that the communication of the first route entry is normal, the is sent information to by the first route entry One load-balanced server.
First port and second port are provided with web page server, wherein, open first port and represent to allow webpage Server sends information via the first route entry to the first load-balanced server, closes first port and represents not allow webpage Server sends information via the first route entry to the first load-balanced server, opens second port and represents to allow webpage to take Business device sends information via secondary route entry to the second load-balanced server, closes second port and represents not allow webpage to take Business device sends information via secondary route entry to the second load-balanced server, is detecting that the communication of the first route entry is normal Afterwards, before the first load-balanced server is sent information to by the first route entry, open first port and simultaneously close off Second port.
For example, different default routes is configured on web page server:A is route, gives tacit consent to and all-network data is sent to lvs Load-balanced server A;B is route, gives tacit consent to and all-network data is sent to lvs load-balanced servers B;On web page server Face configuration route A Metrec values are 1, and the Metrec values for routeing B are 500, and giving tacit consent to all packets all can be by routeing A forwardings.
It should be noted that lvs load-balanced server A, that is, above-mentioned first load-balanced server, lvs are born Equalization server B is carried, that is, above-mentioned second load-balanced server.
The detected module of http agreements is opened, is created in web page server above with http agreements and is detected port 9001 and 9002, and a static resource http is provided:// web page server 1/heartbeat/heartbert.gif is used for quilt Detection.Lvs load-balanced servers A detects 9001 ports;Lvs load-balanced servers B detects 9002 ports.Specifically, with Exemplified by lvs load-balanced servers A detections port 9001, the port created by web page server above with http agreements and phase The IP address composition access path (or being root) answered, lvs load-balanced servers provide according to the access path to static state Source http:// web page server 1/heartbeat/heartbert.gif conducts interviews, if accessing static resource http:// Web page server 1/heartbeat/heartbert.gif successes, then illustrate that port 9001 has been switched on, if accessing static money Source http:// web page server 1/heartbeat/heartbert.gif fails, then illustrates that port 9001 is closed.
Sending information to the first load-balanced server by the first route entry includes:Whether detection first port is opened Open;In the case where detecting first port to open, pass through the first route entry forwarding information to the first load balancing service Device.
Such as above-mentioned example, route A is detected by traceroute modes, if route A testing results are can positive normal open News, then current route A metrec values are constant, in the case that 9001 ports have been switched on, web page server via route A to Lvs load-balanced servers A sends information.
Step S103, if detecting that the first route entry communicates obstacle, pass through secondary route entry forwarding information to the Two load-balanced servers.
First port and second port are provided with web page server, wherein, open first port and represent to allow webpage Server sends information via the first route entry to the first load-balanced server, closes first port and represents not allow webpage Server sends information via the first route entry to the first load-balanced server, opens second port and represents to allow webpage to take Business device sends information via secondary route entry to the second load-balanced server, closes second port and represents not allow webpage to take Business device sends information via secondary route entry to the second load-balanced server, is detecting the communication appearance of the first route entry After obstacle, before by secondary route entry forwarding information to the second load-balanced server, first port is closed simultaneously Open second port.First route entry has the default priority of first path first and first path second priority, the One the first priority of path represents to perform web page server and send to the first load-balanced server via the first route entry to disappear The priority of breath, secondary route entry have second the first priority of path, and second the first priority of path is represented via second Route entry sends the priority of message to the second load-balanced server, and second the first priority of path is less than first path the One priority, if detecting that the first route entry communicates obstacle, it is equal that the second load is sent information to by secondary route entry Weighing apparatus server includes:The priority of first path first is changed to the priority of first path second, wherein, first path second is excellent First level is less than second the first priority of path;Judge secondary route entry whether be highest priority in multiple route entrys road By entry;In the case where judging route entry of the secondary route entry for highest priority in multiple route entrys, second Load-balanced server receives the information of secondary route entry forwarding.
For example, different default routes is configured on web page server:A is route, gives tacit consent to and all-network data is sent to lvs Load-balanced server A;B is route, gives tacit consent to and all-network data is sent to lvs load-balanced servers B;It should be noted that Lvs load-balanced server A, that is, above-mentioned first load-balanced server, lvs load-balanced server B, that is, Above-mentioned second load-balanced server.Configuration route A Metrec values are 1 on web page server, route B Metrec values For 500, giving tacit consent to all packets all can be by routeing A forwardings.It should be noted that route A Metrec values 1 are that is, first The priority of path first, B Metrec values 500 are route that is, second the first priority of path.
Route A is detected by traceroute modes, if route A testing results are to be unable to normal communication, then route A Metrec values be changed to 1000, that is, route A Metrec values 1000 equivalent to the priority of first path second, and due to routeing A metrec values 1000 are more than route B metrec values 500, i.e. the priority of first path second is excellent less than the second path first First level.So all packet informations can all have route B to be forwarded to lvs load-balanced servers B.
Fig. 2 is that client accesses web page server schematic diagram.As shown in Fig. 2, it is necessary to obtain when client computer 200 accesses domain name A Obtain the host server IP of domain name A bindings.Flow is as follows:First, client computer 200 sends request instruction to recursion server 100 (i.e.:Local bandwidth operator servers), the hair request of recursion server 100 is to resolution server;Then, resolution server is by domain All poll host server IP that name is set return to recursion server 100, recursion server 100 by these IP return again to Client computer 200, finally, the browser of client computer 200 can the one of IP of random access conduct interviews web page server.
Under lvs load balancing nat patterns, request instruction can only be transmitted to webpage clothes by lvs load-balanced servers 300 Request instruction can only be transmitted to web page server 402 or 403 by business device 400 or 401, lvs load-balanced server 301. It is, a web page server can only correspond to a lvs load-balanced server, and a lvs load-balanced server can With corresponding more web page servers.By detecting whether route entry on web page server communicates normally in the present invention, communicating Web page server sends information via loaded server corresponding to the route entry to the route entry in the case of normal, is examining When measuring route entry communication obstacle, web page server is via corresponding to another route entry to another route entry Load-balanced server sends information, lvs load-balanced servers 300 or 301 is realized, wherein a load-balanced server When going wrong, web page server 400,401,402 and 403 can normal work.
Server load balancing method provided in an embodiment of the present invention, by whether just to detect the communication of the first route entry Often;If detecting that the communication of the first route entry is normal, the first load balancing service is sent information to by the first route entry Device;If detecting that the first route entry communicates obstacle, pass through secondary route entry forwarding information to the second load balancing service Device.By the present invention, solve when a set of load-balanced server delays machine, corresponding web page server can not normal work The problem of making.Realize when any set load-balanced server goes wrong, corresponding web page server can be normal Work.
It should be noted that can be in such as one group of computer executable instructions the flow of accompanying drawing illustrates the step of Performed in computer system, although also, show logical order in flow charts, in some cases, can be with not The order being same as herein performs shown or described step.
The embodiment of the present invention additionally provides a kind of server load balancing device, it is necessary to explanation, the embodiment of the present invention Server load balancing device can be used for perform the embodiment of the present invention provided be used for server load balancing method.With Under server load balancing device provided in an embodiment of the present invention is introduced.
Fig. 3 is the schematic diagram according to the server load balancing device of the present invention.As shown in figure 3, the device includes:Detection Unit 10, the first transmitting element 20 and the second transmitting element 30.
Wherein, server load balancing device is used for the load balancing of multiple web page servers, in each web page server Be provided with multiple route entrys between load-balanced server, load-balanced server include the first load-balanced server and Second load-balanced server, multiple route entrys include the first route entry and secondary route entry, and the first route entry is The path of information is each sent between web page server and the first load-balanced server, secondary route entry takes for each webpage The path of information is sent between business device and the second load-balanced server.
Whether detection unit 10 is normal for detecting the communication of the first route entry.
Preferably, in server load balancing device provided in an embodiment of the present invention, detection unit includes:Second sends Module, for sending detection information;First detection module, for detect whether receive in preset time via the first via by Entry feedack;Second detection module, in the case where receiving via the first route entry feedack, examining It is normal to measure the communication of the first route entry;And the 3rd detection module, if for do not receive it is anti-via the first route entry In the case of the information of feedback, the first route entry communication failure is detected.
First transmitting element 20, in the case of detecting that the communication of the first route entry is normal, by the first via by Entry sends information to the first load-balanced server.
First port and second port are provided with web page server, wherein, open first port and represent to allow webpage Server sends information via the first route entry to the first load-balanced server, closes first port and represents not allow webpage Server sends information via the first route entry to the first load-balanced server, opens second port and represents to allow webpage to take Business device sends information via secondary route entry to the second load-balanced server, closes second port and represents not allow webpage to take Business device sends information via secondary route entry to the second load-balanced server, is detecting that the communication of the first route entry is normal Afterwards, before the first load-balanced server is sent information to by the first route entry, device also includes:Configuration module, Second port is simultaneously closed off for opening first port.First transmitting element includes:4th detection module, for detecting first end Whether mouth is opened;Sending module, in the case where detecting first port to open, being forwarded and being believed by the first route entry Cease to the first load-balanced server.
Second transmitting element 30, in the case where detecting the first route entry communication obstacle, passing through secondary route Entry forwarding information is to the second load-balanced server.
Server load balancing device provided in an embodiment of the present invention, the first route entry is detected by detection unit 10 and led to Whether news are normal;First transmitting element 20 is in the case of detecting that the communication of the first route entry is normal, by the first via by bar Mesh sends information to the first load-balanced server;Second transmitting element 30 is detecting the feelings of the first route entry communication obstacle Under condition, pass through secondary route entry forwarding information to the second load-balanced server.By the present invention, solve when a set of load Equalization server delay machine when, the problem of corresponding web page server cisco unity malfunction.Realize and work as any load balancing When server goes wrong, corresponding web page server can normal work.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general Computing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and formed Network on, alternatively, they can be realized with the program code that computing device can perform, it is thus possible to they are stored Performed in the storage device by computing device, either they are fabricated to respectively each integrated circuit modules or by they In multiple modules or step be fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific Hardware and software combines.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent substitution, improvement etc., should be included in the scope of the protection.

Claims (8)

1. a kind of server load balancing method, the load that the server load balancing method is used for multiple web page servers is equal Weighing apparatus, multiple route entrys, the load balancing clothes are provided between each web page server and load-balanced server Business device includes the first load-balanced server and the second load-balanced server, and the multiple route entry includes the first via by bar Mesh and secondary route entry, first route entry are each web page server and first load-balanced server Between send the path of information, the secondary route entry is each web page server and second load balancing service The path of information is sent between device, it is characterised in that methods described includes:
Whether normal detect the first route entry communication;
If detecting that the first route entry communication is normal, described first is sent information to by first route entry Load-balanced server;And
If detecting the first route entry communication obstacle, pass through the secondary route entry forwarding information to described second Load-balanced server,
Wherein, first port and second port are provided with the web page server, wherein, open the first port and represent Allow the web page server to send information to first load-balanced server via first route entry, close institute First port is stated to represent not allowing the web page server via first route entry to first load balancing service Device sends information, opens the second port and represents to allow the web page server via the secondary route entry to described the Two load-balanced servers send information, close the second port and represent not allowing the web page server via described second Route entry sends information to second load-balanced server, is detecting that obstacle occurs in first route entry communication Afterwards, before by the secondary route entry forwarding information to second load-balanced server, methods described is also wrapped Include:
Close the first port while open the second port,
Wherein, first route entry has the default priority of first path first and first path second priority, institute State the priority of first path first and represent that perform the web page server loads via first route entry to described first Equalization server sends the priority of message, and the secondary route entry has second the first priority of path, second tunnel The priority of footpath first represents the priority to second load-balanced server transmission message via the secondary route entry, The priority of second path first is less than the priority of first path first, if detecting that first route entry is led to Obstacle is interrogated, sending information to second load-balanced server by the secondary route entry includes:By first path One priority is changed to the priority of first path second, wherein, the priority of first path second is less than second path First priority;Judge the secondary route entry whether be highest priority in the multiple route entry route entry; And in the case where judging route entry of the secondary route entry for highest priority in the multiple route entry, Second load-balanced server receives the information of the secondary route entry forwarding.
2. according to the method for claim 1, it is characterised in that whether detection the first route entry communication normally wraps Include:
Send detection information;
Whether detection is received in preset time via the first route entry feedack;
If received via the first route entry feedack, detect that the first route entry communication is normal; And
If do not received via the first route entry feedack, the first route entry communication failure is detected.
3. according to the method for claim 1, it is characterised in that first port and the are provided with the web page server Two-port netwerk, wherein, open the first port and represent to allow the web page server via first route entry to described First load-balanced server sends information, closes the first port and represents not allow the web page server via described the One route entry sends information to first load-balanced server, opens the second port and represents to allow the webpage to take Business device sends information via the secondary route entry to second load-balanced server, closes the second port and represents Do not allow the web page server to send information to second load-balanced server via the secondary route entry, examining After measuring the first route entry communication normally, first load is being sent information to by first route entry Before equalization server, methods described also includes:
Open the first port and simultaneously close off the second port.
4. according to the method for claim 3, it is characterised in that send information to described the by first route entry One load-balanced server includes:
Detect whether the first port opens;And
In the case where detecting the first port to open, pass through the first route entry forwarding information to described first Load-balanced server.
5. a kind of server load balancing device, the load that the server load balancing device is used for multiple web page servers is equal Weighing apparatus, multiple route entrys, the load balancing clothes are provided between each web page server and load-balanced server Business device includes the first load-balanced server and the second load-balanced server, and the multiple route entry includes the first via by bar Mesh and secondary route entry, first route entry are each web page server and first load-balanced server Between send the path of information, the secondary route entry is each web page server and second load balancing service The path of information is sent between device, it is characterised in that including:
Whether detection unit is normal for detecting the first route entry communication;
First transmitting element, in the case of detecting that the first route entry communication is normal, passing through the first via First load-balanced server is sent information to by entry;And
Second transmitting element, in the case where detecting the first route entry communication obstacle, passing through second tunnel By entry forwarding information to second load-balanced server,
Wherein, first port and second port are provided with the web page server, wherein, open the first port and represent Allow the web page server to send information to first load-balanced server via first route entry, close institute First port is stated to represent not allowing the web page server via first route entry to first load balancing service Device sends information, opens the second port and represents to allow the web page server via the secondary route entry to described the Two load-balanced servers send information, close the second port and represent not allowing the web page server via described second Route entry sends information to second load-balanced server, and described device is additionally operable to:Detect the first via by Entry communication there is obstacle after, by the secondary route entry forwarding information to second load-balanced server it Before, close the first port while open the second port,
Wherein, first route entry has the default priority of first path first and first path second priority, institute State the priority of first path first and represent that perform the web page server loads via first route entry to described first Equalization server sends the priority of message, and the secondary route entry has second the first priority of path, second tunnel The priority of footpath first represents the priority to second load-balanced server transmission message via the secondary route entry, The priority of second path first is less than the priority of first path first, and second transmitting element is additionally operable to first The priority of path first is changed to the priority of first path second, wherein, the priority of first path second is less than described the Two the first priority of path;Judge the secondary route entry whether be highest priority in the multiple route entry route Entry;And judging feelings of the secondary route entry for the route entry of highest priority in the multiple route entry Under condition, second load-balanced server receives the information of the secondary route entry forwarding.
6. device according to claim 5, it is characterised in that the detection unit includes:
Second sending module, for sending detection information;
First detection module, the letter fed back via first route entry whether is received in preset time for detecting Breath;
Second detection module, in the case where receiving via the first route entry feedack, detecting institute It is normal to state the communication of the first route entry;And
3rd detection module, if in the case where not receiving via the first route entry feedack, detecting Go out the first route entry communication failure.
7. device according to claim 5, it is characterised in that first port and are provided with the web page server Two-port netwerk, wherein, open the first port and represent to allow the web page server via first route entry to described First load-balanced server sends information, closes the first port and represents not allow the web page server via described the One route entry sends information to first load-balanced server, opens the second port and represents to allow the webpage to take Business device sends information via the secondary route entry to second load-balanced server, closes the second port and represents Do not allow the web page server to send information to second load-balanced server via the secondary route entry, examining After measuring the first route entry communication normally, first load is being sent information to by first route entry Before equalization server, described device also includes:
Configuration module, the second port is simultaneously closed off for opening the first port.
8. device according to claim 7, it is characterised in that first transmitting element includes:
4th detection module, for detecting whether the first port opens;And
Sending module, in the case where detecting the first port to open, being forwarded by first route entry Information is to first load-balanced server.
CN201410659288.3A 2014-11-18 2014-11-18 Server load balancing method and apparatus Active CN104410677B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410659288.3A CN104410677B (en) 2014-11-18 2014-11-18 Server load balancing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410659288.3A CN104410677B (en) 2014-11-18 2014-11-18 Server load balancing method and apparatus

Publications (2)

Publication Number Publication Date
CN104410677A CN104410677A (en) 2015-03-11
CN104410677B true CN104410677B (en) 2017-12-19

Family

ID=52648275

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410659288.3A Active CN104410677B (en) 2014-11-18 2014-11-18 Server load balancing method and apparatus

Country Status (1)

Country Link
CN (1) CN104410677B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547394A (en) * 2017-08-14 2018-01-05 新华三信息安全技术有限公司 A kind of load-balancing device dispositions method more living and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420381A (en) * 2008-12-08 2009-04-29 杭州华三通信技术有限公司 Method and apparatus for enhancing forwarding reliability in VRRP load balance
CN101741850A (en) * 2009-12-25 2010-06-16 北京邮电大学 Multitask concurrent executive system and method for hybrid network service
CN102143046A (en) * 2010-08-25 2011-08-03 华为技术有限公司 Load balancing method, equipment and system
CN102387218A (en) * 2011-11-24 2012-03-21 浪潮电子信息产业股份有限公司 Multimachine hot standby load balance system for computer
CN102510407A (en) * 2011-11-22 2012-06-20 沈文策 Method and system for reading and writing microblog
CN102968310A (en) * 2012-12-05 2013-03-13 武汉烽火普天信息技术有限公司 Integrated high-performance application software architecture and construction method thereof
CN103346923A (en) * 2013-07-30 2013-10-09 曙光信息产业(北京)有限公司 Management method and management device for double-unit load balancing equipment
CN103795805A (en) * 2014-02-27 2014-05-14 中国科学技术大学苏州研究院 Distributed server load balancing method based on SDN

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420381A (en) * 2008-12-08 2009-04-29 杭州华三通信技术有限公司 Method and apparatus for enhancing forwarding reliability in VRRP load balance
CN101741850A (en) * 2009-12-25 2010-06-16 北京邮电大学 Multitask concurrent executive system and method for hybrid network service
CN102143046A (en) * 2010-08-25 2011-08-03 华为技术有限公司 Load balancing method, equipment and system
CN102510407A (en) * 2011-11-22 2012-06-20 沈文策 Method and system for reading and writing microblog
CN102387218A (en) * 2011-11-24 2012-03-21 浪潮电子信息产业股份有限公司 Multimachine hot standby load balance system for computer
CN102968310A (en) * 2012-12-05 2013-03-13 武汉烽火普天信息技术有限公司 Integrated high-performance application software architecture and construction method thereof
CN103346923A (en) * 2013-07-30 2013-10-09 曙光信息产业(北京)有限公司 Management method and management device for double-unit load balancing equipment
CN103795805A (en) * 2014-02-27 2014-05-14 中国科学技术大学苏州研究院 Distributed server load balancing method based on SDN

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547394A (en) * 2017-08-14 2018-01-05 新华三信息安全技术有限公司 A kind of load-balancing device dispositions method more living and device

Also Published As

Publication number Publication date
CN104410677A (en) 2015-03-11

Similar Documents

Publication Publication Date Title
CN104380693B (en) System and method for dynamic routing in the cluster
CN104283804B (en) A kind of balancing link load method and apparatus
CN104364761B (en) For the system and method for the converting flow in cluster network
CN104780066B (en) Determined for the physical pathway of virtual network stream of packets
CN103166985B (en) A kind of GSLB dispatching method, data transmission method, apparatus and system
CN107872392A (en) Service function chain data and service function instance data are distributed in a network
CN109076065A (en) The resource-based strategy of safety
US20080205399A1 (en) Method and System for Routing in Communication Networks Between a First Node and a Second Node
CN110178342A (en) The scalable application level of SDN network monitors
CN107771320A (en) For improving security socket layer(SSL)The system and method for communications security
CN106911778A (en) A kind of flow bootstrap technique and system
CN107086966A (en) A kind of load balancing of network, control and network interaction method and device
CN110247784A (en) The method and apparatus for determining network topology structure
CN103597794B (en) For providing the information about array of data association and for forwarding the imagination of array of data
US11153185B2 (en) Network device snapshots
CN103873449B (en) Method for network access and system
CN106686137B (en) Network isolating device load-balancing method based on L2 data forwarding
CN108390955A (en) Domain Name acquisition method, Website access method and server
US20200145445A1 (en) Malware detection in distributed computer systems
CN104040538B (en) A kind of the Internet, applications exchange method, apparatus and system
CN103701928B (en) It is applied to the method that load equalizer improves server and SSL gateway operational efficiency
CN108604997A (en) Method and apparatus for the control plane configured to the monitoring of differentiated service encoded point (DSCP) and ecn (explicit congestion notification) (ECN)
CN105338072A (en) HTTP (hyper text transport protocol) redirecting method and routing equipment
CN104980461B (en) Page push method, apparatus, server and centralized Network management controller
CN106790759A (en) IPv4/IPv6 converting systems and method based on SDN

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Load balancing method and apparatus for edge EPG server, implementing method for user login

Effective date of registration: 20190531

Granted publication date: 20171219

Pledgee: Shenzhen Black Horse World Investment Consulting Co., Ltd.

Pledgor: Beijing Guoshuang Technology Co.,Ltd.

Registration number: 2019990000503

PE01 Entry into force of the registration of the contract for pledge of patent right
CP02 Change in the address of a patent holder

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Patentee after: Beijing Guoshuang Technology Co.,Ltd.

Address before: 100086 Beijing city Haidian District Shuangyushu Area No. 76 Zhichun Road cuigongfandian 8 layer A

Patentee before: Beijing Guoshuang Technology Co.,Ltd.

CP02 Change in the address of a patent holder