CN109714190A - A kind of load balancing based on application level and failure transfer system and its method - Google Patents

A kind of load balancing based on application level and failure transfer system and its method Download PDF

Info

Publication number
CN109714190A
CN109714190A CN201811435809.1A CN201811435809A CN109714190A CN 109714190 A CN109714190 A CN 109714190A CN 201811435809 A CN201811435809 A CN 201811435809A CN 109714190 A CN109714190 A CN 109714190A
Authority
CN
China
Prior art keywords
module
application
load
load balancing
abnormal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811435809.1A
Other languages
Chinese (zh)
Inventor
毛世界
陶利川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Shangtong Industrial Co Ltd
Original Assignee
Sichuan Shangtong Industrial 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 Sichuan Shangtong Industrial Co Ltd filed Critical Sichuan Shangtong Industrial Co Ltd
Priority to CN201811435809.1A priority Critical patent/CN109714190A/en
Publication of CN109714190A publication Critical patent/CN109714190A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention discloses a kind of load balancing based on application level and failure transfer system and its method, including obtaining module, load balance process module, failover module, archive module, monitoring module and multiple back-end servers, first, it obtains module and obtains the service request that client sends, then load balance process module is according to network condition, service server loading condition automatically selects the fastest back-end server of business processing, failover module, which detects in application cluster, there is the abnormal application node of connection, and alarm is pushed to there is the abnormal application cluster of connection, the automatic switchover of business is carried out when back-end server breaks down, reach disaster tolerance requirement.The dynamic load leveling and automatically positioning fault points in the event of a failure of backend application may be implemented in the present invention, and carries out disaster tolerance switching.

Description

A kind of load balancing based on application level and failure transfer system and its method
Technical field
The present invention relates to network communication technology field, in particular to a kind of load balancing based on application level and failure turn Move system and method.
Background technique
With commonly used, the high efficiency processing and failure generation of transaction system of network communication multipurpose prepaid card When, ensure that the continuity of transaction is particularly important by Disaster Recovery Strategy.Currently, the reality of most computer network system load balancing Existing mode passes through hardware F5 load balancer, but inconvenient prompt and expensive, it is therefore desirable to a kind of software-based Load balancing and failover method ensure that transaction is normally carried out so as to quick fault inspecting.
Summary of the invention
Based on this, in view of the above-mentioned problems, it is necessary to propose that a kind of load balancing based on application level is shifted with failure to be The dynamic load leveling and automatically positioning fault points in the event of a failure of backend application may be implemented in system and its method, the present invention, And carry out disaster tolerance switching.
To achieve the above object, The technical solution adopted by the invention is as follows:
A kind of load balancing and failure transfer system based on application level, including obtain module, load balance process mould Block, failover module and multiple back-end servers;
Module is obtained, for obtaining the service request of client's transmission;
Load balance process module, with obtain module connect, according to configure load-balancing algorithm automatically select it is optimal after Server is held to carry out business processing;
Failover module is connect with back-end server, for when back-end server breaks down carry out business from Dynamic switching, reaches disaster tolerance requirement.
Preferably, the load-balancing algorithm includes source IP, poll, SESSION and random selection.
Load cluster realizes load balancing by configuring multinode and the identical mode of weighted value being arranged, including with Under several aspects:
The load to rear end multinode is realized based on the strategy such as source IP, poll;
Identical weight weighted value is arranged in same application module, with guarantee to be loaded under normal circumstances it is multiple after Hold application node.
Preferably, further including archive module, the archive module is connect with the back-end server, for saving client The information of institute's transacting business.
Preferably, further including monitoring module, the monitoring module is connect with the back-end server, for dynamically monitoring Utilization rate, the memory service condition of load balance process module, four-layer load-equalizing, seven layers of load balancing service scenario and Back-end server information.
The present invention also provides a kind of load balancing and failover method based on application level, its technical solution is as follows:
A kind of load balancing and failover method based on application level, comprising the following steps:
S1: obtain: client's initiating business request obtains the service request that client sends;
S2: the fastest rear end of business processing judgement: is automatically selected according to network condition, service server loading condition Server;
S3: failure transfer: occur the abnormal application node of connection in detection application cluster, and answer there is connection exception It is pushed and is alerted with cluster, the automatic switchover of business is carried out when back-end server breaks down, reaches disaster tolerance requirement.
Preferably, in step s3, the application node in the application cluster is confirmed as connection exception occur really Determine process are as follows: each application node of the main control end into application cluster in load balance process module periodically sends state The heartbeat packet of detection, if HA terminal and the heartbeat detection of application node are normal, which is normal;If HA terminal with answer Abnormal with the heartbeat detection of terminal, then the connection is abnormal.
Preferably, in step s3, the application node in the application cluster is confirmed as connection exception occur really Determine process are as follows: the main control terminal in the load balance process module is analyzed an application terminal and examined in certain time continuous several times When the state of survey is obstructed, it is determined that it is abnormal that connection occurs in this application circuit, and then is judged as that failure is shielded.
Preferably, the side that the main control terminal in the load balance process module is detected to the application node of application cluster Formula includes that 7 layers of health status detection and the Port detecting based on TCP are done based on http protocol.
The beneficial effects of the present invention are:
1, present invention deployment is simple, can fast implement load balancing and event without changing server and service logic framework Hinder transfer scheme;
2, the present invention is at low cost, it is only necessary to which server can be realized.
Detailed description of the invention
Fig. 1 is the structural representation of load balancing and failure transfer system based on application level described in the embodiment of the present invention 1 Figure;
Fig. 2 is the flow chart of load balancing and failover method based on application level described in the embodiment of the present invention 2.
Appended drawing reference:
1, module is obtained;2, load balance process module;3, failover module;4, archive module;5, monitoring module;6, Back-end server.
Specific embodiment
The embodiment of the present invention is described in detail with reference to the accompanying drawing.
Embodiment 1
As shown in Figure 1, a kind of load balancing and failure transfer system based on application level, including obtain module 1, load Balance processing module 2, failover module 3, archive module 4, monitoring module 5 and multiple back-end servers 6;
Module 1 is obtained, for obtaining the service request of client's transmission;
Load balance process module 2 (HAProxy cluster) is connect, the load-balancing algorithm according to configuration with module 1 is obtained It automatically selects optimal back-end server 6 and carries out business processing;
Failover module 3 is connect with back-end server 6, for carrying out business when back-end server 6 breaks down Automatically switch, reaches disaster tolerance requirement;
Archive module 4 is connect with back-end server 6, for saving the information of client institute transacting business;
Monitoring module 5 is connect with back-end server 6, for dynamically monitoring the utilization rate, interior of load balance process module 2 Deposit service condition, 6 information of service scenario and back-end server of four-layer load-equalizing, seven layers of load balancing.
The load-balancing algorithm includes source IP, poll, SESSION and random selection.
Load cluster realizes load balancing by configuring multinode and the identical mode of weighted value being arranged, including with Under several aspects:
The load to rear end multinode is realized based on the strategy such as source IP, poll;
Identical weight weighted value is arranged in same application module, with guarantee to be loaded under normal circumstances it is multiple after Hold application node.
Embodiment 2
As shown in Fig. 2, a kind of load balancing and failover method based on application level, comprising the following steps:
S1: obtain: client's initiating business request obtains the service request that client sends;
S2: the fastest rear end of business processing judgement: is automatically selected according to network condition, service server loading condition Server 6;
S3: failure transfer: occur the abnormal application node of connection in detection application cluster, and answer there is connection exception It is pushed and is alerted with cluster, the automatic switchover of business is carried out when back-end server 6 breaks down, reaches disaster tolerance requirement.
Application node in application cluster is confirmed as the abnormal determination process of connection, including the following aspects occur:
Each application node of the main control end into application cluster in HAProxy cluster periodically sends state-detection Heartbeat packet, if HA terminal and the heartbeat detection of application node are normal, which is normal;If HA terminal and application terminal Heartbeat detection it is abnormal, then the connection is abnormal;
It is equal that main control terminal in HAProxy cluster analyzes the state that an application terminal is detected in certain time continuous several times When being obstructed, it is determined that it is abnormal that connection occurs in this application circuit, and then is judged as that failure is shielded;
The mode that main control terminal in HAProxy cluster is detected to the application node of application cluster includes being based on http protocol Do 7 layers of health status detection and the Port detecting based on TCP.
A specific embodiment of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention Protect range.

Claims (8)

1. a kind of load balancing and failure transfer system based on application level, which is characterized in that including obtaining module, load Weigh processing module, failover module and multiple back-end servers;
Module is obtained, for obtaining the service request of client's transmission;
Load balance process module is connect with module is obtained, and the load-balancing algorithm according to configuration automatically selects optimal rear end clothes Business device carries out business processing;
Failover module is connect with back-end server, for carrying out cutting automatically for business when back-end server breaks down It changes, reaches disaster tolerance requirement.
2. the load balancing and failure transfer system according to claim 1 based on application level, which is characterized in that described Load-balancing algorithm includes source IP, poll, SESSION and random selection.
3. the load balancing and failure transfer system according to claim 1 based on application level, which is characterized in that also wrap Archive module is included, the archive module is connect with the back-end server, for saving the information of client institute transacting business.
4. the load balancing and failure transfer system according to claim 3 based on application level, which is characterized in that also wrap Monitoring module is included, the monitoring module is connect with the back-end server, for dynamically monitoring the benefit of load balance process module With rate, memory service condition, the service scenario and back-end server information of four-layer load-equalizing, seven layers of load balancing.
5. a kind of load balancing and failover method based on application level, which comprises the following steps:
S1: obtain: client's initiating business request obtains the service request that client sends;
S2: the fastest back-end services of business processing judgement: are automatically selected according to network condition, service server loading condition Device;
S3: failure transfer: occur the abnormal application node of connection in detection application cluster, and collect to there is the abnormal application of connection Group's push alarm, the automatic switchover of business is carried out when back-end server breaks down, reaches disaster tolerance requirement.
6. the load balancing and failover method according to claim 5 based on application level, which is characterized in that in step In rapid S3, the application node in the application cluster is confirmed as the abnormal determination process of connection occur are as follows: load balance process Each application node of the main control end into application cluster in module periodically sends the heartbeat packet of state-detection, if HA terminal Normal with the heartbeat detection of application node, then the connection is normal;If HA terminal and the heartbeat detection of application terminal are abnormal, Then the connection is abnormal.
7. the load balancing and failover method according to claim 5 based on application level, which is characterized in that in step In rapid S3, the application node in the application cluster is confirmed as the abnormal determination process of connection occur are as follows: the load balancing Main control terminal in processing module analyzes an application terminal when the state that certain time continuous several times detect is obstructed, then It is abnormal to determine that connection occurs in this application circuit, and then is judged as that failure is shielded.
8. load balancing and failover method according to claim 5-7 any one based on application level, special Sign is that the mode that the main control terminal in the load balance process module is detected to the application node of application cluster includes being based on Http protocol does 7 layers of health status detection and the Port detecting based on TCP.
CN201811435809.1A 2018-11-28 2018-11-28 A kind of load balancing based on application level and failure transfer system and its method Pending CN109714190A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811435809.1A CN109714190A (en) 2018-11-28 2018-11-28 A kind of load balancing based on application level and failure transfer system and its method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811435809.1A CN109714190A (en) 2018-11-28 2018-11-28 A kind of load balancing based on application level and failure transfer system and its method

Publications (1)

Publication Number Publication Date
CN109714190A true CN109714190A (en) 2019-05-03

Family

ID=66255246

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811435809.1A Pending CN109714190A (en) 2018-11-28 2018-11-28 A kind of load balancing based on application level and failure transfer system and its method

Country Status (1)

Country Link
CN (1) CN109714190A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110266791A (en) * 2019-06-18 2019-09-20 深圳市高星文网络科技有限公司 The safe and reliable repeater system of mimicry and its method
CN110445870A (en) * 2019-08-13 2019-11-12 深圳成谷科技有限公司 A kind of bus or train route cooperative system and exchange method, RSU
CN111338858A (en) * 2020-02-18 2020-06-26 中国工商银行股份有限公司 Disaster recovery method and device for double machine rooms
CN111355988A (en) * 2020-03-31 2020-06-30 苏州科达科技股份有限公司 Business disaster recovery method, equipment and readable storage medium
CN111722932A (en) * 2020-06-28 2020-09-29 中国工商银行股份有限公司 Control method and device for application system, computer system and storage medium
CN112000507A (en) * 2020-08-21 2020-11-27 中国建设银行股份有限公司 Fault processing method, system, device and medium based on software load balancing
CN117149533A (en) * 2023-11-01 2023-12-01 成都正扬博创电子技术有限公司 Comprehensive control computer system capable of automatically adapting redundancy configuration

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1391378A (en) * 2001-06-11 2003-01-15 华为技术有限公司 Connection switching system at front end of server cluster and its switching method
WO2005050356A2 (en) * 2003-11-12 2005-06-02 Cisco Technology, Inc. Adaptive load balancing
CN101217558A (en) * 2007-12-26 2008-07-09 中国移动通信集团湖北有限公司 An operation middleware service load balancing method
CN104168326A (en) * 2014-08-27 2014-11-26 福建星网视易信息系统有限公司 Server load balancing method and system
CN105610971A (en) * 2016-01-29 2016-05-25 北京京东尚科信息技术有限公司 Load balancing method and apparatus
CN105871983A (en) * 2015-12-10 2016-08-17 乐视云计算有限公司 Method and device for selecting servers
CN106657379A (en) * 2017-01-06 2017-05-10 重庆邮电大学 Implementation method and system for NGINX server load balancing
CN106651487A (en) * 2015-10-30 2017-05-10 宁波轩悦行电动汽车服务有限公司 Load balancing method of authentication service of electromobile time-sharing leasing system
CN107040600A (en) * 2017-04-20 2017-08-11 暴风集团股份有限公司 A kind of real-time interactive method and real-time interactive system for competitive sports
CN107295048A (en) * 2016-04-01 2017-10-24 百度在线网络技术(北京)有限公司 Load-balancing method and device
CN108551489A (en) * 2018-05-07 2018-09-18 广东电网有限责任公司 A kind of application server load balancing method, system, device and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1391378A (en) * 2001-06-11 2003-01-15 华为技术有限公司 Connection switching system at front end of server cluster and its switching method
WO2005050356A2 (en) * 2003-11-12 2005-06-02 Cisco Technology, Inc. Adaptive load balancing
CN101217558A (en) * 2007-12-26 2008-07-09 中国移动通信集团湖北有限公司 An operation middleware service load balancing method
CN104168326A (en) * 2014-08-27 2014-11-26 福建星网视易信息系统有限公司 Server load balancing method and system
CN106651487A (en) * 2015-10-30 2017-05-10 宁波轩悦行电动汽车服务有限公司 Load balancing method of authentication service of electromobile time-sharing leasing system
CN105871983A (en) * 2015-12-10 2016-08-17 乐视云计算有限公司 Method and device for selecting servers
CN105610971A (en) * 2016-01-29 2016-05-25 北京京东尚科信息技术有限公司 Load balancing method and apparatus
CN107295048A (en) * 2016-04-01 2017-10-24 百度在线网络技术(北京)有限公司 Load-balancing method and device
CN106657379A (en) * 2017-01-06 2017-05-10 重庆邮电大学 Implementation method and system for NGINX server load balancing
CN107040600A (en) * 2017-04-20 2017-08-11 暴风集团股份有限公司 A kind of real-time interactive method and real-time interactive system for competitive sports
CN108551489A (en) * 2018-05-07 2018-09-18 广东电网有限责任公司 A kind of application server load balancing method, system, device and storage medium

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110266791A (en) * 2019-06-18 2019-09-20 深圳市高星文网络科技有限公司 The safe and reliable repeater system of mimicry and its method
CN110445870A (en) * 2019-08-13 2019-11-12 深圳成谷科技有限公司 A kind of bus or train route cooperative system and exchange method, RSU
CN111338858A (en) * 2020-02-18 2020-06-26 中国工商银行股份有限公司 Disaster recovery method and device for double machine rooms
CN111338858B (en) * 2020-02-18 2023-07-14 中国工商银行股份有限公司 Disaster recovery method and device for double machine rooms
CN111355988A (en) * 2020-03-31 2020-06-30 苏州科达科技股份有限公司 Business disaster recovery method, equipment and readable storage medium
CN111722932A (en) * 2020-06-28 2020-09-29 中国工商银行股份有限公司 Control method and device for application system, computer system and storage medium
CN111722932B (en) * 2020-06-28 2023-08-04 中国工商银行股份有限公司 Control method and device for application system, computer system and storage medium
CN112000507A (en) * 2020-08-21 2020-11-27 中国建设银行股份有限公司 Fault processing method, system, device and medium based on software load balancing
CN117149533A (en) * 2023-11-01 2023-12-01 成都正扬博创电子技术有限公司 Comprehensive control computer system capable of automatically adapting redundancy configuration
CN117149533B (en) * 2023-11-01 2024-01-23 成都正扬博创电子技术有限公司 Comprehensive control computer system capable of automatically adapting redundancy configuration

Similar Documents

Publication Publication Date Title
CN109714190A (en) A kind of load balancing based on application level and failure transfer system and its method
US9075660B2 (en) Apparatus and method for providing service availability to a user via selection of data centers for the user
CN108234191A (en) The management method and device of cloud computing platform
CN103973728B (en) The method and device of load balancing under a kind of multiple data centers environment
US10795744B2 (en) Identifying failed customer experience in distributed computer systems
CN106656682A (en) Method, system and device for detecting cluster heartbeat
CN110908872B (en) Method and system for detecting server state
US20050204214A1 (en) Distributed montoring in a telecommunications system
CN107483260A (en) Fault handling method and device, electronic equipment
CN109286529A (en) A kind of method and system for restoring RabbitMQ network partition
WO2023030417A1 (en) Packet processing method and device, storage medium, and computer program product
CN108206768A (en) Cluster monitoring and switching method and device
CN112311896B (en) Health examination method, device, equipment and computer readable storage medium
CN112866394A (en) Load balancing method, device, system, computer equipment and storage medium
CN114401258A (en) Short message sending method, device, electronic device and storage medium
US10567262B1 (en) Dynamic server device monitoring
CN114285822A (en) Domain name resolution server switching method and device
CN113179295A (en) Message processing method and device
CN106790610A (en) A kind of cloud system message distributing method, device and system
CN108696859B (en) Method for accessing Internet by double-card mobile terminal and double-card mobile terminal
CN116016266A (en) Health check implementation method and device based on API gateway
US8438261B2 (en) Failover scheme with service-based segregation
CN106301898B (en) A kind of synchronous method and device of configuration information
US10498591B1 (en) Isolating service faults using loopbacks
US10931796B2 (en) Diffusing packets to identify faulty network apparatuses in multipath inter-data center networks

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190503