CN103200225A - Method and system of centralized management of services in server cluster - Google Patents
Method and system of centralized management of services in server cluster Download PDFInfo
- Publication number
- CN103200225A CN103200225A CN2013100577014A CN201310057701A CN103200225A CN 103200225 A CN103200225 A CN 103200225A CN 2013100577014 A CN2013100577014 A CN 2013100577014A CN 201310057701 A CN201310057701 A CN 201310057701A CN 103200225 A CN103200225 A CN 103200225A
- Authority
- CN
- China
- Prior art keywords
- service
- starts
- management
- server
- management 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.)
- Granted
Links
Images
Landscapes
- Hardware Redundancy (AREA)
- Telephonic Communication Services (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a method and a system of centralized management of services in a server cluster. A main management service is generated among management services on the servers of the server cluster in an election mode. The main management service acquires the physical resources, the service resources and the physical property of all the servers in the server cluster. The main management service distributes the services according to a preset service starting rule, and carries out the centralized management of the services. A framework of carrying out accurate distribution and controlling service starting in the server cluster is provided, the centralized management of the services is achieved, and the problems of complex communication among the services due to the fact that software of the class of a cloud computing platform needs to start a great number of services, and occupies a great number of resources are solved.
Description
Technical field
The present invention relates to the service management technology field, relate in particular to the centralized management method and system of serving in a kind of server cluster.
Background technology
Server cluster just refers to a lot of server centered are got up to carry out together with a kind of service, similarly is to have only a server in client.Thereby cluster can utilize a plurality of computers to carry out parallel computation and obtain very high computational speed, also can backup with a plurality of computers, still can normally move thereby make any one machine break whole system.
In the software of cloud computing platform class, need start a large amount of services for each server in the server cluster, if all start a large amount of resource that all services can take on every station server, and if communicate between each service and also can cause communication complicated, restive.
Summary of the invention
(1) technical problem that will solve
At above-mentioned defective, the technical problem to be solved in the present invention is how accurately to distribute, control the framework that service starts in server cluster, realizes the centralized management to service.
(2) technical scheme
For addressing the above problem, the invention provides the centralized management method of serving in a kind of server cluster, described method comprises:
S1: elect the main management service between the management service on the server in the cluster;
S2: physical resource, Service Source and the physical attribute of Servers-all in the described cluster obtained in described main management service;
S3: described main management service starts regular allocation service, the centralized management of serving according to default service.
Preferably, each server in the described cluster starts a management service, the service state on the described management service control book server, and described service state comprises: service starts, service is closed and service detection.
Preferably, described default service starts rule and comprises: the quantity that the service of formulation starts, service start the requirement of physical resource and service are started requirement to physical attribute.
Preferably, described service startup specifically comprises:
Described main management service starts rule according to described default service and determines that service state is the server that service starts, and sends the order that service starts to described service state for the management service on the server of service startup;
Described management service receives described order, starts service, and whether described management service is started successful result sends to described main management service.
Preferably, described service detection specifically comprises:
The startup of server service detection that described service state starts for service lost efficacy if described service starts failure or starts the back, and described management service sends service failure message to described main management service;
Described main management service receives described service failure message, and reselects the startup of server management service according to described default service startup rule.
For addressing the above problem, the present invention also provides the centralized management system of serving in a kind of server cluster, and described system specifically comprises: generation unit, acquiring unit and allocation units;
Described generation unit is used for electing the main management service between the management service on the server of cluster;
Described acquiring unit is used for physical resource, Service Source and physical attribute that described cluster Servers-all is obtained in described main management service;
Described allocation units are used for described main management service and start regular allocation service, the centralized management of serving according to default service.
Preferably, it is characterized in that each server in the described cluster starts a management service, the service state on the described management service control book server, described service state comprises: service starts, service is closed and service detection.
Preferably, it is characterized in that described service startup specifically comprises:
Described main management service starts rule according to described default service and determines that service state is the server that service starts, and sends the order that service starts to described service state for the management service on the server of service startup;
Described management service receives described order, starts service, and whether described management service is started successful result sends to described main management service.
Preferably, described service detection specifically comprises:
The startup of server service detection that described service state starts for service lost efficacy if described service starts failure or starts the back, and described management service sends service failure message to described main management service;
Described main management service receives described service failure message, and reselects the startup of server management service according to described default service startup rule.
(3) beneficial effect
The present invention proposes the centralized management method and system of serving in a kind of server cluster, by in server cluster, accurately distributing, control the framework that service starts, realization is to the centralized management of service, the software that has solved the cloud computing platform class need start a large amount of services, take a large amount of resources, cause the complicated problems of communicating by letter between the service.
Description of drawings
Fig. 1 is the flow chart of the centralized management method of serving in a kind of server cluster of the embodiment of the invention one;
Fig. 2 is the composition schematic diagram of the centralized management system of serving in a kind of server cluster of the embodiment of the invention two.
Embodiment
Below in conjunction with drawings and Examples, the specific embodiment of the present invention is described in further detail.Following examples are used for explanation the present invention, but are not used for limiting the scope of the invention.
Embodiment one
The centralized management method of serving in a kind of server cluster is provided in the embodiment of the invention one, and steps flow chart specifically may further comprise the steps as shown in Figure 1:
Step S1: elect the main management service between the management service on the server in the cluster.
Each server (being called node) in the cluster starts a management service (being called client), the service state on management service (client) the control book server, and described service state comprises: service starts, service is closed and service detection.
Wherein, the service startup specifically comprises:
The default service of main management service basis starts rule and determines that service state is the server that service starts, and sends the order that service starts to service state for the management service on the server of service startup;
Management service receives order, starts service, and whether management service is started successful result sends to the main management service.
Service detection specifically comprises:
The startup of server service detection that service state starts for service lost efficacy if service starts failure or starts the back, and management service sends service failure message to the main management service;
The main management service receives service failure message, and reselects the startup of server management service according to default service startup rule.
Elect main management service (leader) between the management service (client).After (inefficacy), produce new main management service (leader) from re-electing between other the management service (client) in case main management service (leader) is died again, replace the management work of original main management service (leader).Establish a communications link between management service (client) on the server in the cluster (node) and the main management service (leader) (as TCP), do not need to establish a communications link between each management service (client), therefore saved a part of network connection.
Step S2: physical resource, Service Source and the physical attribute of Servers-all in the cluster (node) obtained in main management service (leader).
Step S3: main management service (leader) starts regular allocation service, the centralized management of serving according to default service.
Wherein default service starts rule and comprises: the quantity that the service of formulation starts, service start the requirement of physical resource and service are started requirement to physical attribute.Arranging of concrete quantity setting, resource requirement and attribute specification is more flexible, is to set according to concrete requirement.
Pass through said method, by in server cluster, accurately distributing, control the framework that service starts, realize that the software that has solved the cloud computing platform class need start a large amount of services to the centralized management of service, take a large amount of resources, cause the complicated problems of communicating by letter between the service.
Embodiment two
For achieving the above object, the centralized management system of serving in a kind of server cluster also is provided in the embodiments of the invention two, form schematic diagram as shown in Figure 2, specifically comprise:
Each server in the cluster starts a management service, the service state on the management service control book server, and service state comprises: service starts, service is closed and service detection.
The service startup specifically comprises:
The default service of main management service basis starts rule and determines that service state is the server that service starts, and sends the order that service starts to service state for the management service on the server of service startup;
Management service receives order, starts service, and whether management service is started successful result sends to the main management service.
Service detection specifically comprises:
The startup of server service detection that service state starts for service lost efficacy if service starts failure or starts the back, and management service sends service failure message to the main management service;
The main management service receives service failure message, and reselects the startup of server management service according to default service startup rule.
Acquiring unit 22 is used for physical resource, Service Source and physical attribute that the cluster Servers-all is obtained in the main management service.
By using said system, by in server cluster, accurately distributing, control the framework that service starts, realize that the software that has solved the cloud computing platform class need start a large amount of services to the centralized management of service, take a large amount of resources, cause the complicated problems of communicating by letter between the service.
Above execution mode only is used for explanation the present invention; and be not limitation of the present invention; the those of ordinary skill in relevant technologies field; under the situation that does not break away from the spirit and scope of the present invention; can also make a variety of changes and modification; therefore all technical schemes that are equal to also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.
Claims (10)
1. the centralized management method of serving in the server cluster is characterized in that described method specifically comprises:
S1: elect the main management service between the management service on the server in the cluster;
S2: physical resource, Service Source and the physical attribute of Servers-all in the described cluster obtained in described main management service;
S3: described main management service starts regular allocation service, the centralized management of serving according to default service.
2. the method for claim 1, it is characterized in that, each server in the described cluster starts a management service, the service state on the described management service control book server, and described service state comprises: service starts, service is closed and service detection.
3. the method for claim 1 is characterized in that, establishes a communications link between the management service on the server in the described cluster and the described main management service, does not need between each management service to establish a communications link.
4. the method for claim 1 is characterized in that, described default service starts rule and comprises: the quantity that the formulation service starts, service start the requirement of physical resource and serve the requirement that starts physical attribute.
5. method as claimed in claim 2 is characterized in that, described service startup specifically comprises:
Described main management service starts rule according to described default service and determines that service state is the server that service starts, and sends the order that service starts to described service state for the management service on the server of service startup;
Described management service receives described order, starts service, and whether described management service is started successful result sends to described main management service.
6. method as claimed in claim 2 is characterized in that, described service detection specifically comprises:
The startup of server service detection that described service state starts for service lost efficacy if described service starts failure or starts the back, and described management service sends service failure message to described main management service;
Described main management service receives described service failure message, and reselects the startup of server management service according to described default service startup rule.
7. the centralized management system of serving in the server cluster is characterized in that described system comprises: generation unit, acquiring unit and allocation units;
Described generation unit is used for electing the main management service between the management service on the server of cluster;
Described acquiring unit is used for physical resource, Service Source and physical attribute that described cluster Servers-all is obtained in described main management service;
Described allocation units are used for described main management service and start regular allocation service, the centralized management of serving according to default service.
8. system as claimed in claim 7, it is characterized in that, each server in the described cluster starts a management service, the service state on the described management service control book server, and described service state comprises: service starts, service is closed and service detection.
9. system as claimed in claim 8 is characterized in that, described service startup specifically comprises:
Described main management service starts rule according to described default service and determines that service state is the server that service starts, and sends the order that service starts to described service state for the management service on the server of service startup;
Described management service receives described order, starts service, and whether described management service is started successful result sends to described main management service.
10. system as claimed in claim 8 is characterized in that, described service detection specifically comprises:
The startup of server service detection that described service state starts for service lost efficacy if described service starts failure or starts the back, and described management service sends service failure message to described main management service;
Described main management service receives described service failure message, and reselects the startup of server management service according to described default service startup rule.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310057701.4A CN103200225B (en) | 2013-02-25 | 2013-02-25 | The centralized management method and system of service in a kind of server cluster |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310057701.4A CN103200225B (en) | 2013-02-25 | 2013-02-25 | The centralized management method and system of service in a kind of server cluster |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103200225A true CN103200225A (en) | 2013-07-10 |
CN103200225B CN103200225B (en) | 2016-12-28 |
Family
ID=48722580
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310057701.4A Expired - Fee Related CN103200225B (en) | 2013-02-25 | 2013-02-25 | The centralized management method and system of service in a kind of server cluster |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103200225B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109995669A (en) * | 2019-04-09 | 2019-07-09 | 深圳前海微众银行股份有限公司 | Distributed current-limiting method, device, equipment and readable storage medium storing program for executing |
CN112181501A (en) * | 2020-09-02 | 2021-01-05 | ***股份有限公司 | Service framework of application, service control method, device and computer readable storage medium |
CN113326108A (en) * | 2020-02-28 | 2021-08-31 | 北京沃东天骏信息技术有限公司 | Method and device for managing application service |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040064558A1 (en) * | 2002-09-26 | 2004-04-01 | Hitachi Ltd. | Resource distribution management method over inter-networks |
CN101719865A (en) * | 2009-11-12 | 2010-06-02 | 上海众恒信息产业有限公司 | Data processing method for centralized login of a plurality of users |
CN102902594A (en) * | 2012-09-28 | 2013-01-30 | 用友软件股份有限公司 | Resource management system and resource management method |
-
2013
- 2013-02-25 CN CN201310057701.4A patent/CN103200225B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040064558A1 (en) * | 2002-09-26 | 2004-04-01 | Hitachi Ltd. | Resource distribution management method over inter-networks |
CN101719865A (en) * | 2009-11-12 | 2010-06-02 | 上海众恒信息产业有限公司 | Data processing method for centralized login of a plurality of users |
CN102902594A (en) * | 2012-09-28 | 2013-01-30 | 用友软件股份有限公司 | Resource management system and resource management method |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109995669A (en) * | 2019-04-09 | 2019-07-09 | 深圳前海微众银行股份有限公司 | Distributed current-limiting method, device, equipment and readable storage medium storing program for executing |
CN109995669B (en) * | 2019-04-09 | 2024-05-03 | 深圳前海微众银行股份有限公司 | Distributed current limiting method, device, equipment and readable storage medium |
CN113326108A (en) * | 2020-02-28 | 2021-08-31 | 北京沃东天骏信息技术有限公司 | Method and device for managing application service |
CN112181501A (en) * | 2020-09-02 | 2021-01-05 | ***股份有限公司 | Service framework of application, service control method, device and computer readable storage medium |
CN112181501B (en) * | 2020-09-02 | 2024-02-23 | ***股份有限公司 | Service framework of application, service control method, device and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN103200225B (en) | 2016-12-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11307943B2 (en) | Disaster recovery deployment method, apparatus, and system | |
EP2796996B1 (en) | Cloud infrastructure based management system and method for performing maintenance and deployment for application system | |
CN105939290B (en) | A kind of method and device for distributing resource | |
WO2016206456A1 (en) | Physical machine upgrading method, service migration method and apparatus | |
US20110296000A1 (en) | Systems and methods for exporting usage history data as input to a management platform of a target cloud-based network | |
CN104572274A (en) | Cross-cloud-node migration system and cross-cloud-node migration method | |
CN103986786A (en) | Remote cloud desktop operation system | |
CN104935672A (en) | High available realizing method and equipment of load balancing service | |
CN105159775A (en) | Load balancer based management system and management method for cloud computing data center | |
CN106100894A (en) | A kind of highly reliable cluster operation management method | |
CN103957237A (en) | Architecture of elastic cloud | |
CN106603696A (en) | High-availability system based on hyper-converged infrastructure | |
CN107682411A (en) | A kind of extensive SDN controllers cluster and network system | |
CN105704054A (en) | Data center network flow migration method and system thereof | |
CN102932455A (en) | Construction method based on cloud computing render farms | |
WO2016095524A1 (en) | Resource allocation method and apparatus | |
JP2016119583A (en) | Ip telephone network system, server, ip exchange unit and resource capacity expansion method | |
CN104468633A (en) | SDN southing security proxy product | |
CN110661641A (en) | Virtual network function VNF deployment method and device | |
CN105718299A (en) | Virtual machine configuration method, device and system | |
CN102833092A (en) | Method and system for managing cloud nodes and central server | |
CN104811403A (en) | Openflow-based group table processing method and device and group table configuration unit | |
CN104753707A (en) | System maintenance method and network switching equipment | |
CN103200225A (en) | Method and system of centralized management of services in server cluster | |
CN105491061A (en) | Access control system and method |
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 | ||
PP01 | Preservation of patent right | ||
PP01 | Preservation of patent right |
Effective date of registration: 20180823 Granted publication date: 20161228 |
|
PD01 | Discharge of preservation of patent | ||
PD01 | Discharge of preservation of patent |
Date of cancellation: 20210823 Granted publication date: 20161228 |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20161228 Termination date: 20190225 |