CN102571965B - Method and device for starting service group in high-availability cluster - Google Patents

Method and device for starting service group in high-availability cluster Download PDF

Info

Publication number
CN102571965B
CN102571965B CN201210012833.0A CN201210012833A CN102571965B CN 102571965 B CN102571965 B CN 102571965B CN 201210012833 A CN201210012833 A CN 201210012833A CN 102571965 B CN102571965 B CN 102571965B
Authority
CN
China
Prior art keywords
service groups
server
starts
conflict
service
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
CN201210012833.0A
Other languages
Chinese (zh)
Other versions
CN102571965A (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.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry 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 Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201210012833.0A priority Critical patent/CN102571965B/en
Publication of CN102571965A publication Critical patent/CN102571965A/en
Application granted granted Critical
Publication of CN102571965B publication Critical patent/CN102571965B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a method and a device for starting a service group in a high-availability cluster. The method comprises the following step of: when a certain service group is to be started, if the service group can be started on a plurality of servers, and has mutually exclusive conflict service groups, starting the service group after a maximum number of mutually exclusive conflict service groups are started. Finite server resources in the cluster are combined, a maximum number of service groups are started by utilizing a maximal starting algorithm according to mutually exclusive conflict relationship between every two service groups in the cluster, and then the service groups are optimally started according to different priorities of the service group on the servers, so that a maximum number of services can be provided by the cluster, and the maximum performance of the cluster is also ensured.

Description

Realize method and device that in high availability cluster, service groups starts
Technical field
The present invention relates to the high availability cluster technology of computer, relate in particular to and realize method and the device that in high availability cluster, service groups starts.
Background technology
At present, along with the arrival in cloud epoch, the application of application, the especially highly available cluster system of the computer clusters that formed by large-scale computer of emphasizing more.
In a highly available cluster system, conventionally provide multiple business service with the form of service groups, these service groups may exist mutual exclusion conflict relationship.Exist multiple service groups of mutual exclusion conflict relationship to be called mutual exclusion conflict service groups, these service groups can not be enabled on a server simultaneously, with prevent they due between mutually repel and service can not be normally provided.In cluster arranges, the first Priority Service device of two mutual exclusion conflict service groups is not identical.Cause thus in the limited server resource of cluster, cause the service groups in cluster service can not normally start the service that provides best because Starting mode is improper.
In existing high availability cluster service, the startup of mutual exclusion conflict service groups adopts competitive mode to start substantially, afoul service groups is started on the server of optimum (resource and operation etc.).And if certain service groups is without starting server, have to start.Will cause like this some service groups that service can not be normally externally provided.
Therefore, need to provide in a kind of high availability cluster and realize the method that service groups starts, can start as much as possible the service groups in cluster, under feasible condition, service groups can be started on the server that bootable priority is the highest simultaneously.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of method and device that in high availability cluster, service groups starts of realizing, and can start as much as possible the service groups in cluster.
In order to solve the problems of the technologies described above, the invention provides a kind of method that in high availability cluster, service groups starts that realizes, comprising:
In the time having service groups to start, if judge there are multiple bootable servers in this service groups, and this service groups exists mutual exclusion conflict service groups,, starting after mutual exclusion conflict service groups as much as possible, starts this service groups.
Further,
If judge there are multiple bootable servers in this service groups, and there is mutual exclusion conflict service groups in this service groups,, by maximizing starting algorithm and/or optimization starting algorithm starting after mutual exclusion conflict service groups as much as possible, start this service groups by optimization starting algorithm;
Wherein, maximize starting algorithm and refer to the bootable server of one or more mutual exclusion conflict service groups existing from this service groups, pick out the service groups of conflicting with the corresponding mutual exclusion of the nonoverlapping startup of server of the bootable server of this service groups; Optimization starting algorithm starts mutual exclusion conflict service groups or corresponding service group refers to: from multiple start to find out server start described mutual exclusion conflict service groups or the highest server of corresponding service group priority or start at unique server that starts, then server record, delete from starting the record that has started server.
Further, the method also comprises:
If judge there are multiple bootable servers in this service groups, and this service groups do not exist mutual exclusion conflict service groups, directly starts this service groups by optimization starting algorithm.
Further, the method also comprises:
If judge only there is a bootable server in this service groups, directly on this server, starts this service groups.
In order to solve the problems of the technologies described above, the invention provides a kind of device that in high availability cluster, service groups starts of realizing, comprise that the service groups connecting successively starts module, the equipment that can open searches module and conflict service groups is searched module, wherein:
The equipment that can open is searched module, in the time having service groups to start, has multiple bootable servers if find this service groups, searches the look-up command of module output conflict service groups to conflict service groups; If conflict service groups is searched module and returned to corresponding mutual exclusion conflict service groups, start the enabled instruction of module output conflict service groups to service groups;
Conflict service groups is searched module, returns for the mutual exclusion conflict service groups of the corresponding service group finding being searched to module to the equipment that can open according to the conflict service groups look-up command of input;
Service groups starts module, for conflicting after service groups in startup mutual exclusion as much as possible according to the conflict service groups enabled instruction of input, starts this service groups.
Further,
Service groups starts module and starts mutual exclusion conflict service groups as much as possible by optimization starting algorithm, and starts this service groups by optimization starting algorithm; Wherein, maximize starting algorithm and refer to: the bootable server of one or more mutual exclusions conflict service groups existing from this service groups, pick out with this service groups and can start the corresponding mutual exclusion of the nonoverlapping startup of server of the server service groups of conflicting; Optimization starting algorithm starts mutual exclusion conflict service groups or corresponding service group refers to: from multiple start to find out server start mutual exclusion conflict service groups or the highest server of corresponding service group priority or start at unique server that starts, then server record, delete from starting the record that has started server.
Further,
Conflict service groups is searched module according to the look-up command of described conflict service groups, corresponding service group is not existed the lookup result of mutual exclusion conflict service groups to return to can to open equipment and search module;
The equipment that can open is searched module and is not existed according to corresponding service group the lookup result of mutual exclusion conflict service groups, starts module output optimization start service groups instruction to service groups;
Service groups starts module and starts corresponding service groups according to the optimization startup service groups instruction of input by optimization starting algorithm.
Further,
If the equipment that can open is searched module and searched this service groups and only have a bootable server, start module output to service groups and on given server, start service groups instruction;
Described service groups starts module according to start service groups instruction on given server, directly on given server, starts corresponding service groups.
The present invention is in conjunction with server resource limited in cluster, and according to the mutual exclusion conflict relationship between service groups in cluster, first utilization maximization starting algorithm starts service groups as much as possible; On this basis, utilize the priority difference that service groups starts on the period of service to realize the startup of service groups optimization.So both ensured that cluster provided maximum business service, also ensured cluster performance maximum efficiency simultaneously.
Brief description of the drawings
Fig. 1 is the flow chart of realizing the embodiment of the method that in high availability cluster, service groups starts of the present invention;
Fig. 2 is the flow chart of optimization starting algorithm example in Fig. 1 embodiment of the method flow process;
Fig. 3 is the structured flowchart of realizing the device embodiment that in high availability cluster, service groups starts of the present invention.
Embodiment
Below in conjunction with accompanying drawing and preferred embodiment, technical scheme of the present invention is described in detail.Should be appreciated that, the embodiment below enumerating is only for description and interpretation the present invention, and do not form the restriction to technical solution of the present invention.
The present invention, in the time starting certain group, first judges the existing how many available startup servers of this group; If only there is a server, directly service groups be enabled on this server; If there are multiple servers that start, need the startup of the mutual exclusion conflict service groups (being called for short conflict service groups) of considering this service groups, the service groups if this service groups is not conflicted, can directly utilize optimization starting algorithm to start this service groups; If there is conflict service groups,, after taking into full account and mutual exclusion conflict service groups as much as possible is started, start this service groups, realization maximizes and starts.
The embodiment of the method that realizes service groups startup in high availability cluster of the present invention, comprising:
In the time having service groups to start, if judge there are multiple bootable servers in this service groups, and this service groups exists mutual exclusion conflict service groups,, starting after mutual exclusion conflict service groups as much as possible, starts this service groups.
In said method embodiment,
Start mutual exclusion conflict service groups as much as possible by maximizing starting algorithm and/or optimization starting algorithm, and start this service groups by optimization starting algorithm;
Wherein, maximize starting algorithm and refer to the bootable server of one or more mutual exclusions conflict service groups existing from this service groups, pick out with this service groups and can start the corresponding mutual exclusion of the nonoverlapping startup of server of the server service groups of conflicting; Optimization starting algorithm starts mutual exclusion conflict service groups or corresponding service group refers to: from multiple start to find out server start mutual exclusion conflict service groups or the highest server of corresponding service group priority or start at unique server that starts, then server record, delete from starting the record that has started server.
In said method embodiment,
If judge there are multiple bootable servers in this service groups, and this service groups do not exist mutual exclusion conflict service groups, directly starts this service groups by optimization starting algorithm.
In said method embodiment,
If judge only there is a bootable server in this service groups, directly on this server, starts this service groups.
Fig. 1 has represented the above-mentioned flow process that realizes the embodiment of the method that in high availability cluster, service groups starts, and comprises the steps:
101: have service groups to start;
102: judging for this service groups whether have multiple servers that start, is to carry out next step, otherwise execution step 114;
103: the A that records that preserves this service groups and can start server;
104: judging for this service groups whether have mutual exclusion conflict service groups (being called for short conflict service groups), is to carry out next step, otherwise execution step 113;
105: the record of Polling conflict service groups, and obtain one of them conflict service groups;
106: judge whether this conflict service groups exists multiple servers that start, and is to carry out next step, otherwise execution step 112;
107: the B that records that preserves this conflict service groups and can start server;
108: judge that this records B and whether has other server recording beyond A, is to return to step 105 to carry out, otherwise carries out next step;
109: carry out optimization starting algorithm and start this conflict service groups;
110: from record A, delete the server record having started;
111: judgement is recorded bootable number of servers in A and whether is greater than 1, is to return to step 105 to carry out, otherwise execution step 113;
112: on corresponding server, start this conflict service groups, execution step 110;
113: carry out optimization starting algorithm and start this service groups, process ends;
114: directly on corresponding server, start this service groups, process ends.
Fig. 2 has represented the flow process of step 109 in Fig. 1 embodiment of the method flow process, 113 execution optimization starting algorithm examples, comprises the steps:
210: judgement records in A whether have multiple servers that start, and is to carry out next step, otherwise execution step 230;
220: find out and start the highest server of corresponding service groups priority from multiple the startup server of recording A;
At this, start the highest server of corresponding service groups priority and refer to that having got rid of being best suited for of interdynamic factor starts that server that moves corresponding service group.
230: on the server of selecting, start corresponding service groups;
240: from record A, delete the server record that has started service groups, process ends.
The present invention is directed to said method embodiment, correspondingly also provide and realized the device embodiment that in high availability cluster, service groups starts, comprise that the service groups connecting successively starts module, the equipment that can open searches module and conflict service groups is searched module, wherein:
The equipment that can open is searched module, in the time having service groups to start, has multiple bootable servers if find this service groups, searches the look-up command of module output conflict service groups to conflict service groups; If conflict service groups is searched module and returned to corresponding mutual exclusion conflict service groups, start the enabled instruction of module output conflict service groups to service groups;
Conflict service groups is searched module, returns for the mutual exclusion conflict service groups of the corresponding service group finding being searched to module to the equipment that can open according to the conflict service groups look-up command of input;
Service groups starts module, conflicts after service groups in startup mutual exclusion as much as possible for the mutual exclusion conflict service groups enabled instruction according to input, starts this service groups.
In said apparatus embodiment,
Service groups starts module and starts mutual exclusion conflict service groups as much as possible by optimization starting algorithm, and starts this service groups by optimization starting algorithm; Wherein, maximize starting algorithm and refer to the bootable server of one or more mutual exclusions conflict service groups existing from this service groups, pick out with this service groups and can start the corresponding mutual exclusion of the nonoverlapping startup of server of the server service groups of conflicting; Optimization starting algorithm starts mutual exclusion conflict service groups or corresponding service group refers to: from multiple start to find out server start mutual exclusion conflict service groups or the highest server of corresponding service group priority or start at unique server that starts, then server record, delete from starting the record that has started server.
In said apparatus embodiment,
Conflict service groups is searched module according to the conflict service groups look-up command of input, corresponding service group is not existed the lookup result of mutual exclusion conflict service groups to return to can to open equipment and search module;
The equipment that can open is searched module and is searched corresponding service group that module returns and do not exist the lookup result of mutual exclusion conflict service groups according to conflict service groups, starts module output optimization start service groups instruction to service groups;
Service groups starts module and starts corresponding service groups according to the optimization startup service groups instruction of input by optimization starting algorithm.
In said apparatus embodiment,
If the equipment that can open is searched module and searched this service groups and only have a bootable server, start module output to service groups and on given server, start service groups instruction;
Service groups start module according to input on given server, start service groups instruction, directly on given server, start corresponding service groups.
The present invention is in conjunction with limited server resource, and according to the mutual exclusion conflict relationship between service groups, first utilization maximizes starting algorithm the method that starts service groups that maximizes is provided; On this basis, the priority of utilizing service groups to start on the period of service is different, realizes optimization and starts service groups.Ensure that so high availability cluster can provide business service as much as possible, ensures the maximized usefulness of cluster with this.
For those skilled in the art; understanding after content of the present invention and principle; can be in the situation that not deviating from the principle and scope of the present invention; the method according to this invention is carried out various corrections and the change in form and details, but these based on correction of the present invention and change still within claim protection range of the present invention.

Claims (6)

1. realize the method that in high availability cluster, service groups starts, it is characterized in that, comprising:
In the time having service groups to start, if judge there are multiple bootable servers in this service groups, and this service groups exists mutual exclusion conflict service groups,, starting after mutual exclusion conflict service groups as much as possible, starts this service groups;
Judge that if described this service groups exists multiple bootable servers, and there is mutual exclusion conflict service groups in this service groups,, by maximizing starting algorithm and/or optimization starting algorithm starting after mutual exclusion conflict service groups as much as possible, start this service groups by described optimization starting algorithm;
Wherein, maximize starting algorithm and refer to the bootable server of one or more mutual exclusion conflict service groups existing from this service groups, pick out the service groups of conflicting with the corresponding mutual exclusion of the nonoverlapping startup of server of the bootable server of this service groups; Optimization starting algorithm starts mutual exclusion conflict service groups or corresponding service group refers to: from multiple start to find out server start described mutual exclusion conflict service groups or the highest server of described corresponding service group priority or carry out described startup at unique server that starts, then server record, delete from starting the record that has started server.
2. in accordance with the method for claim 1, it is characterized in that, also comprise:
If judge there are multiple bootable servers in this service groups, and this service groups do not exist mutual exclusion conflict service groups, directly starts this service groups by described optimization starting algorithm.
3. in accordance with the method for claim 1, it is characterized in that, also comprise:
If judge only there is a bootable server in this service groups, directly on this server, starts this service groups.
4. realize the device that in high availability cluster, service groups starts, comprise that the service groups connecting successively starts module, the equipment that can open searches module and conflict service groups is searched module, wherein:
The equipment that can open is searched module, in the time having service groups to start, has multiple bootable servers if find this service groups, searches the look-up command of module output conflict service groups to conflict service groups; If conflict service groups is searched module and returned to corresponding mutual exclusion conflict service groups, start the enabled instruction of module output conflict service groups to service groups;
Conflict service groups is searched module, returns for the mutual exclusion conflict service groups of the corresponding service group finding being searched to module to the equipment that can open according to the described conflict service groups look-up command of input;
Service groups starts module, for conflicting after service groups in startup mutual exclusion as much as possible according to the described conflict service groups enabled instruction of input, starts this service groups;
Described service groups starts module and starts mutual exclusion conflict service groups as much as possible by optimization starting algorithm, and starts this service groups by optimization starting algorithm; Wherein, maximize starting algorithm and refer to the bootable server of one or more mutual exclusions conflict service groups existing from this service groups, pick out with this service groups and can start the corresponding mutual exclusion of the nonoverlapping startup of server of the server service groups of conflicting; Described optimization starting algorithm starts mutual exclusion conflict service groups or corresponding service group refers to: from multiple start to find out server start mutual exclusion conflict service groups or the highest server of corresponding service group priority or start at unique server that starts, then server record, delete from starting the record that has started server.
5. according to device claimed in claim 4, it is characterized in that,
Described conflict service groups is searched module according to the look-up command of described conflict service groups, does not exist the lookup result of mutual exclusion conflict service groups to return to corresponding service group and describedly can open equipment and search module;
Describedly open equipment and search module and do not exist according to described corresponding service group the lookup result of mutual exclusion conflict service groups, start module output optimization to described service groups and start service groups instruction;
Described service groups starts module and starts corresponding service groups according to the described optimization startup service groups instruction of input by described optimization starting algorithm.
6. according to device claimed in claim 4, it is characterized in that,
If the equipment that opens described is searched module and is searched this service groups and only have a bootable server, starts module output to described service groups and on given server, starts service groups instruction;
Described service groups starts module and on given server, starts service groups instruction according to described, directly on given server, starts corresponding service groups.
CN201210012833.0A 2012-01-16 2012-01-16 Method and device for starting service group in high-availability cluster Active CN102571965B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210012833.0A CN102571965B (en) 2012-01-16 2012-01-16 Method and device for starting service group in high-availability cluster

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210012833.0A CN102571965B (en) 2012-01-16 2012-01-16 Method and device for starting service group in high-availability cluster

Publications (2)

Publication Number Publication Date
CN102571965A CN102571965A (en) 2012-07-11
CN102571965B true CN102571965B (en) 2014-08-13

Family

ID=46416425

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210012833.0A Active CN102571965B (en) 2012-01-16 2012-01-16 Method and device for starting service group in high-availability cluster

Country Status (1)

Country Link
CN (1) CN102571965B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106559441B (en) * 2015-09-25 2020-09-04 华为技术有限公司 Virtual machine monitoring method, device and system based on cloud computing service
CN109587223B (en) * 2018-11-20 2021-09-07 北京奇艺世纪科技有限公司 Data aggregation method, device and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7181574B1 (en) * 2003-01-30 2007-02-20 Veritas Operating Corporation Server cluster using informed prefetching
CN101699882A (en) * 2009-10-21 2010-04-28 深圳华为通信技术有限公司 Method, device and system for implementing interaction between color ring back tone service and supplementary service
CN102238487A (en) * 2010-05-07 2011-11-09 北京信威通信技术股份有限公司 Multimedia cluster scheduling system and method thereof
CN102255960A (en) * 2011-06-28 2011-11-23 用友软件股份有限公司 Single-point service processing device and single-point service processing method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7555746B2 (en) * 2004-12-09 2009-06-30 Sap Ag System and method for registering native libraries with non-native enterprise program code

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7181574B1 (en) * 2003-01-30 2007-02-20 Veritas Operating Corporation Server cluster using informed prefetching
CN101699882A (en) * 2009-10-21 2010-04-28 深圳华为通信技术有限公司 Method, device and system for implementing interaction between color ring back tone service and supplementary service
CN102238487A (en) * 2010-05-07 2011-11-09 北京信威通信技术股份有限公司 Multimedia cluster scheduling system and method thereof
CN102255960A (en) * 2011-06-28 2011-11-23 用友软件股份有限公司 Single-point service processing device and single-point service processing method

Also Published As

Publication number Publication date
CN102571965A (en) 2012-07-11

Similar Documents

Publication Publication Date Title
CN109314671B (en) Accelerator resource allocation and pooling
CN102142032B (en) Method and system for reading and writing data of distributed file system
CN105933376A (en) Data manipulation method, server and storage system
CN106528893B (en) Data synchronization method and device
CN103605764A (en) Web crawler system and web crawler multitask executing and scheduling method
CN104572727A (en) Data querying method and device
CN103873451A (en) Data synchronization method, equipment and system
CN105518641A (en) Method, device, and system for peer-to-peer data replication and method, device, and system for master node switching
US20130247038A1 (en) Device-integration method, terminal-apparatus, and distributed multi-terminal-apparatus system
CN102937964A (en) Intelligent data service method based on distributed system
CN102123084A (en) Resource scheduling method and system in cloud computing operating system
CN107562803B (en) Data supply system and method and terminal
CN102541750A (en) Implementation method and device for data snapshot
CN102571965B (en) Method and device for starting service group in high-availability cluster
CN109327321B (en) Network model service execution method and device, SDN controller and readable storage medium
US9753769B2 (en) Apparatus and method for sharing function logic between functional units, and reconfigurable processor thereof
CN110008030A (en) A kind of method of metadata access, system and equipment
CN112860412B (en) Service data processing method and device, electronic equipment and storage medium
US9690728B1 (en) Burst buffer appliance comprising multiple virtual machines
CN106293509A (en) Date storage method and system
CN103064749A (en) Inter-process communication method
CN102521155B (en) Method and device for realizing table item dynamic allocation on physical storage
CN106709056A (en) Nfs mounted directory exporting method and device
CN102833295A (en) Data manipulation method and device in distributed cache system
CN108874798B (en) Big data sorting method and 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