CN106549875B - A kind of conversation managing method, device and load balancer - Google Patents

A kind of conversation managing method, device and load balancer Download PDF

Info

Publication number
CN106549875B
CN106549875B CN201510599682.7A CN201510599682A CN106549875B CN 106549875 B CN106549875 B CN 106549875B CN 201510599682 A CN201510599682 A CN 201510599682A CN 106549875 B CN106549875 B CN 106549875B
Authority
CN
China
Prior art keywords
website server
session
information
load
load balancing
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
CN201510599682.7A
Other languages
Chinese (zh)
Other versions
CN106549875A (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.)
China Mobile Group Zhejiang Co Ltd
Original Assignee
China Mobile Group Zhejiang 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 China Mobile Group Zhejiang Co Ltd filed Critical China Mobile Group Zhejiang Co Ltd
Priority to CN201510599682.7A priority Critical patent/CN106549875B/en
Publication of CN106549875A publication Critical patent/CN106549875A/en
Application granted granted Critical
Publication of CN106549875B publication Critical patent/CN106549875B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a kind of conversation managing method, device and load balancer, conversation managing methods, comprising: receives user request information;Corresponding first Website server address is retrieved in session routing table according to user request information;When not retrieving the first Website server address, one second Website server address is obtained according to load balancing, and user request information is routed to by corresponding second Website server according to the second Website server address, corresponding first routing iinformation is recorded in session routing table, other load balancers that corresponding first routing iinformation is sent in load balancing cluster are synchronized into update.Scheme provided by the invention realizes the session request of user and session keeps function;Meanwhile when ensure that same user reuses, request can be accurately forwarded on the Website server with its session information, provided for user and be preferably used interchangeably experience.

Description

A kind of conversation managing method, device and load balancer
Technical field
The present invention relates to mobile communication technology field, a kind of conversation managing method, device and load balancer are particularly related to.
Background technique
Load balancer (LoadBalance) is negative as a kind of cluster network indispensable in current dominant systems framework It carries equalizing equipment to be deployed among the major information system of company, becomes a ring important in information system.Work as load balancing When device occurs abnormal unavailable, system will be unable to receive the request of processing user, and the system is caused not access normally.How to protect The High Availabitity of card load balancer becomes the major issue that must be taken into consideration when system architecture designs.
Wherein, load balancer is also commonly known as " four to seven layer switch ", respectively to four-layer network network exchange agreement and seven Layer network exchange agreement supports that the function of each layer of agreement is as shown in Figure 1, be below specifically situated between to four layers and seven layers of load balancing It continues:
Four-layer load-equalizing: namely mainly pass through destination address and the port in message, add load-balancing device The website WEB server selection strategy of setting, determines the WEB server of final choice.
As shown in Fig. 2, load-balancing device is receiving first from client by taking common three-way handshake TCP as an example When the handshake SYN request at end, i.e., an optimal WEB server is selected through the above way, and to Target IP in message Address modifies and (is changed to rear end WEB server IP), is directly forwarded to the WEB server.The connection of TCP is established, i.e., three times Shaking hands is that client and WEB server are directly established, and load-balancing device is to play a forwarding similar to router to move Make.Under certain deployment scenarios, load-balancing device can be correctly returned to guarantee that WEB server returns packet, is being E-Packeted While may can also the source address original to message modify.
Seven layers of load balancing: also referred to as " content exchange ", that is, the main real significant application by message Layer content determines the WEB server of final choice along with the WEB server selection strategy of load-balancing device setting.
As shown in figure 3, by taking common TCP as an example, if load-balancing device will select again according to real application layer content WEB server is selected, can only first act on behalf of after final WEB server and client establish connection (three-way handshake), be likely to receive The message of the real application layer content sent to client, then further according to the specific fields in the message, along with load is equal The WEB server selection strategy of the equipment that weighs setting, determines the WEB server of final choice.Load-balancing device is in such case Under, it is more closely similar to a proxy server.The WEB server of the client and rear end of load balancing and front end can be established respectively TCP connection.
For the High Availabitity of proof load balanced device, occur in the prior art it is a kind of disposed using active and standby (HA) mode it is negative Carry equalization framework.The framework is using the load-balancing device for supporting seven layer network exchange agreements, a main load-balancing device pair Outer offer service, another standby load-balancing device are in standby, and do not provide service externally, as shown in Figure 4.In this way, working as Main load-balancing device can be manually or automatically switched on standby load-balancing device when breaking down, and continuation externally mentions For service.
And as corporate information system centralization is built, a large number of users request Concurrency access information system, to expand system Handling capacity, mainstream framework uses front end load equalizing equipment, the mode of rear end web server cluster, and is responsible for asking as core It asks the load-balancing device of distribution mostly active/standby mode to be used to dispose, is all that (only a load balancing is set for single-point work for a long time It is standby that service is externally provided), the not support of cluster mode, concurrently access pressure is larger, High Availabitity poor ability, easily influence information There is the case where slow speed of service and collapse in the normal access of system;In addition when main equipment breaks down and is switched on standby host, Will appear of short duration information system in handoff procedure can not access, and will lead to user session information loss, and user experience is very poor.
On the other hand, as (Linux Virtual Server, Linux virtual server are a virtual clothes to LVS Be engaged in device group system) technology development and maturation, occur therewith based on LVS technology construct support four-layer network network exchange agreement Load balancing cluster framework, which can be assigned to each load-balancing device in cluster for load according to its load balancing On, while according to the demand of business, dynamic adjusts the number of members of load balancing cluster, has good expansible and High Availabitity Characteristic.
But LVS load balancing cluster framework can not carry out user's request data because only supporting four-layer network network agreement Analysis processing, so that each request that the load balancing framework not can guarantee the user is all forwarded to and preserves user conversation letter In the WEB server example of breath, user session information is caused to lose, not can guarantee the normal processing of request, so in practical life It is not used largely in production system.
Summary of the invention
The purpose of the present invention is to provide a kind of conversation managing method, device and load balancers, solve in the prior art The problem of load balancing mode easily causes user session information to lose, and influences user experience.
In order to solve the above-mentioned technical problem, the embodiment of the present invention provides a kind of conversation managing method, is applied to load balancing Any load balancer in cluster, comprising:
Receive user request information;
Corresponding first Website server address is retrieved in session routing table according to user request information;
When not retrieving the first Website server address, one second website service is obtained according to load balancing Device address, and the user request information is routed to by corresponding second website service according to second Website server address Corresponding first routing iinformation is recorded in the session routing table device, and corresponding first routing iinformation is sent to Other load balancers in the load balancing cluster synchronize update.
Optionally, the conversation managing method further include:
When detecting the first Website server address, according to first Website server address by the user Solicited message routes to corresponding first Website server.
Optionally, the step of reception user request information specifically:
Receive the user request information that network management is routed according to Open Shortest Path First ospf network agreement.
Optionally, the conversation managing method further include:
Whether the Website server in regular check Website server cluster corresponding with the load balancing cluster can be used;
When unavailable, then by the corresponding secondary route of the not available Website server in the session routing table Change dump is the third routing iinformation of corresponding spare Website server, and replacement information is sent to the load Other load balancers in weighing apparatus cluster synchronize update.
Optionally, described when unavailable, then by the not available Website server pair in the session routing table The secondary route change dump answered be corresponding spare Website server third routing iinformation the step of include:
When unavailable, exception reporting information is generated;
It is in the session routing table that the not available Website server is corresponding according to the exception reporting information Secondary route change dump is the third routing iinformation of corresponding spare Website server.
Optionally, the conversation managing method further include:
Receiving the 4th routing iinformation or update letter that other load balancers in the load balancing cluster are sent When breath, update is synchronized to the local session routing table.
Optionally, described in the 4th routing letter for receiving other load balancers transmission in the load balancing cluster Breath or when more new information, the step of synchronizing update to the local session routing table include:
When receiving four routing iinformation that other load balancers in the load balancing cluster are sent, by described the Four routing iinformations increase newly into the local session routing table;
When receiving the more new information that other load balancers in the load balancing cluster are sent, according to the update 5th routing iinformation of corresponding unavailable Website server in the session routing table of information searching local, and by described Five routing iinformations are revised as spare Website server corresponding with the unavailable Website server in the more new information 6th routing iinformation.
The present invention also provides a kind of session management device, applied to any load balancer in load balancing cluster, Include:
Receiving module, for receiving user request information;
Retrieval module, for retrieving corresponding first Website server in session routing table according to user request information Location;
First processing module, for when not retrieving the first Website server address, according to load balancing One second Website server address is obtained, and is routed to the user request information according to second Website server address Corresponding first routing iinformation is recorded in the session routing table corresponding second Website server, will be described corresponding Other load balancers that first routing iinformation is sent in the load balancing cluster synchronize update.
Optionally, the session management device further include:
Routing module, for when detecting the first Website server address, according to first Website server The user request information is routed to corresponding first Website server by address.
Optionally, the receiving module is specifically used for:
Receive the user request information that network management is routed according to Open Shortest Path First ospf network agreement.
Optionally, the session management device further include:
Regular check module, for the net in regular check Website server cluster corresponding with the load balancing cluster Whether site server can be used;
Second processing module, for when unavailable, then taking the not available website in the session routing table The corresponding secondary route change dump of business device is the third routing iinformation of corresponding spare Website server, and replacement is believed It ceases other load balancers being sent in the load balancing cluster and synchronizes update.
Optionally, the Second processing module includes:
Submodule is generated, for generating exception reporting information when unavailable;
Replace submodule, for according to the exception reporting information in the session routing table by the not available net The corresponding secondary route change dump of site server is the third routing iinformation of corresponding spare Website server.
Optionally, the session management device further include:
Synchronized update module, for receiving the 4th of other load balancers transmission in the load balancing cluster When routing iinformation or more new information, update is synchronized to the local session routing table.
Optionally, described to include: in synchronized update module
Newly-increased submodule, in the 4th routing for receiving other load balancers transmission in the load balancing cluster When information, the 4th routing iinformation is increased newly into the local session routing table;
First processing submodule, in the update for receiving other load balancers transmission in the load balancing cluster When information, according to the 5th of corresponding unavailable Website server in the session routing table for updating information searching local the Routing iinformation, and the 5th routing iinformation is revised as corresponding with the unavailable Website server in the more new information Spare Website server the 6th routing iinformation.
The present invention also provides a kind of load balancers, are applied in load balancing cluster, comprising: above-mentioned session management Device.
The advantageous effects of the above technical solutions of the present invention are as follows:
In above scheme, the conversation managing method retrieves corresponding first Website server by receiving user's request Address obtains one second Website server address according to load balancing and is forwarded, and in local when not retrieving The record that dependent routing information is carried out in session routing table, the session request and session for realizing user keep function;Meanwhile it will Other load balancers that the dependent routing information of new record is sent in same load balancing cluster synchronize update, guarantee When same user reuses, request can be accurately forwarded on the Website server with its session information, And the linear expansion of holding load balancing cluster realizes load-balancing device High Availabitity, guarantees the smooth extended capability of system, It is provided for user and is preferably used interchangeably experience.
Detailed description of the invention
Fig. 1 is the protocal layers functional schematic of the prior art;
Fig. 2 is the four-layer load-equalizing flow diagram of the prior art;
Fig. 3 is seven layers of load balancing flow diagram of the prior art;
Fig. 4 is the active and standby form load balancing configuration diagram of the prior art;
Fig. 5 is the conversation managing method flow diagram of the embodiment of the present invention one;
Fig. 6 is the SiteServer LBS configuration diagram of the embodiment of the present invention two;
Fig. 7 is the session management device structural schematic diagram of the embodiment of the present invention two;
Fig. 8 is the SiteServer LBS flow diagram of the embodiment of the present invention two;
Fig. 9 is the session routing iinformation synchronized update schematic diagram of the embodiment of the present invention two;
Figure 10 is the session management device structural schematic diagram of the embodiment of the present invention three.
Specific embodiment
To keep the technical problem to be solved in the present invention, technical solution and advantage clearer, below in conjunction with attached drawing and tool Body embodiment is described in detail.
Middle load balancing mode easily causes user session information to lose to the present invention in view of the prior art, influences user experience The problem of, a variety of solutions are provided, specific as follows:
Embodiment one
As shown in figure 5, the conversation managing method that the embodiment of the present invention one provides, can be applied to appointing in load balancing cluster One load balancer, the conversation managing method include:
Step 51: receiving user request information;
Step 52: retrieving corresponding first Website server address in session routing table according to user request information;
Step 53: when not retrieving the first Website server address, obtaining one second according to load balancing Website server address, and the user request information is routed to corresponding second according to second Website server address Corresponding first routing iinformation is recorded in the session routing table Website server, by the corresponding first via by believing It ceases other load balancers being sent in the load balancing cluster and synchronizes update.
Wherein, user request information can need to access the request of content for any user, and load balancing can be poll Any other strategy that can reach technical purpose such as strategy or Smallest connection strategy, it is not limited here.
The conversation managing method that the embodiment of the present invention one provides retrieves corresponding first net by receiving user's request Site server address obtains one second Website server address according to load balancing and is forwarded when not retrieving, and The record that dependent routing information is carried out in local session routing table, the session request and session for realizing user keep function Energy;Meanwhile the dependent routing information of new record is sent to other load balancers in same load balancing cluster and is carried out together Step updates, and when ensure that same user reuses, request can accurately be forwarded to the net with its session information On site server, and the linear expansion of holding load balancing cluster, it realizes load-balancing device High Availabitity, guarantees the flat of system Sliding extended capability, provides for user and is preferably used interchangeably experience.
It is corresponding, the conversation managing method further include: when detecting the first Website server address, according to institute It states the first Website server address and the user request information is routed into corresponding first Website server.
In order to enable the use feeling of user is more preferably, retrieved in session routing table according to user request information pair described Before the first Website server address answered, the conversation managing method further include: the user is requested according to preset rules Information is pre-processed.
Specifically, described, to carry out pretreated step to the user request information according to preset rules include: according to institute The source address IP for stating client in user request information carries out reception and shielding processing;Or, according in the user request information Request content carry out receive and shielding processing;Or, when the request type in the user request information is predefined type, it will The user request information is forwarded directly to corresponding predetermined website server interface and carries out predetermined operation processing.
Wherein, the step of reception user request information specifically: receive network management according to Open Shortest Path First The user request information of ospf network agreement routing.
Further, the conversation managing method further include: regular check website corresponding with the load balancing cluster Whether the Website server in server cluster can be used;When unavailable, then by not available institute in the session routing table The third routing iinformation that the corresponding secondary route change dump of Website server is corresponding spare Website server is stated, and Other load balancers that information is sent in the load balancing cluster will be replaced and synchronize update.
Specifically, it is described when unavailable, then by the not available Website server pair in the session routing table The step of secondary route change dump answered is the third routing iinformation of corresponding spare Website server includes: can not Used time generates exception reporting information;According to the exception reporting information by the not available net in the session routing table The corresponding secondary route change dump of site server is the third routing iinformation of corresponding spare Website server.
The case where synchronized update is also needed corresponding to this load balancer, the conversation managing method further include: receiving When the 4th routing iinformation or more new information that other load balancers in the load balancing cluster are sent, to described in local Session routing table synchronizes update.
Specifically, described in the 4th routing letter for receiving other load balancers transmission in the load balancing cluster Breath or when more new information, the step of synchronizing update to the local session routing table include: to receive the load equal When four routing iinformation that other load balancers in weighing apparatus cluster are sent, the 4th routing iinformation is increased newly to local institute It states in session routing table;When receiving the more new information that other load balancers in the load balancing cluster are sent, according to 5th routing iinformation of corresponding unavailable Website server in the session routing table for updating information searching local, and 5th routing iinformation is revised as in the more new information spare website corresponding with the unavailable Website server 6th routing iinformation of server.
In view of actual conditions, in the present embodiment, it is described according to load balancing with obtaining one second Website server The step of location includes: to obtain one second Website server address according to polling schemas;Or, obtaining one the according to Smallest connection strategy Two Website server addresses.
Embodiment two
Below with reference to Fig. 6 to Fig. 9, session management scheme provided by Embodiment 2 of the present invention is elaborated.
As shown in fig. 6, the framework of whole system is related generally to based on OSPF (Open in the scheme of the embodiment of the present invention two Shortest Path First, Open Shortest Path First) load balancing cluster and Session session management of high speed network Device (SMD).
It is described as follows:
Load balancing cluster
Based on ospf network protocol construction high speed network environment, realize that user requests equivalent route to each load balancer On.
Ospf protocol is by being divided into different regions (Area) for autonomous system.Region is logically to draw router It is divided into different groups, each group is identified with regional number (Area ID).Multiple load balancer compositions one can be set in region Equivalent route is realized in a cluster, request in region, and request, which is averaged, to be distributed on each load balancer, while can basis Need to establish multiple regions (cluster).
Session session management device (SMD)
As shown in fig. 7, SMD includes five modules altogether: request receiving interface module, session route search module, meeting speech channel By synchronization module, request forwarding module and WEB (website) server detection module, mutual co-ordination between each module, it is ensured that User's request can be accurately forwarded in the WEB server with its session information, as shown in Figure 8:
Step 81: user issues request, and request is forwarded to some load in load balancing cluster through core router On weighing apparatus;
Step 82: the request receiving interface of session management device (SMD) is handed in the request received by load balancer Module;
Step 83: request receiving interface module analyzes the content of request after receiving request, and can be according to setting Corresponding strategy to request carry out classification processing, request is transmitted to after processing and attends the meeting speech channel by retrieval module.;
Step 84: session route search module retrieves session routing table according to the session information of request, and according to retrieval As a result respective handling is carried out, if retrieving corresponding session information enters step 85, enters step 86 if do not retrieved;
Step 85: the routing iinformation requested and retrieved is sent to request forwarding module by session route search module, Enter step 88;
Step 86: search result and request are transmitted to session route synchronization module by session route search module;
Step 87: session route synchronization module is that the request distributes WEB server according to load balancing, then, step Rapid 871: the dependent routing information of the session (WEB server of distribution) is recorded in local session routing table, and by its In synchronized update to load balancing cluster on the SMD of other nodes;Step 872: the WEB server information of distribution and request are sent out Request forwarding module is given, enters step 88;
Step 88: request forwarding module routes requests in its corresponding WEB server according to routing iinformation;
Processing result is simultaneously returned to corresponding load balancer by request that step 89:WEB server process receives;
Step 810: the processing result received is returned to client (user) by load balancer;
Whether step 811:WEB services detecting module regular check WEB server available (detection service state);
Step 812: if it find that WEB server unavailable (service is abnormal) then gives the information to session route synchronization mould Block;
Step 813: all WEB servers (service exception in session route synchronization module meeting routing table in step 812 WEB server) dependent routing information be revised as the WEB server spare WEB server address;Spare WEB server The session information of faulty WEB server can be saved by the Session copy function of WEB server, such subsequent request is just It can route requests in spare WEB server, guarantee that user's request can be handled normally.
It describes in detail below to five modules in session management device (SMD):
Request receiving interface module
It is responsible for receiving the user request information from load balancer, and request can be carried out according to the corresponding strategy of setting Classification processing:
1. reception and shielding processing can be carried out according to the source IP of client.
2. reception and shielding processing can be carried out according to request content.
3. specific request can be forwarded directly to specific WEB server interface carries out specific operation processing.
Session route search module
It attends the meeting to talk about in routing table according to the session information of request and be retrieved, determine whether the request is newly to request, and root It is handled according to other modules that search result is forwarded in device.
Wherein, shown in routing table data structure table specific as follows:
Field name Field description
Source_IP The client ip address of request
SessionID The SessionID information of request
Dest_IP The IP address of WEB server
Dest_Port The port information of WEB server
URL_PATH The context root information of application access
Session route synchronization module
Local routing table information is safeguarded according to session route search module and the solicited message of WEB server detection module, And the routing table information is sent to by MultiCast (multicast transmission) or IP communication protocol other in load balancing cluster Load balancer (LB) member makes its synchronous vacations local routing table information, as shown in Figure 9.
Request forwarding module
According to the search result of session route search module, the WEB service with corresponding session information is forwarded requests to On device.
1. if session route search module retrieves the conversation recording of the request, according to the record information of routing table It is forwarded in corresponding WEB server.
2. if be arranged session route search module does not retrieve the conversation recording of the request according to load balancer Load balancing normally forwarded.
WEB service detection module
The module goes the available situation of detection WEB server according to the detection cycle timing of setting, and according to the knot of feedback Fruit safeguards local routing table information, while it is synchronous more to call session route synchronization module to carry out load balancing cluster routing iinformation Newly.
Session copy function based on web server cluster, if this module detects that some WEB server occurs Failure will then update session routing table data associated with the WEB server, so that it is directed toward slave node server and continue to provide User session information is not lost in service, guarantee.
From the foregoing, it will be observed that session management scheme provided by Embodiment 2 of the present invention is realized by session management device (SMD) The routing iinformation of session synchronized in load balancing cluster it is shared, guarantee user request can accurately be forwarded to it In the WEB server of session information, and the linear expansion of holding load balancing cluster, realizing load-balancing device height can With ensure that the smooth extended capability of system.
In conclusion can be propped up second embodiment of the present invention provides a kind of in the case where guarantee does not lose user session information Seven layers of load balancing cluster framework for holding distributed horizontal extension, line can be carried out according to production needs by realizing load-balancing device Property extension purpose;And Session session can be effectively managed, session is supported to keep, guarantees that session information is not lost;It realizes negative Equalizing equipment High Availabitity is carried, guarantees that information system is stable, efficiently runs.
Embodiment three
As shown in Figure 10, the session management device that the embodiment of the present invention three provides, can be applied in load balancing cluster Any load balancer, the session management device include:
Receiving module 101, for receiving user request information;
Retrieval module 102, for retrieving corresponding first website service in session routing table according to user request information Device address;
First processing module 103, for when not retrieving the first Website server address, according to load balancing plan One second Website server address is slightly obtained, and is routed the user request information according to second Website server address To corresponding second Website server, corresponding first routing iinformation is recorded in the session routing table, by the correspondence Other load balancers for being sent in the load balancing cluster of the first routing iinformation synchronize update.
Wherein, user request information can need to access the request of content for any user, and load balancing can be poll Any other strategy that can reach technical purpose such as strategy or Smallest connection strategy, it is not limited here.
The session management device that the embodiment of the present invention three provides retrieves corresponding first net by receiving user's request Site server address obtains one second Website server address according to load balancing and is forwarded when not retrieving, and The record that dependent routing information is carried out in local session routing table, the session request and session for realizing user keep function Energy;Meanwhile the dependent routing information of new record is sent to other load balancers in same load balancing cluster and is carried out together Step updates, and when ensure that same user reuses, request can accurately be forwarded to the net with its session information On site server, and the linear expansion of holding load balancing cluster, it realizes load-balancing device High Availabitity, guarantees the flat of system Sliding extended capability, provides for user and is preferably used interchangeably experience.
It is corresponding, the session management device further include: routing module, for detecting first Website server When address, the user request information is routed to by corresponding first website service according to first Website server address Device.
In order to enable the use feeling of user is more preferably, and the conversation managing method further include: preprocessing module, for described Before first processing module executes operation, the user request information is pre-processed according to preset rules.
Specifically, the preprocessing module includes: second processing submodule, for according to objective in the user request information The source address IP at family end carries out reception and shielding processing;Or, third handles submodule, for according in the user request information Request content carry out receive and shielding processing;Or, fourth process submodule, for the request in the user request information When type is predefined type, the user request information is forwarded directly to corresponding predetermined website server interface and is made a reservation for Operation processing.
Wherein, the receiving module is specifically used for: receiving network management according to Open Shortest Path First ospf network agreement road By user request information.
Further, the session management device further include: regular check module, it is equal for regular check and the load Whether the Website server in the corresponding Website server cluster of weighing apparatus cluster can be used;Second processing module is used for when unavailable, It is then to be corresponding to it by the corresponding secondary route change dump of the not available Website server in the session routing table Spare Website server third routing iinformation, and by replace information be sent in the load balancing cluster other load Balanced device synchronizes update.
Specifically, the Second processing module includes: generation submodule, for when unavailable, generating exception reporting letter Breath;Submodule is replaced, for taking the not available website in the session routing table according to the exception reporting information The corresponding secondary route change dump of business device is the third routing iinformation of corresponding spare Website server.
The case where synchronized update is also needed corresponding to this load balancer, the session management device further include: synchronized update Module, for receiving the 4th routing iinformation or update letter that other load balancers in the load balancing cluster are sent When breath, update is synchronized to the local session routing table.
It in synchronized update module include: newly-increased submodule specifically, described, in receiving the load balancing cluster Other load balancers send four routing iinformations when, by the 4th routing iinformation increase newly to it is local it is described can speech channel By in table;First processing submodule, in the update for receiving other load balancers transmission in the load balancing cluster When information, according to the 5th of corresponding unavailable Website server in the session routing table for updating information searching local the Routing iinformation, and the 5th routing iinformation is revised as corresponding with the unavailable Website server in the more new information Spare Website server the 6th routing iinformation.
In view of actual conditions, in the present embodiment, the first processing module includes: the first acquisition submodule, is used for root One second Website server address is obtained according to polling schemas;Or, the second acquisition submodule, for being obtained according to Smallest connection strategy One second Website server address.
It should be noted that the realization embodiment of above-mentioned conversation managing method is suitable for the session management device In embodiment, it can also reach identical technical effect.
The session management device that the embodiment of the present invention three provides, can be used for equal to the load in existing load balancing cluster Weighing apparatus improves, to realize function of the session management device in the embodiment of the present invention three.
Above-described is the preferred embodiment of the present invention, it should be pointed out that the ordinary person of the art is come It says, under the premise of not departing from principle of the present invention, can also make several improvements and retouch, these improvements and modifications should also regard For protection scope of the present invention.

Claims (11)

1. a kind of conversation managing method, applied to any load balancer in load balancing cluster characterized by comprising
Receive user request information;
Corresponding first Website server address is retrieved in session routing table according to user request information;
When not retrieving the first Website server address, with obtaining one second Website server according to load balancing Location, and the user request information is routed to by corresponding second Website server according to second Website server address, Corresponding first routing iinformation is recorded in the session routing table, corresponding first routing iinformation is sent to described Other load balancers in load balancing cluster synchronize update;
Whether the Website server in regular check Website server cluster corresponding with the load balancing cluster can be used;
When unavailable, then by the corresponding secondary route information of the not available Website server in the session routing table It is changed to the third routing iinformation of corresponding spare Website server, and replacement information is sent to the load balancing collection Other load balancers in group synchronize update;
It is described when unavailable, then by the corresponding secondary route of the not available Website server in the session routing table Change dump be corresponding spare Website server third routing iinformation the step of include:
When unavailable, exception reporting information is generated;
According to the exception reporting information by the not available Website server corresponding second in the session routing table Routing iinformation is changed to the third routing iinformation of corresponding spare Website server.
2. conversation managing method as described in claim 1, which is characterized in that the conversation managing method further include:
When detecting the first Website server address, the user is requested according to first Website server address Information router is to corresponding first Website server.
3. conversation managing method as described in claim 1, which is characterized in that the step of reception user request information is specific Are as follows:
Receive the user request information that network management is routed according to Open Shortest Path First ospf network agreement.
4. conversation managing method as described in claim 1, which is characterized in that the conversation managing method further include:
When receiving the 4th routing iinformation or more new information that other load balancers in the load balancing cluster are sent, Update is synchronized to the local session routing table.
5. conversation managing method as claimed in claim 4, which is characterized in that described in receiving the load balancing cluster Other load balancers send the 4th routing iinformation or more new information when, the local session routing table is synchronized The step of update includes:
When receiving four routing iinformation that other load balancers in the load balancing cluster are sent, by the 4th tunnel It is increased newly by information into the local session routing table;
When receiving the more new information that other load balancers in the load balancing cluster are sent, according to the more new information Search the 5th routing iinformation of corresponding unavailable Website server in the local session routing table, and by the 5th tunnel The 6th of spare Website server corresponding with the unavailable Website server in the more new information the is revised as by information Routing iinformation.
6. a kind of session management device, applied to any load balancer in load balancing cluster characterized by comprising
Receiving module, for receiving user request information;
Retrieval module, for retrieving corresponding first Website server address in session routing table according to user request information;
First processing module, for being obtained according to load balancing when not retrieving the first Website server address One second Website server address, and the user request information is routed to by correspondence according to second Website server address The second Website server, corresponding first routing iinformation is recorded in the session routing table, by described corresponding first Other load balancers that routing iinformation is sent in the load balancing cluster synchronize update;
Regular check module, for the website clothes in regular check Website server cluster corresponding with the load balancing cluster Whether business device can be used;
Second processing module is used for when unavailable, then by the not available Website server in the session routing table Corresponding secondary route change dump is the third routing iinformation of corresponding spare Website server, and will replacement information hair Other load balancers into the load balancing cluster are sent to synchronize update;
The Second processing module includes:
Submodule is generated, for generating exception reporting information when unavailable;
Submodule is replaced, for taking the not available website in the session routing table according to the exception reporting information The corresponding secondary route change dump of business device is the third routing iinformation of corresponding spare Website server.
7. session management device as claimed in claim 6, which is characterized in that the session management device further include:
Routing module, for when detecting the first Website server address, according to first Website server address The user request information is routed into corresponding first Website server.
8. session management device as claimed in claim 6, which is characterized in that the receiving module is specifically used for:
Receive the user request information that network management is routed according to Open Shortest Path First ospf network agreement.
9. session management device as claimed in claim 6, which is characterized in that the session management device further include:
Synchronized update module, in the 4th routing for receiving other load balancers transmission in the load balancing cluster When information or more new information, update is synchronized to the local session routing table.
10. session management device as claimed in claim 9, which is characterized in that the synchronized update module includes:
Newly-increased submodule, in the 4th routing iinformation for receiving other load balancers transmission in the load balancing cluster When, the 4th routing iinformation is increased newly into the local session routing table;
First processing submodule, in the more new information for receiving other load balancers transmission in the load balancing cluster When, according to the 5th routing of corresponding unavailable Website server in the session routing table for updating information searching local Information, and the 5th routing iinformation is revised as corresponding standby with the unavailable Website server in the more new information With the 6th routing iinformation of Website server.
11. a kind of load balancer is applied in load balancing cluster characterized by comprising such as claim 6 to 10 times Session management device described in one.
CN201510599682.7A 2015-09-18 2015-09-18 A kind of conversation managing method, device and load balancer Active CN106549875B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510599682.7A CN106549875B (en) 2015-09-18 2015-09-18 A kind of conversation managing method, device and load balancer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510599682.7A CN106549875B (en) 2015-09-18 2015-09-18 A kind of conversation managing method, device and load balancer

Publications (2)

Publication Number Publication Date
CN106549875A CN106549875A (en) 2017-03-29
CN106549875B true CN106549875B (en) 2019-09-13

Family

ID=58362027

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510599682.7A Active CN106549875B (en) 2015-09-18 2015-09-18 A kind of conversation managing method, device and load balancer

Country Status (1)

Country Link
CN (1) CN106549875B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107222544B (en) * 2017-06-14 2020-09-18 千寻位置网络有限公司 High availability method and system based on multi-layer service architecture
CN107948087A (en) * 2017-12-07 2018-04-20 锐捷网络股份有限公司 A kind of method and apparatus of load balancing
CN111756780B (en) * 2019-03-27 2022-04-22 厦门网宿有限公司 Method for synchronizing connection information and load balancing system
CN110098999A (en) * 2019-05-09 2019-08-06 携程计算机技术(上海)有限公司 The method and system that IM is managed in the event system of the website OTA
CN112217843B (en) * 2019-07-09 2023-08-22 阿里巴巴集团控股有限公司 Service unit switching method, system and equipment
CN111193941B (en) * 2020-01-07 2021-09-17 北京东土科技股份有限公司 Method, device and equipment for transmitting media data and storage medium
CN111416852A (en) * 2020-03-16 2020-07-14 优刻得科技股份有限公司 Method for session synchronization among multiple load balancers and load balancer
CN111416851A (en) * 2020-03-16 2020-07-14 优刻得科技股份有限公司 Method for session synchronization among multiple load balancers and load balancer
CN112653620B (en) * 2020-12-21 2023-03-24 杭州迪普科技股份有限公司 Route processing method, device, equipment and computer readable storage medium
CN112671928B (en) * 2020-12-31 2023-02-07 北京天融信网络安全技术有限公司 Equipment centralized management architecture, load balancing method, electronic equipment and storage medium
CN113014503A (en) * 2021-03-08 2021-06-22 中国工商银行股份有限公司 Access data routing method, device and system
CN113489775B (en) * 2021-06-30 2023-07-21 深圳市风云实业有限公司 Seven-layer load balancing server and load balancing method based on VPP
CN114598704B (en) * 2022-03-16 2024-05-17 浪潮云信息技术股份公司 TCP connection fault tolerance method based on four-layer load balancing cluster
CN118394850B (en) * 2024-06-26 2024-09-17 杭州悦数科技有限公司 Load balancing and retry method and device for distributed graph database service

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364930A (en) * 2008-09-24 2009-02-11 深圳市金蝶中间件有限公司 Session control method, apparatus and system
CN103607356A (en) * 2013-11-14 2014-02-26 北京奇虎科技有限公司 Load balancing method, load balancer and system thereof
CN104023082A (en) * 2014-06-23 2014-09-03 浪潮电子信息产业股份有限公司 Method for achieving cluster load balance
CN104735098A (en) * 2013-12-18 2015-06-24 青岛海尔空调器有限总公司 Session information control method and system
CN104836839A (en) * 2015-03-30 2015-08-12 南京大学 Universal user self-defining session system and session management method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364930A (en) * 2008-09-24 2009-02-11 深圳市金蝶中间件有限公司 Session control method, apparatus and system
CN103607356A (en) * 2013-11-14 2014-02-26 北京奇虎科技有限公司 Load balancing method, load balancer and system thereof
CN104735098A (en) * 2013-12-18 2015-06-24 青岛海尔空调器有限总公司 Session information control method and system
CN104023082A (en) * 2014-06-23 2014-09-03 浪潮电子信息产业股份有限公司 Method for achieving cluster load balance
CN104836839A (en) * 2015-03-30 2015-08-12 南京大学 Universal user self-defining session system and session management method thereof

Also Published As

Publication number Publication date
CN106549875A (en) 2017-03-29

Similar Documents

Publication Publication Date Title
CN106549875B (en) A kind of conversation managing method, device and load balancer
US10469312B1 (en) Methods and apparatus for scalable resilient networks
CN106034077B (en) A kind of dynamic route collocating method, apparatus and system
US9077608B2 (en) Route calculation method and master node device in virtual network element
US9659075B2 (en) Providing high availability in an active/active appliance cluster
US9065768B2 (en) Apparatus for a high performance and highly available multi-controllers in a single SDN/OpenFlow network
CN110034817A (en) Low-orbit satellite network route method and device based on software defined network
US20150236898A1 (en) Mobile gateways in pool for session resilience
US20130282860A1 (en) Name-Based Neighbor Discovery and Multi-Hop Service Discovery in Information-Centric Networks
US7849127B2 (en) Method and apparatus for a distributed control plane
EP2645777A1 (en) Gateway reselection
CN108365979A (en) Across the controller management method of cluster, SDN controllers and storage medium
CN104618243B (en) Method for routing, apparatus and system, Scheduling of Gateway method and device
WO2016173403A1 (en) Routing device, load balancing device, and message distribution method and system
CN103475566A (en) Real-time message exchange platform and distributed cluster establishment method
JP2018191290A (en) Method, apparatus, and network system for implementing load balancing
US20220225443A1 (en) Data transmission method and apparatus
CN101827039B (en) Method and equipment for load sharing
WO2021004385A1 (en) Service unit switching method, system and apparatus
US20150146571A1 (en) Method, device and system for controlling network path
CN106341249A (en) Redundant port switching method and device
JP4815547B2 (en) Data synchronization system, data synchronization method, and synchronization management server
CN109495526A (en) A kind of file transmitting method, device, system, electronic equipment and storage medium
CN100423514C (en) Data synchronization method in distributed equipment according to address resolution protocol
CN102647424B (en) Data transmission method and data transmission device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant