CN104580502A - Method for achieving load balance dual-unit hot standby - Google Patents
Method for achieving load balance dual-unit hot standby Download PDFInfo
- Publication number
- CN104580502A CN104580502A CN201510037523.8A CN201510037523A CN104580502A CN 104580502 A CN104580502 A CN 104580502A CN 201510037523 A CN201510037523 A CN 201510037523A CN 104580502 A CN104580502 A CN 104580502A
- Authority
- CN
- China
- Prior art keywords
- load balancing
- software
- node cluster
- hot backup
- standby
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1034—Reaction to server failures by a load balancer
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0663—Performing the actions predefined by failover planning, e.g. switching to standby network elements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Hardware Redundancy (AREA)
Abstract
The invention discloses a method for achieving load balance dual-unit hot standby, and relates to the field of computer network load balance. The load balance of a background WEB server is achieved through the fusion of the load balance technology and the dual-unit hot standby technology and load balance software, the dual-unit hot standby is achieved through main and standby dual-unit high availability software, the load balance dual-unit hot standby function is achieved by running the load balance software on a dual-unit hot standby system, and the load balance dual-unit function is achieved from the software level. The method solves the problem of the single-point fault of the load balance, and continuity and stability of the business service are guaranteed; the informatization establishing cost is saved, meanwhile, the whole service is automatically switched, and the fault transferring cost is reduced.
Description
Technical field
The present invention relates to computer network load balancing field, is exactly a kind of method realizing load balancing two-node cluster hot backup specifically.
Background technology
Along with the demand of enterprise informatization evolution, webserver technology from one-site model to clustering, clustered development, more multiple enterprises requires that the operation system energy fault-free of oneself is run continuously, produce increasing Internet Server technology image set group, two-shipper etc., load balancing and two-node cluster hot backup are also two technology wherein thereupon:
Load balancing (Load Balancing) is based upon on existing network infrastructure, it provide the bandwidth of the effectively transparent method extended network equipment of a kind of cheapness and server, increase throughput, Strengthens network data-handling capacity, improve flexibility and the availability of network.
Two-node cluster hot backup is refered in particular to hot standby (or High Availabitity) based on the two-server in high-availability system, because two machine High Availabitity use more at home, therefore two-node cluster hot backup of gaining the name, two-shipper High Availabitity is divided into by the switching mode in work: main-standby mode (Active-Standby mode) and two host mode (Active-Active mode), namely main-standby mode refers to the state of activation (i.e. Active state) that a station server is in certain business, and another station server is in the stand-by state (i.e. Standby state) of this business.And namely two host mode refers to two kinds of different business activestandby state (i.e. Active-Standby and Standby-Active state) each other on two-server respectively.
Summary of the invention
For the current condition of current technical development, propose a kind of method by load balancing software and the two-node cluster hot backup of two-shipper High Availabitity software simulating load balancing.
A kind of method realizing load balancing two-node cluster hot backup of the present invention, the technical scheme solving the problems of the technologies described above employing is as follows: this method is by the fusion of load balancing and two-node cluster hot backup two kinds of technology, utilize load balancing software to realize the load balancing of backstage WEB server, utilize the two-node cluster hot backup of active and standby two-shipper High Availabitity software simulating, load balancing two-node cluster hot backup function is realized by the balanced software of running load in Dual-Computer Hot-Standby System, reach and realize load balancing dual-machine function from software view, eliminate load balancing Single Point of Faliure.
Preferably, the method by active and standby two-shipper all the balanced software Apache of installation load realize WEB server load balancing, then by the two-node cluster hot backup of two-shipper High Availabitity HA software simulating.
Preferably, the method realizes the load distribution of WEB server by http_proxy, ajp_proxy, mod_jk tri-kinds of modes.
Preferably, by the two-node cluster hot backup of two-shipper High Availabitity HA software simulating, refer to that two-shipper High Availabitity HA software utilizes heartbeat to detect the ruuning situation between active and standby two-shipper, then determine whether master server breaks down by failure analysis module, then realize the business of standby server taking over fault main frame by Two-channel switching.
The beneficial effect that a kind of method realizing load balancing two-node cluster hot backup of the present invention compared with prior art has is: the method utilizes Common software system and hardware platform just can realize load balancing two-node cluster hot backup, solve operation system load balancing Single Point of Faliure, the fault-free of operation system is run continuously, ensure that the stability of business service; Save IT application in enterprises and build cost, fill up the blank that traditional load balancing two-shipper needs specialised hardware; Whole business switching simultaneously can complete completely automatically, without the need to human intervention, reduces Failure Transfer cost.
Accompanying drawing explanation
Accompanying drawing 1 is the described system construction drawing realizing the method for load balancing two-node cluster hot backup;
Accompanying drawing 2 is the described building-block of logic realizing the method for load balancing two-node cluster hot backup.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly understand, below in conjunction with specific embodiment, and with reference to accompanying drawing, a kind of method realizing load balancing two-node cluster hot backup of the present invention is further described.
A kind of method realizing load balancing two-node cluster hot backup of the present invention, based on the fusion of load balancing and two-node cluster hot backup two kinds of technology, utilize load balancing software to realize the load balancing of backstage WEB server, utilize the two-node cluster hot backup of two-shipper High Availabitity software simulating, realize load balancing two-node cluster hot backup function by the balanced software of running load in Dual-Computer Hot-Standby System, solve load balancing Single Point of Faliure problem.
This realizes the method for load balancing two-node cluster hot backup, it realizes system configuration as shown in Figure 1, comprise active and standby two for hot standby server, switch, database server, WEB server and some subscriber computers, wherein subscriber computer is connected on active and standby two-server and database server by the Internet, switch, active and standby two-server connects WEB server respectively simultaneously, and communicated by heartbeat between active and standby two-server.
Embodiment:
A kind of method realizing load balancing two-node cluster hot backup described in the present embodiment, based on the High Availabitity characteristic of the balanced software of Apache, Nginx even load to the load balance ability of WEB server and two-shipper High Availabitity HA software, realize the two-node cluster hot backup of web server cluster load balancing by active and standby two-server.The method by active and standby two-server all the balanced software Apache of installation load realize the load-balancing function to WEB server, hot standby then by between the active and standby two-server of two-shipper High Availabitity HA software simulating.Thus reach the function not using expensive hardware two-shipper load-balancing device to complete load balancing two-node cluster hot backup, eliminate the load balancing Single Point of Faliure problem of business.The method, due to the free property of the balanced software of Apache even load and compatibility, can support the load balancing of all WEB server in rear end; Two-shipper High Availabitity software engineering comparative maturity washability is a lot; Hardware server Platform Requirements needed for software is not very high.
Method described in the present embodiment realizes the load balancing of WEB server by load balancing software Apache, Apache is a kind of load balancing software of increasing income free, the load distribution of application server can be realized by http_proxy, ajp_proxy, mod_jk tri-kinds of modes, configuration is simple, easy to operate, compatible good; Simultaneously, by two-shipper High Availabitity HA(RoseHA) software realizes the two-node cluster hot backup of active and standby two-server, two-shipper High Availabitity HA software utilizes heartbeat to detect the ruuning situation between active and standby two-server, then determine whether main frame breaks down by failure analysis module, realized the business of standby host taking over fault main frame again by Two-channel switching, realize the continuous operation of operation system with low cost; Load balancing two-node cluster hot backup function is realized by the balanced software of running load in Dual-Computer Hot-Standby System.
Realize the method for load balancing two-node cluster hot backup described in the present embodiment, for load balancing software Apache and two-shipper High Availabitity software HA(RoseHA), detailed implementation as shown in Figure 2:
First prepare two available servers (active and standby server), every station server is installed the Apache software as load balancing, configuration load balance policy; For WEB server node1 and node2, open load balancing module * proxy*.so, configuration file configuration is as follows:
ProxyRequests Off
ProxyPass / balancer://cluster/ stickysession=JSESSIONID|jsessionid
<Proxy balancer://cluster/>
BalancerMember http://nodea:8080 loadfactor=1 route=rout1
BalancerMember http://nodeb:8080 loadfactor=1 route=rout2
ProxySetlbmethod=byrequests
</Proxy>
ProxyPreserveHost On
ProxyPassReverse / balancer://cluster/
More than configure and namely achieve apache the load balancing of backstage WEB server node1 and node2 is configured.
Then by Install and configure High Availabitity software HA, because do not need at two-server data sharing, therefore do not need shared memory systems, connected by private heartbeat network between two-server, prepare rear two-server and transmit heartbeat message by private network, the state of another station server monitored mutually by the HA software on every station server.When the master server that works breaks down, heartbeat message will change, and this change can be caught by HA software by private network.After capturing this change, HA software control system will carry out Two-channel switching, namely the apache load balancing work of the application program adapter working host that standby startup of server is the same with master server also can produce warning, and prompting administrative staff keep in repair failed host.After maintenance, can switch back according to the setting automatic or manual of HA software, also can not switch, the main frame now keeped in repair is just as backup machine, and dual systems works on again.
From the above-mentioned detailed introduction to the method, the method, by achieving load balancing two-node cluster hot backup to the fusion of load balancing software and two-shipper High Availabitity software, solves load balancing unit failure problems, ensures that the 7*24h of operation system runs continuously.
Above-mentioned embodiment is only concrete case of the present invention; scope of patent protection of the present invention includes but not limited to above-mentioned embodiment; any claims according to the invention and any person of an ordinary skill in the technical field to its suitable change done or replacement, all should fall into scope of patent protection of the present invention.
Claims (4)
1. one kind realizes the method for load balancing two-node cluster hot backup, it is characterized in that, by the fusion of load balancing and two-node cluster hot backup two kinds of technology, utilize load balancing software to realize the load balancing of backstage WEB server, utilize the two-node cluster hot backup of active and standby two-shipper High Availabitity software simulating, realize load balancing two-node cluster hot backup by the balanced software of running load in Dual-Computer Hot-Standby System.
2. a kind of method realizing load balancing two-node cluster hot backup according to claim 1, it is characterized in that, by on active and standby two-shipper all the balanced software Apache of installation load realize WEB server load balancing, then by the two-node cluster hot backup of two-shipper High Availabitity HA software simulating.
3. a kind of method realizing load balancing two-node cluster hot backup according to claim 2, be is characterized in that, realized the load distribution of WEB server by http_proxy, ajp_proxy, mod_jk tri-kinds of modes.
4. a kind of method realizing load balancing two-node cluster hot backup according to claim 3, it is characterized in that, by the two-node cluster hot backup of two-shipper High Availabitity HA software simulating, refer to that two-shipper High Availabitity HA software utilizes heartbeat to detect the ruuning situation between active and standby two-shipper, then determine whether master server breaks down by failure analysis module, then realize the business of standby server taking over fault main frame by Two-channel switching.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510037523.8A CN104580502A (en) | 2015-01-26 | 2015-01-26 | Method for achieving load balance dual-unit hot standby |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510037523.8A CN104580502A (en) | 2015-01-26 | 2015-01-26 | Method for achieving load balance dual-unit hot standby |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104580502A true CN104580502A (en) | 2015-04-29 |
Family
ID=53095659
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510037523.8A Pending CN104580502A (en) | 2015-01-26 | 2015-01-26 | Method for achieving load balance dual-unit hot standby |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104580502A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104978603A (en) * | 2015-07-31 | 2015-10-14 | 成都亿信标准认证集团有限公司 | Hot-standby project management platform with load balance |
CN105117655A (en) * | 2015-07-31 | 2015-12-02 | 成都亿信标准认证集团有限公司 | Project storage server with good confidentiality |
CN105162617A (en) * | 2015-07-31 | 2015-12-16 | 成都亿信标准认证集团有限公司 | Background management device with project backup function |
CN105227630A (en) * | 2015-08-27 | 2016-01-06 | 浪潮电子信息产业股份有限公司 | APACHE, MOD _ JK and TOMCAT based load balancing implementation mode |
CN105306605A (en) * | 2015-12-09 | 2016-02-03 | 北京中电普华信息技术有限公司 | Double host server system |
CN106993037A (en) * | 2017-03-31 | 2017-07-28 | 山东超越数控电子有限公司 | A kind of method that load-balanced server based on distributed system realizes high availability |
CN111090637A (en) * | 2019-12-20 | 2020-05-01 | 辽宁振兴银行股份有限公司 | Financial-level high-availability MySQL database implementation method based on A10 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101848221A (en) * | 2010-05-20 | 2010-09-29 | 创想空间软件技术(北京)有限公司 | Question answering system of large multimedia conference publishing system |
CN102387218A (en) * | 2011-11-24 | 2012-03-21 | 浪潮电子信息产业股份有限公司 | Multimachine hot standby load balance system for computer |
CN103346923A (en) * | 2013-07-30 | 2013-10-09 | 曙光信息产业(北京)有限公司 | Management method and management device for double-unit load balancing equipment |
CN103840961A (en) * | 2012-11-23 | 2014-06-04 | 景幂机械(上海)有限公司 | Dual-computer hot backup system |
-
2015
- 2015-01-26 CN CN201510037523.8A patent/CN104580502A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101848221A (en) * | 2010-05-20 | 2010-09-29 | 创想空间软件技术(北京)有限公司 | Question answering system of large multimedia conference publishing system |
CN102387218A (en) * | 2011-11-24 | 2012-03-21 | 浪潮电子信息产业股份有限公司 | Multimachine hot standby load balance system for computer |
CN103840961A (en) * | 2012-11-23 | 2014-06-04 | 景幂机械(上海)有限公司 | Dual-computer hot backup system |
CN103346923A (en) * | 2013-07-30 | 2013-10-09 | 曙光信息产业(北京)有限公司 | Management method and management device for double-unit load balancing equipment |
Non-Patent Citations (1)
Title |
---|
邓仲举: ""高可靠性集群部署的设计与实现"", 《中国优秀硕士学位全文数据库信息科技辑》 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104978603A (en) * | 2015-07-31 | 2015-10-14 | 成都亿信标准认证集团有限公司 | Hot-standby project management platform with load balance |
CN105117655A (en) * | 2015-07-31 | 2015-12-02 | 成都亿信标准认证集团有限公司 | Project storage server with good confidentiality |
CN105162617A (en) * | 2015-07-31 | 2015-12-16 | 成都亿信标准认证集团有限公司 | Background management device with project backup function |
CN105227630A (en) * | 2015-08-27 | 2016-01-06 | 浪潮电子信息产业股份有限公司 | APACHE, MOD _ JK and TOMCAT based load balancing implementation mode |
CN105306605A (en) * | 2015-12-09 | 2016-02-03 | 北京中电普华信息技术有限公司 | Double host server system |
CN106993037A (en) * | 2017-03-31 | 2017-07-28 | 山东超越数控电子有限公司 | A kind of method that load-balanced server based on distributed system realizes high availability |
CN111090637A (en) * | 2019-12-20 | 2020-05-01 | 辽宁振兴银行股份有限公司 | Financial-level high-availability MySQL database implementation method based on A10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104580502A (en) | Method for achieving load balance dual-unit hot standby | |
US11734138B2 (en) | Hot standby method, apparatus, and system | |
CN107707393B (en) | Multi-active system based on Openstack O version characteristics | |
US11323307B2 (en) | Method and system of a dynamic high-availability mode based on current wide area network connectivity | |
TWI724106B (en) | Business flow control method, device and system between data centers | |
US8842518B2 (en) | System and method for supporting management network interface card port failover in a middleware machine environment | |
CN102387218B (en) | Multimachine hot standby load balance system for computer | |
CN112003716A (en) | Data center dual-activity implementation method | |
CN103199972A (en) | Double machine warm backup switching method and warm backup system achieved based on SOA and RS485 bus | |
CN103312809A (en) | Distributed management method for service in cloud platform | |
CN105553701A (en) | Distribution network adjustment and control system and control method thereof | |
CN105516292A (en) | Hot standby method of cloud platform of intelligent substation | |
CN104731727A (en) | Double control monitoring and management system and method for storage system | |
CN113630265A (en) | Virtual network redundancy backup method and device based on intelligent network card | |
US20240187765A1 (en) | Passive optical network for utility infrastructure resiliency | |
AU2011229566A1 (en) | Load sharing method and apparatus | |
CN101599907B (en) | Method and system for forwarding flow | |
CN103501299A (en) | Firewall cluster management method and system | |
CN114338670B (en) | Edge cloud platform and network-connected traffic three-level cloud control platform with same | |
CN108234623B (en) | Automatic balance management method for data acquisition link of distribution network master station | |
CN103281384A (en) | Management system and method for message service cluster without center node | |
CN105302649A (en) | Disaster recovery backup method and system | |
CN102638369B (en) | Method, device and system for arbitrating main/standby switch | |
KR20140001499A (en) | Method and system for managing high availability | |
CN102118327A (en) | Multi-host gateway |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20150429 |
|
WD01 | Invention patent application deemed withdrawn after publication |