CN105471995B - Extensive Web service group of planes high availability implementation method based on SOA - Google Patents

Extensive Web service group of planes high availability implementation method based on SOA Download PDF

Info

Publication number
CN105471995B
CN105471995B CN201510874522.9A CN201510874522A CN105471995B CN 105471995 B CN105471995 B CN 105471995B CN 201510874522 A CN201510874522 A CN 201510874522A CN 105471995 B CN105471995 B CN 105471995B
Authority
CN
China
Prior art keywords
node
cluster
service
group
host
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.)
Expired - Fee Related
Application number
CN201510874522.9A
Other languages
Chinese (zh)
Other versions
CN105471995A (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.)
Shandong Academy of Agricultural Machinery Sciences
Original Assignee
Shandong Academy of Agricultural Machinery Sciences
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 Shandong Academy of Agricultural Machinery Sciences filed Critical Shandong Academy of Agricultural Machinery Sciences
Priority to CN201510874522.9A priority Critical patent/CN105471995B/en
Publication of CN105471995A publication Critical patent/CN105471995A/en
Application granted granted Critical
Publication of CN105471995B publication Critical patent/CN105471995B/en
Expired - Fee Related 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/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 
    • H04L67/1051Group master selection mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • 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/1034Reaction to server failures by a load balancer

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer And Data Communications (AREA)
  • Hardware Redundancy (AREA)

Abstract

The invention discloses a kind of extensive Web service group of planes high availability implementation method based on SOA, be in a machine room to be distributed a large amount of web service server, server has run identical or different web services;The hardware and software resource needed is set, including server list, service processes, hard disk and IP address pool for each web services;For each web services, monitoring resource and monitoring strategies are set;When monitoring resource discovering exception, web services is carried out failover;Web cluster main management node election strategy is set, main management node is elected when cluster starts, and re-elect when main management node lost efficacy, avoid using special server as backup server, and owing to can be that failover group arranges and multiple starts server, so that business has higher reliability, it is ensured that on the basis of customer service High Availabitity, reduce customer investment, the complexity of management and the expense of maintenance.

Description

Extensive Web service group of planes high availability implementation method based on SOA
Technical field
The present invention relates to a kind of SOA framework system, specifically, relate to an a kind of extensive Web service group of planes based on SOA High availability implementation method, belongs to field of computer technology.
Background technology
Along with the continuous propelling of informatization, the activity of each enterprises and institutions more and more depends on its key Operating information system, these operating information systems play vital effect to operation and the development of whole mechanism, once send out Raw delay machine fault or application shutdown, will bring huge economic loss to mechanism.The most visible, those are needed to ensure letter For the mechanism of breath safety and the continual information service of offer, the fault-tolerance of operation system and continuity seem the heaviest Want.How to ensure that various crucial application is persistently runed, reach the benign cycle managed in order, it has also become current enterprises and institutions and IT field is badly in need of the key issue solved.
The most conventional protected mode is by the hot standby High Availabitity realizing business of 1+1.The hot standby structure of 1+1 needs backup The structure of server and master application server one to, backup server is in startup but does not swashs when master application server is normal Resource required for the corresponding business lived.Master application server when breaking down, all need of backup server adapter business The resource wanted, continues offer business.1+1 application need user configure one to one backup server, this for customer investment with The aspect such as final-period management, energy consumption is all a bigger challenge.
Summary of the invention
The problem to be solved in the present invention is for above not enough, proposes an a kind of extensive Web service group of planes based on SOA high Available implementation method, the method can reduce customer investment, the complexity of management on the basis of guaranteeing customer service High Availabitity With the expense safeguarded.
For solving above technical problem, the technical scheme that the present invention takes is as follows: extensive Web service machine based on SOA Group's high availability implementation method, it is characterised in that the method includes:
Being in a machine room to be distributed a large amount of web service server, server has run identical or different web clothes Business;The hardware and software resource needed is set, including server list, service processes, hard disk and IP address for each web services Pond;For each web services, monitoring resource and monitoring strategies are set;When monitoring resource discovering exception, web services was lost efficacy Transfer;Web cluster main management node election strategy is set, elects main management node when cluster starts, and in main management node Re-elect during inefficacy.
Further, described method includes:
1) server and cluster relevant information thereof that High Availabitity web services cluster comprises are set, including arranging
Cluster management IP address and port numbers;The priority orders of cluster interior joint is set, as election host node algorithm Foundation;
2) failover group and the resource of service business needs thereof and monitoring resource, the phase needed including service operation are created Close strategy, the operation conflict group of service groups is set;
3) start service cluster, choose service cluster host node, choose host node and start High Availabitity collection according to relevant configuration All service business in Qun;
4) if occurring that in service operation node is delayed machine, host node detects that service node is delayed machine, it is judged that services set Whether group is whole group of collapse conditions;If cluster is not whole group of collapse conditions, it is followed successively by and operates in owning on this node Group lookup can run next node;
5) occurring in service operation that business resource requirement is abnormal causes service business to be interrupted, and monitoring nodes provides
Feed Discovery is abnormal, reports host node, and host node stops each resource that origin node correspondence group is run, and calculates and can transport Another node of row.
Further, start service cluster and also include following process step:
1) each node of service cluster should broadcast this node priority and node profile information, and each node processing is also deposited Store up other node priority and profile information;
2) each node compares other node profile information, it is judged that whether the priority of this node is limit priority, If the priority of this node is optimum, then judge that this node is cluster host node, otherwise host node non-clustered host node;
3) the machine is the information broadcast of host node by the cluster host node selected by appeal election algorithm, first host node To every other node, other nodes are responded and are admitted the information that this node is host node.If there is the conflict of multiple host nodes, Then these host nodes mutually send the information with timestamp, and then these nodes are according to the order on the offensive of timestamp, which Individual timestamp is up-to-date, then this node is host node, and this information is broadcast to other all nodes;
4) host node sends the state of the service cluster got all service business group, each node reverts back operation group State;Host node determines not actuated web services according to configuration information, and calculates the corresponding next node run organized, and Not actuated web services is run on this node.
Further, the next node run calculating correspondence group includes:
Whether and the clothes that will run host node according to the order of configuration, searches the service group that is currently running on node successively Business group has conflict;If Lothrus apterus, run this service group the most on this node;If there being conflict, inquiry next one joint the most successively Point.If all nodes have all been inquired, then this information is shown on administration interface.
The present invention uses above technical scheme, compared with prior art, has the advantage that and elects in multi-node cluster Host node, and re-elect after host node delays machine, and guarantee that the state of cluster is in consistent state all the time;Election algorithm According to be clustered node priority;Priority is the priority set, if priority has identical, then same node point has The algorithm of contention host node;The algorithm of contention host node is that the node that priority is identical sends mutually the contention letter with timestamp Breath, the earliest, who is just for host node for whose timestamp;Configuration file, when generating, calculates the unique code of 32, as cluster Unique mark, unique mark is the most constant.
After determining host node, add cluster IP for host node, so that cluster management client can pass through cluster IP Set up with whole cluster and contact.The control of all nodes in cluster on the primary node, by host node recipient node and group Lost efficacy, and determined the server that failover group is run;
Put multiple runtime server by assembling for failover, and the mutual exclusion group of failover group is set, such that it is able to Make failover group have multiple server that starts, thus avoid using special server as backup server, and Owing to can be that failover group arranges and multiple starts server, so that business has higher reliability, it is ensured that use On the basis of the business High Availabitity of family, reduce customer investment, the complexity of management and the expense of maintenance.
The invention will be further described with embodiment below in conjunction with the accompanying drawings.
Accompanying drawing explanation
Accompanying drawing 1 is the structural representation of High Availabitity Web service cluster in the embodiment of the present invention;
Accompanying drawing 2 is the flow chart of implementation method in the embodiment of the present invention.
Detailed description of the invention
Embodiment 1, as shown in Figure 1 and Figure 2, extensive Web service group of planes high availability implementation method based on SOA, it is achieved should The device of method includes: management control station, switch and multiple cluster nodes, and management control station and cluster nodes pass through switch Linking together, management control station carries out communication by ICP/IP protocol and cluster nodes, and management control station may operate in appoints Anticipate a cluster nodes, it is possible to use a single server is as management control station.
Being in a machine room to be distributed a large amount of web service server, server has run identical or different web clothes Business;The hardware and software resource needed is set, including server list, service processes, hard disk and IP address for each web services Pond;For each web services, monitoring resource and monitoring strategies are set;When monitoring resource discovering exception, web services was lost efficacy Transfer;Web cluster main management node election strategy is set, elects main management node when cluster starts, and in main management node Re-elect during inefficacy.
1) server and cluster relevant information thereof that High Availabitity web services cluster comprises are set, including arranging cluster management IP address and port numbers;The priority orders of cluster interior joint is set, as the foundation of election host node algorithm;
2) failover group and the resource of service business needs thereof and monitoring resource, the phase needed including service operation are created Close strategy, the operation conflict group of service groups is set;
3) start service cluster, choose service cluster host node, choose host node and start High Availabitity collection according to relevant configuration All service business in Qun;
4) if occurring that in service operation node is delayed machine, host node detects that service node is delayed machine, it is judged that services set Whether group is whole group of collapse conditions;If cluster is not whole group of collapse conditions, it is followed successively by and operates in owning on this node Group lookup can run next node;
5) occurring in service operation that business resource requirement is abnormal causes service business to be interrupted, and monitoring nodes resource discovering is different Often, reporting host node, host node stops each resource that origin node correspondence group is run, and calculates another node that can run.
Start service cluster and also include following process step:
1) each node of service cluster should broadcast this node priority and node profile information, and each node processing is also deposited Store up other node priority and profile information;
2) each node compares other node profile information, it is judged that whether the priority of this node is limit priority, If the priority of this node is optimum, then judge that this node is cluster host node, otherwise host node non-clustered host node;
3) the machine is the information broadcast of host node by the cluster host node selected by appeal election algorithm, first host node To every other node, other nodes are responded and are admitted the information that this node is host node.If there is the conflict of multiple host nodes, Then these host nodes mutually send the information with timestamp, and then these nodes are according to the order on the offensive of timestamp, which Individual timestamp is up-to-date, then this node is host node, and this information is broadcast to other all nodes;
4) host node sends the state of the service cluster got all service business group, each node reverts back operation group State;Host node determines not actuated web services according to configuration information, and calculates the corresponding next node run organized, and Not actuated web services is run on this node.
The next node run calculating correspondence group includes:
Whether and the clothes that will run host node according to the order of configuration, searches the service group that is currently running on node successively Business group has conflict;If Lothrus apterus, run this service group the most on this node;If there being conflict, inquiry next one joint the most successively Point.If all nodes have all been inquired, then this information is shown on administration interface.
Embodiment 2, as shown in Figure 1 and Figure 2, extensive Web service group of planes high availability implementation method based on SOA, it is achieved should The device of method includes: management control station, switch and multiple cluster nodes.Management control station and cluster nodes pass through switch Link together.Management control station carries out communication by ICP/IP protocol and cluster nodes.Management control station may operate in appoints Anticipate a cluster nodes, it is possible to use a single server is as management control station.
Carrying out high-availability cluster setting by management control station, management control station is the highest with the priority in high-availability cluster The IP address of node carry out communication, and configuration file is transferred to the node that priority is the highest;
The node receiving configuration file re-assemblies configuration file, and all operation nodenames are included in the of message One territory, is then broadcast in cluster by Radio Broadcasting Agreements;
Each node after receiving the message, resolves first territory, if comprising self, being preserved by configuration file, otherwise throwing Abandon;
After completing configuration, management control station sends startup by the node that the priority in high-availability cluster is the highest The order of cluster;
After receiving order, node sends the order starting cluster, and each node is preferential according to strategy broadcast oneself Level and profile number;
After completing broadcast, each node receives priority and the configuration file version number of other node, is joined by contrast The version number putting file decides whether that proceeding host node judges;
If the configuration file version of this node is relatively new, then whether decision node priority is up-to-date, if node is excellent First level is the high node in existing node, then judge it oneself is host node;
It is judged as that the node of host node arranges cluster management IP address according to configuration file, and to arrange broadcast oneself be main joint Point, other nodes all arrange host node mark after receiving broadcast master node;
Host node obtains the state of all operation groups, obtains not actuated Groups List, starts all according to not actuated Groups List Group;
The enforcement step of concrete one group of startup is as follows:
A) node sequence that host node runs according to the service groups set, successively in decision node operation group whether with this industry Business group is conflicted mutually;
If conflicted mutually, then whether recursive calculation next node operation group conflicts mutually with this service groups, does not wrap until finding Containing running the server of conflict group or not finding runtime server;
B) host node finds runtime server, sends the instruction of startup group to runtime server;Runtime server is receiving After the instruction of startup group, the resource arranged according to group, start related resource and monitoring resource;
C) host node does not finds runtime server, and the state arranging group is halted state;
After all failover groups all have been started up, resource is supervised by each monitoring resource in failover group Control.After finding resource failed, the strategy according to setting is again started up resource, if resource can start successfully, does not send different Often.If resource starts unsuccessfully, send the message of group resource exception to host node.Host node receive group resource exception after, Stopping group command being sent, other resources all in origin node stopping group to former starter node.Host node calculates failover group The next one can run node, it is judged that on this node run group whether conflict mutually with failover group, if do not collided, then The order of startup group is sent to this node.
During cluster runs, the machine if node is delayed, all node perceived to node are delayed machine, and are judged whether it is main Node is delayed machine, the machine if host node is delayed, then each node broadcast node information again, including node priority and version number, Again elect host node.If the machine node of delaying is not host node, host node runs to other by all groups operated on node On node.
One skilled in the art would recognize that above-mentioned detailed description of the invention is exemplary, be to make ability Field technique personnel can be better understood from present invention, should not be understood as limiting the scope of the invention, as long as According to technical solution of the present invention improvements introduced, each fall within protection scope of the present invention.

Claims (1)

1. extensive Web service group of planes high availability implementation method based on SOA, it is characterised in that the method includes:
Some web service servers are set in a machine room;
Each web services sets the hardware and software resource needed, including server list, service processes, hard disk and IP address Pond;
Each web services arranges monitoring resource and monitoring strategies;
When monitoring resource discovering exception, web services is carried out failover;Web cluster main management node election strategy is set, Elect main management node when cluster starts, and re-elect when main management node lost efficacy;
Described method includes:
1) server and cluster relevant information thereof that High Availabitity web services cluster comprises are set, including arranging cluster management IP ground Location and port numbers;
The priority orders of cluster interior joint is set, as the foundation of election host node algorithm;
2) failover group and the resource of service business needs thereof and monitoring resource, the relevant plan needed including service operation are created Slightly, the operation conflict group of service groups is set;
3) start service cluster, choose service cluster host node, choose host node and start in high-availability cluster according to relevant configuration All service business;
4) if occurring that in service operation node is delayed machine, host node detects that service node is delayed machine, it is judged that service cluster is No is whole group of collapse conditions;
If cluster is not whole group of collapse conditions, it is followed successively by all groups of lookups operating on this node and can run next joint Point;
5) occurring in service operation that business resource requirement is abnormal causes service business to be interrupted, and monitoring nodes resource discovering is abnormal, Reporting host node, host node stops each resource that origin node correspondence group is run, and calculates another node that can run;
Start service cluster and also include following process step:
1) each node of service cluster should broadcast this node priority and node profile information, and each node processing also stores it Its node priority and profile information;
2) each node compares other node profile information, it is judged that whether the priority of this node is limit priority, if The priority of this node is optimum, then judge that this node is cluster host node, otherwise host node non-clustered host node;
3) the cluster host node selected by appeal election algorithm, the information that the machine is host node is broadcast to institute by first host node Having other nodes, other nodes are responded and are admitted the information that this node is host node;
If there is the conflict of multiple host nodes, then these host nodes mutually send the information with timestamp, and then these are several Individual node is according to the order on the offensive of timestamp, and which timestamp is up-to-date, then this node is host node, and this information is broadcast to Other all nodes;
4) host node sends the state of the service cluster got all service business group, the shape of each node reverts back operation group State;Host node determines not actuated web services according to configuration information, and calculates the corresponding next node run organized, and will Not actuated web services runs on this node.
CN201510874522.9A 2015-12-14 2015-12-14 Extensive Web service group of planes high availability implementation method based on SOA Expired - Fee Related CN105471995B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510874522.9A CN105471995B (en) 2015-12-14 2015-12-14 Extensive Web service group of planes high availability implementation method based on SOA

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510874522.9A CN105471995B (en) 2015-12-14 2015-12-14 Extensive Web service group of planes high availability implementation method based on SOA

Publications (2)

Publication Number Publication Date
CN105471995A CN105471995A (en) 2016-04-06
CN105471995B true CN105471995B (en) 2016-08-31

Family

ID=55609258

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510874522.9A Expired - Fee Related CN105471995B (en) 2015-12-14 2015-12-14 Extensive Web service group of planes high availability implementation method based on SOA

Country Status (1)

Country Link
CN (1) CN105471995B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878063B (en) * 2017-01-17 2019-08-06 烽火通信科技股份有限公司 A method of restoring network topology and business configuration data from network element
CN109032854B (en) * 2018-07-13 2021-10-12 新华三技术有限公司成都分公司 Election request processing method and device, management node and storage medium
CN109189738A (en) * 2018-09-18 2019-01-11 郑州云海信息技术有限公司 Choosing method, the apparatus and system of main OSD in a kind of distributed file system
CN109474465A (en) * 2018-11-13 2019-03-15 上海英方软件股份有限公司 A kind of method and system of the high availability that can dynamically circulate based on server cluster
CN111338647B (en) * 2018-12-18 2023-09-12 杭州海康威视数字技术股份有限公司 Big data cluster management method and device
CN109783264A (en) * 2018-12-29 2019-05-21 南京富士通南大软件技术有限公司 A kind of High Availabitity solution of database
CN109769020B (en) * 2019-01-09 2021-09-24 网宿科技股份有限公司 CDN cluster acceleration service resource management method and device, electronic equipment and storage medium
CN111629013B (en) * 2019-02-27 2024-06-18 北京奇虎科技有限公司 Service node management method, device and node network
CN111163173B (en) * 2019-12-31 2022-06-21 迈普通信技术股份有限公司 Cluster configuration method and device, server and readable storage medium
CN111338858B (en) * 2020-02-18 2023-07-14 中国工商银行股份有限公司 Disaster recovery method and device for double machine rooms
CN111541577A (en) * 2020-05-20 2020-08-14 南京巨鲨显示科技有限公司 Main service election method and system suitable for distributed system
CN112003721B (en) * 2020-07-15 2022-10-14 苏州浪潮智能科技有限公司 Method and device for realizing high availability of large data platform management node
CN115484139B (en) * 2022-09-02 2024-03-15 武汉众智数字技术有限公司 Video strategy management decentralization method based on video network monitoring

Also Published As

Publication number Publication date
CN105471995A (en) 2016-04-06

Similar Documents

Publication Publication Date Title
CN105471995B (en) Extensive Web service group of planes high availability implementation method based on SOA
EP3128719B1 (en) Post-cluster brain split quorum processing method and quorum storage device and system
Houidi et al. Adaptive virtual network provisioning
CN103744809B (en) Vehicle information management system double hot standby method based on VRRP
CN106664216B (en) VNF switching method and device
CN103312809A (en) Distributed management method for service in cloud platform
US8880703B2 (en) Address distribution method, device and system thereof
EP3291487B1 (en) Method for processing virtual machine cluster and computer system
CN110391940B (en) Service address response method, device, system, equipment and storage medium
CN105515812A (en) Fault processing method of resources and device
WO2008124609A1 (en) Logical partitioning of a physical device
EP3526931B1 (en) Computer system and method for dynamically adapting a software-defined network
CN103580883A (en) Business disaster recovery method and business disaster recovery system
CN100521603C (en) Method for realizing high-usability of network security equipment under cluster mode
CN103647833A (en) Continuous sequence number generation system and continuous sequence number generation method
CN105933379B (en) A kind of method for processing business, equipment and system
CN103532764A (en) Multi-machine hot backup method and system
EP1712067B1 (en) A method, apparatus and system of organizing servers
WO2007146473A2 (en) Method and system for distributing data processing units in a communication network
CN113794765A (en) Gate load balancing method and device based on file transmission
CN104780067A (en) Method and device for rebooting PE (port extender)
US9015518B1 (en) Method for hierarchical cluster voting in a cluster spreading more than one site
CN115801798A (en) Multi-layer consensus method supporting dynamic switching of main nodes
WO2016177211A1 (en) Address resolution protocol (arp) table entry synchronization method and device
US9798633B2 (en) Access point controller failover system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160831