CN105357090B - The load-balancing method and equipment of outer even bus service system - Google Patents

The load-balancing method and equipment of outer even bus service system Download PDF

Info

Publication number
CN105357090B
CN105357090B CN201510763428.6A CN201510763428A CN105357090B CN 105357090 B CN105357090 B CN 105357090B CN 201510763428 A CN201510763428 A CN 201510763428A CN 105357090 B CN105357090 B CN 105357090B
Authority
CN
China
Prior art keywords
haproxy
proxy server
proxy
server
load
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
CN201510763428.6A
Other languages
Chinese (zh)
Other versions
CN105357090A (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 Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN201510763428.6A priority Critical patent/CN105357090B/en
Publication of CN105357090A publication Critical patent/CN105357090A/en
Application granted granted Critical
Publication of CN105357090B publication Critical patent/CN105357090B/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/1004Server selection for load balancing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • H04L12/40039Details regarding the setting of the power status of a node according to activity on the bus

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention discloses the load-balancing methods and equipment that connect bus service system outside one kind, the load-balancing device includes: to communicate load balancer with client, the multiple HAProxy proxy servers communicated with operation system, multiple HAProxy proxy servers are divided into multiple HAProxy server proxy clusters, one HAProxy server proxy cluster is divided into multiple HAProxy proxy server groups, HAProxy proxy server in each HAProxy proxy server group is communicated with specified operation system, and the operation system of difference HAProxy proxy server group communication is different.The problem of load-balancing method and equipment, which are solved, needs to suspend when certain operation system needs to be serviced or breaks down all HAProxy proxy servers, is affected so as to cause other operation systems, influences the normal operation of bank's work.

Description

The load-balancing method and equipment of outer even bus service system
Technical field
The present invention relates to load-balancing technique fields, more particularly to a kind of outer load-balancing method for connecting bus service system And equipment.
Background technique
It even served business bus system outside and be deployed in the area DMZ of bank (DeMilitarized Zone, isolated area) and open service Between area, for providing the service interaction between external financial/non-financial institution, to connect all kinds of external system services, complete The functions such as protocol conversion, message forwarding.It even served the load-balancing device and open clothes that business bus system mainly includes isolated area outside The logic processing apparatus in business area.
Load-balancing device foundation is supreme in existing network infrastructure, provides a kind of cheap effective method, it is main complete It is provided nearby at network congestion problem, service is solved, the tasks such as geographical location independence is realized, with expansion service device bandwidth and increasing Add handling capacity, Strengthens network data-handling capacity improves the flexibility and availability of network, to improve the response speed of server The utilization efficiency of degree and server and other resources, avoids network key position and the possibility of single point failure occurs, is user Preferably access quality is provided
Load balancing hardware common in the art has the load balancing such as NetScaler, F5, Radware and Array Device.Required according to Security Architecture, bank's isolated area must be provided with application server to realize conversation, and in the prior art this The network equipment that a little load balancers belong to 4 layer protocols cannot achieve the conversation of application without application protocol layer, So that it is not met security architecture requirement, leads to the load that load balancer in the prior art cannot alone as bank's isolated area Balancer.
And load balancing software LVS, Nginx, HAProxy free using the open source based on Linux.These three softwares tool Standby application layer protocol, can be deployed on application server, realize the conversation of bank's isolated area, can satisfy security architecture Specification.
But even served business bus system outside and need to carry out transmitting/receiving file and trading processing using agreements such as FTP, SFTP, and Nginx can only handle HTTP and Email agreement, can not handle other agreements such as FTP, SFTP, therefore, Nginx may not apply to It even served the load-balancing method of business bus system outside.HAProxy can handle the agreements such as TCP (including FTP) and SFTP, but The mode that HAProxy only has active and standby or more masters one standby does not have the ability for constituting cluster mode, and therefore, HAProxy cannot be single It is solely used in the load-balancing method that even served business bus system outside.LVS has cluster mode, but it cannot support regular expressions, Cannot conversate refusal etc., and therefore, LVS may not apply to the load-balancing method that even served business bus system outside.
Comprehensively consider the advantage and disadvantage of a load balancing structure, selects load balancer F5 and HAProxy to match in the prior art It closes used as the load-balancing device that even served business bus system outside, to realize that safety closes the high-efficient carrier balance policy of rule.Tool Body, when in use, load balancer F5 is used to receive the trade agreement of client to the load-balancing device, and forwards it to HAProxy is sent to each operation system in open service area by HAProxy.
But the load-balancing device that load balancer F5 and HAProxy in the prior art is collectively formed specifically makes Used time needs to suspend all HAProxy proxy servers when certain operation system is needed to be serviced or broken down, It is affected so as to cause other operation systems, influences the normal operation of bank's work.
Summary of the invention
In order to solve the above technical problems, the embodiment of the invention provides the load balancing sides for connecting bus service system outside one kind Method and equipment need to suspend all HAProxy generations to solve when certain operation system is needed to be serviced or broken down The problem of managing server, be affected so as to cause other operation systems, influencing the normal operation of bank's work.
To solve the above problems, the embodiment of the invention provides following technical solutions:
A kind of load-balancing method of outer even bus service system, the outer load-balancing device packet for connecting bus service system It includes: load balancer and multiple HAProxy proxy servers being attached thereto, for connecting client and multiple operation systems; Wherein, load balancer is communicated with the client, the multiple HAProxy proxy server and the multiple operation system It communicates, and the multiple HAProxy proxy server is divided into multiple HAProxy server proxy clusters, a HAProxy Server proxy cluster is divided into multiple HAProxy proxy server groups, and a HAProxy proxy server group includes multiple HAProxy proxy server, HAProxy proxy server and specified operation system in each HAProxy proxy server group It communicates, and the operation system of difference HAProxy proxy server group communication is different;
This method comprises:
Load balancer receives transaction request, determines that target HAProxy is acted on behalf of according to the receiving time of the transaction request Server cluster;
According to the type of the transaction request, target HAProxy generation is determined from target HAProxy server proxy cluster Manage server group;
The transaction request is forwarded to target HAProxy proxy server group, so as to target HAProxy proxy server The transaction request is sent to the target HAProxy proxy server group and communicated by the HAProxy proxy server in group Operation system.
Preferably, the method that the multiple HAProxy proxy server is divided into multiple HAProxy server proxy clusters Include:
According to the different runing time sections of the multiple operation system, the multiple HAProxy proxy server is divided At multiple HAProxy server proxy clusters, the corresponding runing time section of a HAProxy server proxy cluster.
Preferably, the receiving time according to transaction request determines that target HAProxy server proxy cluster includes:
According to the receiving time of the transaction request, the runing time section where the transaction request is determined;
Runing time section where the transaction request determines target HAProxy server proxy cluster.
Preferably, one HAProxy server proxy cluster is divided into the side of multiple HAProxy proxy server groups Method includes:
The different service types of multiple operation systems according to same runing time section, the same runing time section is right The HAProxy server proxy cluster answered is divided into multiple HAProxy proxy server groups, a HAProxy proxy server At least one corresponding type of service of group.
Preferably, any HAProxy proxy server and the HAProxy generation in the HAProxy proxy server group The operation system of the corresponding type of service of reason server group communicates.
Preferably, the HAProxy proxy server executes software realization by virtual machine.
Preferably, all HAProxy proxy servers in same HAProxy server proxy cluster pass through same A virtual machine executes software realization.
Preferably, which includes: load balancer and multiple is attached thereto HAProxy proxy server, for connecting client and multiple operation systems;Wherein, load balancer and the client It communicates, the multiple HAProxy proxy server is communicated with the multiple operation system, and the multiple HAProxy generation Reason server is divided into multiple HAProxy server proxy clusters, and a HAProxy server proxy cluster is divided into multiple HAProxy proxy server group, a HAProxy proxy server group include multiple HAProxy proxy servers, respectively HAProxy proxy server in HAProxy proxy server group is communicated with specified operation system, and difference HAProxy The operation system of proxy server group communication is different;
The load balancer includes:
Receiving module determines target HAProxy generation according to the receiving time of the transaction request for receiving transaction request Manage server cluster;
Determining module is determined from target HAProxy server proxy cluster for the type according to the transaction request Target HAProxy proxy server group;
Sending module, for the transaction request to be forwarded to target HAProxy proxy server group, so as to target The transaction request is sent to the target HAProxy generation by the HAProxy proxy server in HAProxy proxy server group The operation system that reason server group communicates.
Preferably, the multiple HAProxy proxy server is divided into the foundation of multiple HAProxy server proxy clusters For the different runing time sections of the multiple operation system.
Preferably, one HAProxy server proxy cluster be divided into multiple HAProxy proxy server groups according to According to the different service types of multiple operation systems for same runing time section.
Compared with prior art, above-mentioned technical proposal has the advantage that
It is outer provided by the embodiment of the present invention to connect in load-balancing method and the equipment of bus service system, it is the multiple HAProxy proxy server is divided into multiple HAProxy server proxy clusters, and a HAProxy server proxy cluster is drawn It is divided into multiple HAProxy proxy server groups, a HAProxy proxy server group includes multiple HAProxy proxy servers, HAProxy proxy server in each HAProxy proxy server group is communicated with specified operation system, and different The operation system of HAProxy proxy server group communication is different, so that the load-balancing method and equipment are in the course of work In, when some operation system need safeguard or break down when, only need to suspend its corresponding HAProxy proxy server or HAProxy proxy server group, it is in different time periods not of the same trade or business without suspending all HAProxy proxy servers Business system influence each other it is smaller, thus ensured when other HAProxy proxy server groups and its corresponding operation system just Often operation reduces the influence to bank's work, solves when certain operation system needs to be serviced or breaks down, It needs to suspend all HAProxy proxy servers, is affected so as to cause other operation systems, influencing bank's work just Often the problem of operation.
Moreover, the outer load-balancing method and equipment for connecting bus service system provided by the embodiment of the present invention, by one A HAProxy server proxy cluster is divided into multiple HAProxy proxy server groups, in each HAProxy proxy server group HAProxy proxy server communicated with specified operation system, and the business that difference HAProxy proxy server group communicates System is different, so that in the load-balancing device, each HAProxy server proxy cluster and each HAProxy agency's clothes The demand for device group of being engaged in is more clear, and arrangement capacity management is relatively clear, so that the load-balancing device can timely root Capacity planning is carried out in time according to the business demand of each operation system, is avoided load-balancing device in the prior art and is being carried out capacity Hysteresis quality and blind spot when planning, convenient for the management and planning of the load-balancing device.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the outer structural schematic diagram for connecting bus service system provided by one embodiment of the invention;
Fig. 2 is the outer flow chart for connecting bus method of servicing provided by one embodiment of the invention.
Specific embodiment
Just as described in the background section, the load that load balancer and HAProxy in the prior art collectively form is equal The equipment that weighs, when certain operation system is needed to be serviced or broken down, needs to suspend all when specifically used HAProxy proxy server is affected so as to cause other operation systems, influences the normal operation of bank's work.
Inventor the study found that load-balancing device in the prior art by a load balancer F5 and 3 HAProxy Proxy server composition, wherein every HAProxy proxy server be located at open service area all operation system phases Even.And since the run the period of each operation system difference, such as A service runing time are daily 00:00-24:00, B class industry Runing time of being engaged in is the 7:30-18:30 of Mon-Fri, and c service runing time is daily 00:00-09:00, to lead It causes the maintenance time of each operation system to be difficult to unification, when certain operation system is needed to be serviced or broken down, needs temporarily Stop its corresponding HAProxy proxy server, be limited by every HAProxy proxy server in the prior art be located at open All operation systems for putting service area are connected, then need to suspend all HAProxy proxy servers, so as to cause other business System is affected, and influences the normal operation of bank's work.
In view of this, the embodiment of the invention provides the load-balancing method for connecting bus service system outside one kind,
The outer load-balancing device for connecting bus service system includes: load balancer and multiple is attached thereto HAProxy proxy server, for connecting client and multiple operation systems;Wherein, load balancer and the client phase Communication, the multiple HAProxy proxy server are communicated with the multiple operation system, and the multiple HAProxy is acted on behalf of Server is divided into multiple HAProxy server proxy clusters, and a HAProxy server proxy cluster is divided into multiple HAProxy proxy server group, a HAProxy proxy server group include multiple HAProxy proxy servers, respectively HAProxy proxy server in HAProxy proxy server group is communicated with specified operation system, and difference HAProxy The operation system of proxy server group communication is different;
This method comprises:
Load balancer receives transaction request, determines that target HAProxy is acted on behalf of according to the receiving time of the transaction request Server cluster;
According to the type of the transaction request, target HAProxy generation is determined from target HAProxy server proxy cluster Manage server group;
The transaction request is forwarded to target HAProxy proxy server group, so as to target HAProxy proxy server The transaction request is sent to the target HAProxy proxy server group and communicated by the HAProxy proxy server in group Operation system.
Correspondingly, the embodiment of the invention also provides the load-balancing device for connecting bus service system outside one kind, this is outer to connect The load-balancing device of bus service system includes: load balancer and multiple HAProxy proxy servers being attached thereto, and is used In connection client and multiple operation systems;Wherein, load balancer is communicated with the client, the multiple HAProxy Proxy server is communicated with the multiple operation system, and the multiple HAProxy proxy server be divided into it is multiple HAProxy server proxy cluster, a HAProxy server proxy cluster are divided into multiple HAProxy proxy server groups, One HAProxy proxy server group includes multiple HAProxy proxy servers, in each HAProxy proxy server group HAProxy proxy server is communicated with specified operation system, and the business system of difference HAProxy proxy server group communication System is different;
The loaded server F5 includes:
Receiving module determines target HAProxy generation according to the receiving time of the transaction request for receiving transaction request Manage server cluster;
Determining module is determined from target HAProxy server proxy cluster for the type according to the transaction request Target HAProxy proxy server group;
Sending module, for the transaction request to be forwarded to target HAProxy proxy server group, so as to target The transaction request is sent to the target HAProxy generation by the HAProxy proxy server in HAProxy proxy server group The operation system that reason server group communicates.
It is outer provided by the embodiment of the present invention to connect in load-balancing method and the equipment of bus service system, it is the multiple HAProxy proxy server is divided into multiple HAProxy server proxy clusters, and a HAProxy server proxy cluster is drawn It is divided into multiple HAProxy proxy server groups, a HAProxy proxy server group includes multiple HAProxy proxy servers, HAProxy proxy server in each HAProxy proxy server group is communicated with specified operation system, and different The operation system of HAProxy proxy server group communication is different, so that the load-balancing method and equipment are in the course of work In, when some operation system need safeguard or break down when, only need to suspend its corresponding HAProxy proxy server or HAProxy proxy server group, without suspending all HAProxy proxy servers, to ensure when other The normal operation of HAProxy proxy server group and its corresponding operation system reduces the influence to bank's work, solves When certain operation system is needed to be serviced or broken down, need to suspend all HAProxy proxy servers, to lead The problem of causing other operation systems to be affected, influencing the normal operation of bank's work.
Moreover, the outer load-balancing method and equipment for connecting bus service system provided by the embodiment of the present invention, by one A HAProxy server proxy cluster is divided into multiple HAProxy proxy server groups, in each HAProxy proxy server group HAProxy proxy server communicated with specified operation system, and the business that difference HAProxy proxy server group communicates System is different, so that in the load-balancing device, each HAProxy server proxy cluster and each HAProxy agency's clothes The demand for device group of being engaged in is more clear, and arrangement capacity management is relatively clear, so that the load-balancing device can timely root Capacity planning is carried out in time according to the business demand of each operation system, is avoided load-balancing device in the prior art and is being carried out capacity Hysteresis quality and blind spot when planning, convenient for the management and planning of the load-balancing device.
It is the core concept of the application above, following will be combined with the drawings in the embodiments of the present invention, to the embodiment of the present invention In technical solution be clearly and completely described, it is clear that described embodiments are only a part of the embodiments of the present invention, Instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative labor Every other embodiment obtained under the premise of dynamic, shall fall within the protection scope of the present invention.
In the following description, numerous specific details are set forth in order to facilitate a full understanding of the present invention, but the present invention can be with Implemented using other than the one described here other way, those skilled in the art can be without prejudice to intension of the present invention In the case of do similar popularization, therefore the present invention is not limited by the specific embodiments disclosed below.
The embodiment of the invention provides the load-balancing methods for connecting bus service system outside one kind, as shown in Figure 1, this outer connects The load-balancing device of bus service system includes: load balancer 201 and multiple HAProxy proxy servers being attached thereto 202, for connecting client (also referred to as external connection unit) 100 and multiple operation systems 300;Wherein, load balancer 201 with it is described Client 100 communicates, and the multiple HAProxy proxy server 202 is communicated with the multiple operation system 300, and institute It states multiple HAProxy proxy servers 202 and is divided into multiple HAProxy server proxy clusters, a HAProxy agency service Device assemblage classification includes multiple HAProxy generations at multiple HAProxy proxy server groups, a HAProxy proxy server group Server is managed, the HAProxy proxy server in each HAProxy proxy server group is communicated with specified operation system 300, And the operation system 300 of difference HAProxy proxy server group communication is different.As shown in Fig. 2, the load-balancing method includes:
Step S1: load balancer 201 receives transaction request, determines target according to the receiving time of the transaction request HAProxy server proxy cluster;
Step S2: according to the type of the transaction request, target is determined from target HAProxy server proxy cluster HAProxy proxy server group;
Step S3: the transaction request is forwarded to target HAProxy proxy server group, so as to target HAProxy generation The transaction request is sent to the target HAProxy proxy server by the HAProxy proxy server in reason server group The operation system 300 that group communicates.
It should be noted that the HAProxy proxy server is a offer high availability, load balancing and is based on The agent software of TCP and HTTP application, its can work in network protocol stack four layer to seven layers, with support it is ten hundreds of and Hair connection, moreover, the operational mode of the HAProxy proxy server allows it very simple and safe to be integrated into framework In, while can protect server and being not exposed on network.In embodiments of the present invention, the HAProxy proxy server Backend nodes as load balancer 201 use, and not only can use the function of the HAProxy proxy server, may be used also To utilize the performance of the HAProxy proxy server.
Preferably, the load balancer 201 is load balancer F5, is below load with the load balancer 201 For balanced device F5, it is provided for the embodiments of the invention load-balancing method and is illustrated, but the present invention does not limit this It is fixed, specifically depend on the circumstances.
Specifically, in embodiments of the present invention, the load balancer 201 is that client 100 provides a Virtual Service Address is directly communicated with client 100, and its IP address is externally same, i.e., the described load balancer 201 has client to described End 100 Virtual Service Address be same IP address, and by different ports from different HAProxy server proxy clusters Different HAProxy proxy server groups communicate, by port numbers come respectively HAProxy server proxy cluster and difference Different HAProxy proxy server groups in HAProxy server proxy cluster.
When the load balancer 201 receives the transaction request of client 100, using active-standby mode, realize that height can With property, according to the load-balancing algorithm of itself, the HAProxy server proxy cluster different to rear end carries out load balancing and event Phragma from, which is sent to the HAProxy proxy server group of its corresponding HAProxy server proxy cluster, The HAProxy proxy server group of the corresponding HAProxy server proxy cluster of the transaction request is calculated using the soft load of itself The transaction request is sent its corresponding operation system 300 by method, realize the load balancing to each operation system 300, failure every From and conversation function efficient load balancing effect realized by load balancing twice.
It should be noted that in other embodiments of the invention, the load balancer 201 can also be load balancing Other load balancers such as device A3, the present invention to this and without limitation, specifically depend on the circumstances.Similarly, the HAProxy agency Server 201 also could alternatively be other feasible proxy servers such as Apache proxy server, and the present invention does not also limit this It is fixed, specifically depend on the circumstances.
Based on any of the above embodiments, in one embodiment of the invention, the multiple HAProxy agency clothes The method that business device is divided into multiple HAProxy server proxy clusters includes: the difference fortune according to the multiple operation system 300 The multiple HAProxy proxy server is divided into multiple HAProxy server proxy clusters by the row period, and one HAProxy server proxy cluster corresponds to a runing time section, so that load balancing provided by the embodiment of the present invention It is corresponding only need to suspend the runing time section when the operation system 300 to a certain runing time section is safeguarded for method HAProxy server proxy cluster without suspending the HAProxy server proxy cluster of other runing time sections, and then makes It can be divided according to the runing time section of each operation system 300 by obtaining load-balancing method provided by the embodiment of the present invention Maintenance is criticized, does not influence the normal operation of bank's work.
In one particular embodiment of the present invention, the different runing times according to the multiple operation system 300 The multiple HAProxy proxy server is divided into multiple HAProxy server proxy clusters, a HAProxy agency by section Server cluster corresponds to a runing time section are as follows:, will be described according to the different runing time sections of the multiple operation system 300 Multiple HAProxy proxy servers are divided into three HAProxy server proxy clusters, a HAProxy proxy server collection The corresponding runing time section of group, wherein three HAProxy server proxy clusters corresponding period are as follows: daily 00: The 7:30-18:30 and daily 00:00-9:00 of 00-24:00, Mon-Fri.But the present invention is to this and without limitation, specifically It depends on the circumstances.Preferably, the time that the load balancer 201 receives transaction request is subject to Beijing time.
Based on any of the above embodiments, in one particular embodiment of the present invention, described according to transaction request Receiving time determine that target HAProxy server proxy cluster includes:
According to the receiving time of the transaction request, the runing time section where the transaction request is determined;
Runing time section where the transaction request determines target HAProxy server proxy cluster.
In order to further decrease the coupling of the load-balancing method, decrease different business systems 300 influence each other, The high efficiency of the load-balancing method maintenance is improved, load-balancing method provided by the embodiment of the present invention is determining the friendship After easily requesting corresponding target HAProxy server proxy cluster, then according to multiple operation systems 300 of same runing time section Different service types, the corresponding HAProxy server proxy cluster of the same runing time section is divided into multiple HAProxy proxy server group, a HAProxy proxy server group correspond at least one type of service.It should be noted that In embodiments of the present invention, a HAProxy proxy server group can correspond to a type of service (i.e. with an operation system 300 communicate), multiple types of service (communicating with multiple operation systems 300) can also be corresponded to, the present invention does not do this It limits, specifically depends on the circumstances.Such as, in one particular embodiment of the present invention, at runtime between be daily 0:00-24:00 In corresponding HAProxy server proxy cluster, it is divided into multiple HAProxy proxy server groups, each HAProxy agency clothes The corresponding type of service distribution of device group of being engaged in are as follows: insurance class business, housing reform finance class business etc..
It should be noted that load-balancing method provided by the embodiment of the present invention is acting on behalf of clothes to all HAProxy When business device is divided, in addition to the different runing time sections and type of service for considering the multiple operation system 300, it can also examine Consider the rank of the corresponding external connection per-unit system of each operation system 300, the present invention to this and without limitation, specifically depends on the circumstances. It should also be noted that, same external connection unit may correspond to different operation systems 300, if the transaction of external connection unit A is by business System A1 and A2 provide service;Different external connection units may also correspond to the same operation system 300, such as external connection unit B1, B2 Transaction request provides service by operation system B;External connection unit is also possible to correspond with operation system 300.
Based on any of the above embodiments, in one embodiment of the invention, when a HAProxy agency service It is any in the HAProxy proxy server group when device group corresponds to multiple types of service (communicating with multiple operation systems 300) The operation system 300 of HAProxy proxy server type of service corresponding with the HAProxy proxy server group communicates Letter, so that when some HAProxy proxy server in the HAProxy proxy server group breaks down, it can be with It is corresponding with the HAProxy proxy server group using other HAProxy proxy servers in the HAProxy proxy server group Operation system 300 communicate, guarantee the normal operation of the corresponding operation system 300 of HAProxy proxy server group.
Based on any of the above embodiments, in one embodiment of the invention, the HAProxy proxy server Software realization is executed by virtual machine.Preferably, all HAProxy generations in same HAProxy server proxy cluster Reason server executes software realization by the same virtual machine and is subtracted with reducing the quantity of virtual machine in the load-balancing device The volume and cost of the small load-balancing device.It is furthermore preferred that the virtual machine is the virtual machine of 2 core processor 8G memories. But the present invention is to this and without limitation, specifically regards the non-functional test model of the HAProxy proxy server agency business As a result depending on, to effectively control the cost of the load-balancing device.
From the above mentioned it is found that in load-balancing method provided by the embodiment of the present invention, the load balancer 201 is used Active-standby mode, switching time is short, and performance is higher, to each HAProxy proxy server in the HAProxy server proxy cluster of rear end Carry out the detection of heartbeat keepalive feature, i.e., its operating status is detected, when each HAProxy proxy server normal operation (i.e. Heartbeat keep-alive) when, its normal communication is maintained, when each HAProxy proxy server of some in each HAProxy proxy server occurs When delay machine, then Fault Isolation is realized to it, is acted on behalf of using other each HAProxy in each HAProxy server proxy cluster Server is communicated.Similarly, each HAProxy proxy server also can carry out heartbeat guarantor to the operation system 300 communicated with Function detection living maintains its normal communication when each operation system 300 of its communication is normal, when wherein some operation system 300 When failure, Fault Isolation is carried out to it, suspends the transaction of the operation system 300.
Moreover, the outer load-balancing method for connecting bus service system provided by the embodiment of the present invention, by one HAProxy server proxy cluster is divided into multiple HAProxy proxy server groups, in each HAProxy proxy server group HAProxy proxy server is communicated with specified operation system 300, and the industry of difference HAProxy proxy server group communication Business system 300 is different, so that in the load-balancing device, each HAProxy server proxy cluster and each HAProxy generation Manage server group demand it is more clear, arrange capacity management it is relatively clear so that the load-balancing device can and When capacity planning carried out according to the business demand of each operation system 300 in time, avoid load-balancing device in the prior art and exist The hysteresis quality and blind spot when capacity planning are carried out, convenient for the management and planning of the load-balancing device.
Correspondingly, being applied to the embodiment of the invention also provides the load-balancing device for connecting bus service system outside one kind Load-balancing method provided by any of the above-described embodiment.As shown in Figure 1, in embodiments of the present invention, this is outer to connect bus service The load-balancing device of system includes: load balancer 201 and multiple HAProxy proxy servers 202 being attached thereto, and is used for Connect client (i.e. external connection unit) 100 and multiple operation systems 300;Wherein, load balancer 201 and the client 100 It communicates, the multiple HAProxy proxy server 202 is communicated with the multiple operation system 300, and the multiple HAProxy proxy server 202 is divided into multiple HAProxy server proxy clusters, a HAProxy server proxy cluster Multiple HAProxy proxy server groups are divided into, a HAProxy proxy server group includes multiple HAProxy agency services Device, the HAProxy proxy server in each HAProxy proxy server group are communicated with specified operation system 300, and different The operation system 300 of HAProxy proxy server group communication is different;
The load balancer device includes:
Receiving module determines target HAProxy generation according to the receiving time of the transaction request for receiving transaction request Manage server cluster;
Determining module is determined from target HAProxy server proxy cluster for the type according to the transaction request Target HAProxy proxy server group;
Sending module, for the transaction request to be forwarded to target HAProxy proxy server group, so as to target The transaction request is sent to the target HAProxy generation by the HAProxy proxy server in HAProxy proxy server group The operation system 300 that reason server group communicates.
Preferably, the load balancer 201 is load balancer F5, is below load with the load balancer 201 For balanced device F5, it is provided for the embodiments of the invention load-balancing method and is illustrated, but the present invention does not limit this It is fixed, specifically depend on the circumstances.
It should be noted that in other embodiments of the invention, the load balancer 201 can also be load balancing Other load balancers such as device A3, the present invention to this and without limitation, specifically depend on the circumstances.Similarly, the HAProxy agency Server 201 also could alternatively be other feasible proxy servers such as Apache proxy server, and the present invention does not also limit this It is fixed, specifically depend on the circumstances.
Specifically, in embodiments of the present invention, the load balancer 201 is that client 100 provides a Virtual Service Address is directly communicated with client 100, and its IP address is externally same, i.e., the described load balancer 201 has client to described End 100 Virtual Service Address be same IP address, and by different ports from different HAProxy server proxy clusters Different HAProxy proxy server groups communicate, by port numbers come respectively HAProxy server proxy cluster and difference Different HAProxy proxy server groups in HAProxy server proxy cluster.
When the load balancer 201 receives the transaction request of client 100, using active-standby mode, realize that height can With property, according to the load-balancing algorithm of itself, the HAProxy server proxy cluster different to rear end carries out load balancing and event Phragma from, which is sent to the HAProxy proxy server group of its corresponding HAProxy server proxy cluster, The HAProxy proxy server group of the corresponding HAProxy server proxy cluster of the transaction request is calculated using the soft load of itself The transaction request is sent its corresponding operation system 300 by method, realize the load balancing to each operation system 300, failure every From and conversation function efficient load balancing effect realized by load balancing twice.
Based on any of the above embodiments, in one embodiment of the invention, the multiple HAProxy agency clothes The foundation that business device is divided into multiple HAProxy server proxy clusters is the different runing times of the multiple operation system 300 Section so that load-balancing device provided by the embodiment of the present invention, the operation system 300 to a certain runing time section into When row maintenance, only it need to suspend the corresponding HAProxy server proxy cluster of the runing time section, when without suspending other operations Between section HAProxy server proxy cluster so that load-balancing device provided by the embodiment of the present invention can basis The runing time section of each operation system 300 safeguards it in batches, does not influence the normal operation of bank's work.
On the basis of the above embodiments, in one embodiment of the invention, described
Receiving unit, according to the receiving time of the transaction request, determines the transaction request for receiving transaction request The runing time section at place;
Target cluster determination unit, for determining target HAProxy according to the runing time section where the transaction request Server proxy cluster.
In order to further decrease the coupling of the load-balancing method, decrease different business systems 300 influence each other, The high efficiency of the load-balancing method maintenance is improved, load-balancing device provided by the embodiment of the present invention will own After HAProxy proxy server is divided into multiple HAProxy server proxy clusters, also by each HAProxy proxy server collection Group is divided into multiple HAProxy proxy server groups.Preferably, in one embodiment of the invention, one HAProxy The foundation that server proxy cluster is divided into multiple HAProxy proxy server groups is multiple business systems of same runing time section The different service types of system 300.
It should be noted that load-balancing method provided by the embodiment of the present invention is acting on behalf of clothes to all HAProxy When business device is divided, in addition to the different runing time sections and type of service for considering the multiple operation system 300, it can also examine Consider the rank of the corresponding external connection per-unit system of each operation system 300, the present invention to this and without limitation, specifically depends on the circumstances. It should also be noted that, same external connection unit may correspond to different operation systems 300, if the transaction of external connection unit A is by business System A1 and A2 provide service;Different external connection units may also correspond to the same operation system 300, such as external connection unit B1, B2 Transaction request provides service by operation system B;External connection unit is also possible to correspond with operation system 300.
Based on any of the above embodiments, in one embodiment of the invention, when a HAProxy agency service It is any in the HAProxy proxy server group when device group corresponds to multiple types of service (communicating with multiple operation systems 300) The operation system 300 of HAProxy proxy server type of service corresponding with the HAProxy proxy server group communicates Letter, so that when some HAProxy proxy server in the HAProxy proxy server group breaks down, it can be with It is corresponding with the HAProxy proxy server group using other HAProxy proxy servers in the HAProxy proxy server group Operation system 300 communicate, guarantee the normal operation of the corresponding operation system 300 of HAProxy proxy server group.
Based on any of the above embodiments, in one embodiment of the invention, the HAProxy proxy server Software realization is executed by virtual machine.Preferably, all HAProxy generations in same HAProxy server proxy cluster Reason server executes software realization by the same virtual machine and is subtracted with reducing the quantity of virtual machine in the load-balancing device The volume and cost of the small load-balancing device.It is furthermore preferred that the virtual machine is the virtual machine of 2 core processor 8G memories. But the present invention is to this and without limitation, specifically regards the non-functional test model of the HAProxy proxy server agency business As a result depending on, to effectively control the cost of the load-balancing device.
From the above mentioned it is found that in load-balancing device provided by the embodiment of the present invention, the load balancer 201 is used Active-standby mode, switching time is short, and performance is higher, to each HAProxy proxy server in the HAProxy server proxy cluster of rear end The detection of heart keepalive feature is carried out, i.e., its operating status is detected, when each HAProxy proxy server normal operation, Its normal communication is maintained, it is when delay machine occurs in each HAProxy proxy server of some in each HAProxy proxy server, then right It realizes Fault Isolation, is led to using other each HAProxy proxy servers in each HAProxy server proxy cluster Letter.Similarly, each HAProxy proxy server also can carry out the detection of heart keepalive feature to the operation system 300 communicated with, when When each operation system 300 of its communication is normal, its normal communication is maintained, it is right when wherein some operation system 300 breaks down It carries out Fault Isolation, suspends the transaction of the operation system 300.
Moreover, the outer load-balancing device for connecting bus service system provided by the embodiment of the present invention, by one HAProxy server proxy cluster is divided into multiple HAProxy proxy server groups, in each HAProxy proxy server group HAProxy proxy server is communicated with specified operation system 300, and the industry of difference HAProxy proxy server group communication Business system 300 is different, so that in the load-balancing device, each HAProxy server proxy cluster and each HAProxy generation Manage server group demand it is more clear, arrange capacity management it is relatively clear so that the load-balancing device can and When capacity planning carried out according to the business demand of each operation system 300 in time, avoid load-balancing device in the prior art and exist The hysteresis quality and blind spot when capacity planning are carried out, convenient for the management and planning of the load-balancing device.
In conclusion load-balancing method and equipment provided by the embodiment of the present invention, a little connect in guarantee network level While entering, the advantages of effectively combining the stability and high efficiency of load balancer and HAProxy proxy server it is negative The advantages of carrying balanced conversation function and effective block functions, realizes the high-efficient carrier for different business and equilibrium, mentions The high highly effective planning of capacity management, the flexible allotment of the convenience of maintenance work, cost, so that of the invention Load-balancing method and equipment provided by embodiment are evidence-based when realizing load balancing, are conducive to the outer even bus clothes The integrated planning and dilatation of business system, effectively reduce the coupling of bank's inner and outer system, reduce the phase of bank's inner and outer system Mutually influence.
Various pieces are described in a progressive manner in this specification, and what each some importance illustrated is and other parts Difference, same and similar part may refer to each other between various pieces.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to embodiment illustrated herein, and is to fit to consistent with the principles and novel features disclosed in this article Widest scope.

Claims (8)

1. a kind of outer load-balancing method for connecting bus service system, which is characterized in that the outer load for connecting bus service system Equalizing equipment includes: load balancer and multiple HAProxy proxy servers being attached thereto, for connecting client and multiple Operation system;Wherein, load balancer is communicated with the client, the multiple HAProxy proxy server and described more A operation system communicates, and the multiple HAProxy proxy server is divided into multiple HAProxy server proxy clusters, One HAProxy server proxy cluster is divided into multiple HAProxy proxy server groups, a HAProxy proxy server Group includes multiple HAProxy proxy servers, HAProxy proxy server in each HAProxy proxy server group and specified Operation system communicate, and the operation system of difference HAProxy proxy server group communication is different;
This method comprises:
Load balancer receives transaction request, determines target HAProxy agency service according to the receiving time of the transaction request Device cluster;
According to the type of the transaction request, target HAProxy agency's clothes are determined from target HAProxy server proxy cluster Business device group;
The transaction request is forwarded to target HAProxy proxy server group, so as in target HAProxy proxy server group HAProxy proxy server the transaction request is sent to the industry that the target HAProxy proxy server group communicates Business system;
Wherein, the method that the multiple HAProxy proxy server is divided into multiple HAProxy server proxy clusters includes:
According to the different runing time sections of the multiple operation system, the multiple HAProxy proxy server is divided into more A HAProxy server proxy cluster, the corresponding runing time section of a HAProxy server proxy cluster.
2. load-balancing method according to claim 1, which is characterized in that described true according to the receiving time of transaction request The HAProxy server proxy cluster that sets the goal includes:
According to the receiving time of the transaction request, the runing time section where the transaction request is determined;
Runing time section where the transaction request determines target HAProxy server proxy cluster.
3. load-balancing method according to claim 1, which is characterized in that one HAProxy proxy server collection Group be divided into multiple HAProxy proxy server groups method include:
The different service types of multiple operation systems according to same runing time section, the same runing time section is corresponding HAProxy server proxy cluster is divided into multiple HAProxy proxy server groups, a HAProxy proxy server group pair Answer at least one type of service.
4. load-balancing method according to claim 3, which is characterized in that appoint in the HAProxy proxy server group The operation system of one HAProxy proxy server type of service corresponding with the HAProxy proxy server group communicates.
5. load-balancing method according to claim 1, which is characterized in that the HAProxy proxy server passes through void Quasi- machine executes software realization.
6. load-balancing method according to claim 5, which is characterized in that be located at same HAProxy proxy server collection All HAProxy proxy servers in group execute software realization by the same virtual machine.
7. a kind of outer load-balancing device for connecting bus service system, which is characterized in that the outer load for connecting bus service system Equalizing equipment includes: load balancer and multiple HAProxy proxy servers being attached thereto, for connecting client and multiple Operation system;Wherein, load balancer is communicated with the client, the multiple HAProxy proxy server and described more A operation system communicates, and the multiple HAProxy proxy server is divided into multiple HAProxy server proxy clusters, One HAProxy server proxy cluster is divided into multiple HAProxy proxy server groups, a HAProxy proxy server Group includes multiple HAProxy proxy servers, HAProxy proxy server in each HAProxy proxy server group and specified Operation system communicate, and the operation system of difference HAProxy proxy server group communication is different;
The load balancer includes:
Receiving module determines target HAProxy agency's clothes according to the receiving time of the transaction request for receiving transaction request Business device cluster;
Determining module determines target for the type according to the transaction request from target HAProxy server proxy cluster HAProxy proxy server group;
Sending module, for the transaction request to be forwarded to target HAProxy proxy server group, so as to target HAProxy The transaction request is sent to the target HAProxy agency service by the HAProxy proxy server in proxy server group The operation system that device group communicates;
Wherein, the foundation that the multiple HAProxy proxy server is divided into multiple HAProxy server proxy clusters is described The different runing time sections of multiple operation systems.
8. load-balancing device according to claim 7, which is characterized in that one HAProxy proxy server collection Group is divided into the foundation of multiple HAProxy proxy server groups as the different business of multiple operation systems of same runing time section Type.
CN201510763428.6A 2015-11-10 2015-11-10 The load-balancing method and equipment of outer even bus service system Active CN105357090B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510763428.6A CN105357090B (en) 2015-11-10 2015-11-10 The load-balancing method and equipment of outer even bus service system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510763428.6A CN105357090B (en) 2015-11-10 2015-11-10 The load-balancing method and equipment of outer even bus service system

Publications (2)

Publication Number Publication Date
CN105357090A CN105357090A (en) 2016-02-24
CN105357090B true CN105357090B (en) 2018-12-14

Family

ID=55332964

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510763428.6A Active CN105357090B (en) 2015-11-10 2015-11-10 The load-balancing method and equipment of outer even bus service system

Country Status (1)

Country Link
CN (1) CN105357090B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107241380B (en) * 2016-03-29 2020-07-28 阿里巴巴集团控股有限公司 Method and apparatus for time-based adjusted load balancing
CN105933407B (en) * 2016-04-20 2019-12-06 中国银联股份有限公司 method and system for realizing high availability of Redis cluster
CN106101232A (en) * 2016-06-16 2016-11-09 北京思源置地科技有限公司 Load-balancing method and device
CN106790692A (en) * 2017-02-20 2017-05-31 郑州云海信息技术有限公司 A kind of load-balancing method and device of many clusters
CN107172187B (en) * 2017-06-12 2019-02-22 北京明朝万达科技股份有限公司 A kind of SiteServer LBS and method
CN110298645A (en) * 2019-07-11 2019-10-01 四川新网银行股份有限公司 The building method of full link payment system extending transversely
CN113055427B (en) * 2019-12-28 2022-12-23 浙江宇视科技有限公司 Service-based server cluster access method and device
CN111277660B (en) * 2020-01-22 2021-09-14 中国银联股份有限公司 System and method for forming DMZ (digital multiplex) area
CN112000507A (en) * 2020-08-21 2020-11-27 中国建设银行股份有限公司 Fault processing method, system, device and medium based on software load balancing

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101458808A (en) * 2008-12-31 2009-06-17 中国建设银行股份有限公司 Bank management system, server cluster and correlation method
CN101702673A (en) * 2009-11-10 2010-05-05 南京联创科技集团股份有限公司 Load balancing method based on BS framework
CN104579996A (en) * 2013-10-17 2015-04-29 中国电信股份有限公司 Cluster load balancing method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10715435B2 (en) * 2014-04-09 2020-07-14 Red Hat, Inc. Routing tier for highly-available applications on a multi-tenant platform-as-a-service (PaaS) system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101458808A (en) * 2008-12-31 2009-06-17 中国建设银行股份有限公司 Bank management system, server cluster and correlation method
CN101702673A (en) * 2009-11-10 2010-05-05 南京联创科技集团股份有限公司 Load balancing method based on BS framework
CN104579996A (en) * 2013-10-17 2015-04-29 中国电信股份有限公司 Cluster load balancing method and system

Also Published As

Publication number Publication date
CN105357090A (en) 2016-02-24

Similar Documents

Publication Publication Date Title
CN105357090B (en) The load-balancing method and equipment of outer even bus service system
US11463511B2 (en) Model-based load balancing for network data plane
CN105409172B (en) Logical switch
JP2021103895A (en) Financial network
CN110313163A (en) Load balance in distributed computing system
US8065395B2 (en) System and method for queuing to a cloud via a queuing proxy
Fatima et al. Integration of cloud and fog based environment for effective resource distribution in smart buildings
CN109981789A (en) A kind of micro services engine based on proxy mode
EP4170496A1 (en) Scalable control plane for telemetry data collection within a distributed computing system
US20110060821A1 (en) System and method for determining affinity groups and co-locating the affinity groups in a distributing network
US10250507B2 (en) Persistent connection rebalancing
US20050050202A1 (en) Methods, systems and computer program products for application instance level workload distribution affinities
CN105282191B (en) SiteServer LBS, controller and method
CN108833462A (en) A kind of system and method found from registration service towards micro services
CN102394929A (en) Conversation-oriented cloud computing load balancing system and method therefor
CN102387218A (en) Multimachine hot standby load balance system for computer
CN110266822A (en) A kind of shared implementation of load balancing based on nginx
CN109510878A (en) A kind of long connection session keeping method and device
CN108234208A (en) The visualization load balancing dispositions method and system of resource management based on business
Oliveira et al. Efficient network service level agreement monitoring for cloud computing systems
CN112866394A (en) Load balancing method, device, system, computer equipment and storage medium
Kadhim et al. Hybrid load-balancing algorithm for distributed fog computing in internet of things environment
CN106131162B (en) A method of network service agent is realized based on IOCP mechanism
Moreno‐Vozmediano et al. Elastic management of web server clusters on distributed virtual infrastructures
WO2015069378A1 (en) Hierarchical distribution of control information in a massively scalable network server

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