CN103647830B - The dynamic management approach of multi-level configuration file in a kind of cluster management system - Google Patents

The dynamic management approach of multi-level configuration file in a kind of cluster management system Download PDF

Info

Publication number
CN103647830B
CN103647830B CN201310678144.8A CN201310678144A CN103647830B CN 103647830 B CN103647830 B CN 103647830B CN 201310678144 A CN201310678144 A CN 201310678144A CN 103647830 B CN103647830 B CN 103647830B
Authority
CN
China
Prior art keywords
cluster
node
configuration file
dynamic
tree
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
CN201310678144.8A
Other languages
Chinese (zh)
Other versions
CN103647830A (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 Cloud Information Technology Co Ltd
Original Assignee
Inspur 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 Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201310678144.8A priority Critical patent/CN103647830B/en
Publication of CN103647830A publication Critical patent/CN103647830A/en
Application granted granted Critical
Publication of CN103647830B publication Critical patent/CN103647830B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention provides a kind of dynamic management approach of multi-level configuration file in cluster management system, when starting cluster, is set at many levels according to cluster configuration file information initializing;In cluster operation, dynamic modification configuration file is needed according to user and it is managed;When node failure recovers again, fault-tolerance protection is carried out to the configuration file of dynamic modification.The dynamic management approach of multi-level configuration file is compared to the prior art in a kind of cluster management system, the sustainable operation of guarantee business, changes traditional modification in units of cluster or group, reduces the degree of coupling between node, realize that multinode multitask is operated simultaneously, improve the performance of system.

Description

The dynamic management approach of multi-level configuration file in a kind of cluster management system
Technical field
The present invention relates to Computer Applied Technology field, multi-level configuration text in specifically a kind of cluster management system The dynamic management approach of part.
Background technology
Comprising the management to multiple service groups in high-availability cluster management system, each group has multiple resources and monitoring to provide Source.Cluster, group, resource, monitoring resource, server and cluster management policy information are have recorded in cluster configuration file, is cluster Unique foundation of management.Traditional configuration file management is static management, it is desirable to after cluster starts, can not change configuration file, Unless re-synchronization configuration file after cluster is stopped, restarting cluster.Service operation is so not only interrupted, it is impossible to which offer can Continuation is protected, and is also increased many manual operations, is easily produced mistake.
The content of the invention
The technical assignment of the present invention is that there is provided multi-level configuration in a kind of cluster management system for solution the deficiencies in the prior art The dynamic management approach of file.
The technical scheme is that realize in the following manner, multi-level configuration file in a kind of cluster management system Dynamic management approach, its specific dynamic management process is:
The dynamic management module of multi-level configuration file is set:Initialization module, dynamic management module and fault-tolerant module, three Person, by reading cluster configuration file, is that configuration change carries out communication negotiation, cooperation completes the generation and change of configuration.
Cluster starts, and initialization module reading configuration file information simultaneously builds multi-level cluster tree, is done directly collection flock mating Put the dynamic management configuration of file.
In cluster operation, dynamic management module is used to enter cluster tree Mobile state management:Dynamic modification is needed according to user Information traversal tree, modifies, and be synchronized to the node of other in cluster from smallest particles degree to configuration file.
When node failure recovers again, fault-tolerant module is used for file-level disaster tolerance:When node failure recovers again, recover Node sends message to operation node and obtains newest configuration file, it is ensured that the uniformity of each node profile information of cluster, Complete to carry out fault-tolerance protection to the configuration file of dynamic modification.
Cluster, group, resource and monitoring resource node in high-availability cluster management system are expressed as by the initialization module " multi-level " tree, the tree is the logic graph structure based on GOM model constructions.
One tree is divided into some levels by Multilevel tree-model, and each layer of subtree depth is not more than 2, and tree interior joint has two Type, one kind is expanding node, resource and monitoring resource in correspondence cluster;Another is non-expanding node, correspondence collection Cluster and group in group.
Above-mentioned each node contains one group of operation primitive and attribute configuration:Operation primitive is described for node or subtree Dynamic change operation, these operation include increase Add, delete Delete, upgrading Upgrade, degradation Degrade, replacement Replace and duplication Clone;Attribute configuration describes cluster, group, resource and the attribute for monitoring resource node, with current cluster Profile information correspond, while describe the node whether the health value that can be communicated with other nodes.
Produced beneficial effect is the present invention compared with prior art:
The dynamic management approach of multi-level configuration file can be realized to cluster in a kind of cluster management system of the present invention The dynamic management of configuration file, and the group and resource node in cluster configuration file are pressed by distinguishing hierarchy by this method, can To change multiple resources and Resource Properties simultaneously in less granularity, the dynamic and intelligent management of enhancing cluster changes tradition The modification in units of cluster or group.Cluster is built with multi-level tree construction, the degree of coupling between node is reduced, so that real Existing multinode multitask is operated simultaneously, improves the performance of system.It is practical, it is easy to promote.
Brief description of the drawings
Accompanying drawing 1 is the multi-level tree construction schematic diagram of cluster of the present invention.
Accompanying drawing 2 is the dynamic management and dispatching schematic diagram of configuration file of the present invention.
Accompanying drawing 3 is the increase group resource schematic diagram of the present invention.
Embodiment
Below in conjunction with the accompanying drawings to the dynamic management approach of multi-level configuration file in a kind of cluster management system of the present invention It is described in detail below.
The present invention provides a kind of dynamic management approach of multi-level configuration file in cluster management system, it is possible to achieve to collection The dynamic management of group profile, and the group and resource node in cluster configuration file are pressed by distinguishing hierarchy by this method, Multiple resources and Resource Properties, the dynamic and intelligent management of enhancing cluster can be changed simultaneously in less granularity.It is specifically moved State manages process:
The 1st, the dynamic management module of multi-level configuration file is set:Initialization module, dynamic management module and fault-tolerant module, Three, by reading cluster configuration file, is that configuration change carries out communication negotiation, cooperation completes the generation and change of configuration.
2nd, cluster starts, and initialization module reading configuration file information simultaneously builds multi-level cluster tree, is done directly cluster Configuration file dynamic management configuration.
Communicated in the above-mentioned technical solutions between node using the intercommunication primitive based on graph structure, it is to avoid direct generation Code is called, so as to realize the loose coupling of system.
Content of communciation between node uses JSON forms, using JSON forms can simplify node store information parsing and The difficulty parsed to returning result;Simultaneously using fixed JSON forms, details, the peace of strengthening system can be realized to external shield The difficulty that full property and reduction task triggering end is realized.
Configuration function based on graph structure allow user select using configuration file carry out dynamic configuration or In program directly carry out can prearranged dynamic configuration, add system flexibility.
3rd, in cluster operation, dynamic management module is used to enter cluster tree Mobile state management:Dynamic is needed to repair according to user Breath traversal tree is converted to, configuration file is modified from smallest particles degree, and be synchronized to the node of other in cluster.
In the technical scheme, without interrupting service run time, dynamic modification group and resource information;Repaiied with smallest particles degree Change, reduce and interacted with other nodes, improve systematic function;A variety of dynamic modification operations are supported, the flexible of system is improved Property.
4th, when node failure recovers again, fault-tolerant module is used for file-level disaster tolerance:It is extensive when node failure recovers again Knot cluster point sends message to operation node and obtains newest configuration file, it is ensured that each node profile information of cluster it is consistent Property, complete to carry out fault-tolerance protection to the configuration file of dynamic modification.
Further, above-mentioned steps combination accompanying drawing 1~3 is further depicted as:
Initialization module is used for when cluster starts, and reads configuration file and builds multi-level cluster tree, is done directly cluster Configuration file dynamic management configuration.
Cluster, group, resource and monitoring resource node in high-availability cluster management system are expressed as one by initialization module The tree of " multi-level ", this tree is to be based on GOM(Graph Oriented Model)The logic graph structure of model construction.This is patrolled The communication of adjacent layer can not be carried out using the various intercommunication primitives on figure using only family by collecting graph structure, and be carried for dynamic configuration A clearly framework is supplied.
One tree is divided into many levels by Multilevel tree-model, and each layer of subtree depth is not more than 2, then define one Subtree need to only determine its root node and child nodes.Tree interior joint has a two types, and one kind is expanding node, another It is non-expanding node, the node not extended is again in itself one tree.Such as Fig. 1, cluster tree Tree1 is divided into multi-level tree Tree2, wherein cluster in the resource and monitoring resource in expanding node correspondence cluster, non-expanding node correspondence cluster and Group.
Each node contains one group of operation primitive and attribute configuration.
Operation primitive describes the dynamic change operation for node or subtree, and these operations include:Increase Add, delete Delete, upgrading Upgrade, degradation Degrade, replacement Replace and duplication Clone.These configuration letters based on graph structure Number allows user to select to carry out dynamic configuration using configuration file or directly progress can be prearranged in a program Dynamic configuration, thus add system flexibility.As it is possible that in some cases, node dynamic configuration in the process of running Condition is constant, without described in configuration file in case in the future change.In addition, it is allowed in node using the configuration function of system To indefinitely adding new node also highly significant.New node passes through AddNode after necessary initial work is completed Function oneself will be articulated under some node of tree structure, can seamlessly embedded system without other work.New node Addition will not influence the running of its father node, as long as father node uses the intercommunication primitive based on graph structure completely.
Each node is only capable of communicating with its father node, child nodes and the brotgher of node, and can not get over layer communication, so does Purpose is strengthening system control, and when occurring dynamic configuration, the normal operation of system other parts is influenceed as few as possible.
On the one hand attribute configuration describes cluster, group, resource and the attribute for monitoring resource node, these attributes and current collection Group profile information is corresponded.On the other hand the communicable state of the node is described, i.e. whether the node can be with other The health value of node communication.The cluster attribute that its interior joint is included, as shown in table 1.
Dynamic management module is used to enter cluster tree Mobile state management, and the operation primitive of dynamic management process and node is close Correlation, is the operation to tree, herein without being described in detail.
Fault-tolerant module is used for file-level disaster tolerance.For example, in dual computer group, after opposite end is broken down, cluster configuration file is entered Go dynamic modification, opposite end is recovered again afterwards, but run thereon is configuration file before breaking down, causes two ends to differ Cause.Fault-tolerant module can cause reset terminal is sent to the node normally run to recover message, obtain newest profile information.
It is required that modification of each module to configuration file is exclusive mode, to safeguard the uniformity of cluster configuration file.
In a typical environment, the complete cluster of user configuring, synchronization profile and after starting cluster, first by first Beginningization module is set at many levels according to cluster configuration file information architecture, the root node storage cluster information of tree, below root node All non-child nodes storage group informations, the dependence between group and group is with layering, and the group node on upper strata depends on it Child's group node.All child nodes storage resources or monitoring resource information, the Father's Day of all child nodes in multi-level tree Put necessarily individual group node.Following table shows the cluster configuration file information of different type node storage.
Nodename Node attribute information
Cluster Cluster name, cluster IP, subnet mask, network partition parse, use heartbeat, Master Server Info, heartbeat timeout information, alerting service etc.
Group Group name, startup server, failover number of times, mutual exclusion group, group dependence
Resource Resource type, resource name, startup(Stop)Time-out time, startup(Stop)Failure number of retries, startup(Stop)The final action of failure, resource particular attribute
Monitor resource Monitoring resource type, monitoring resource name, interval, time-out time, number of retries, the stand-by period for starting monitoring, target resource
It is multi-level tree Tree2 by distinguishing hierarchy as shown in figure 1, cluster configuration file is built into cluster tree Tree1, Each layer of non-expanding node is all a group resource, the dependence between hierarchical relationship expression group between group and group.Group node Necessarily individual subtree, its child nodes are either dependence group or are group resource or group monitoring resource.Each layer is both extension Node is the necessarily resource or monitoring resource node of child nodes again.
In cluster operation, if user wants modification cluster configuration file, it is not necessary to first stop cluster and modify again. Only need to change cluster configuration file, click on " application " button, the information transmission that group system changes user gives cluster root section Point, reads modification information, and the dynamic management module agency of root node communicates association with each layer of dynamic management module agency Business, decision is modified in which layer, performs corresponding operation.As Fig. 3 shows dynamic addition group resource fipAdd, traversal tree A group failover1 nodes are found, fipAdd resources and resource information are increased by Addnode functions, and group resource information is existed It is synchronous on each node of cluster.
Embodiments of the invention are the foregoing is only, within the spirit and principles of the invention, that is made is any Modification, equivalent substitution, improvement etc., should be included in the scope of the protection.

Claims (1)

1. a kind of dynamic management approach of multi-level configuration file in cluster management system, it is characterised in that its specific dynamic management Process is:
The dynamic management module of multi-level configuration file is set:Initialization module, dynamic management module and fault-tolerant module, San Zhetong Reading cluster configuration file is crossed, is that configuration change carries out communication negotiation, cooperation completes the generation and change of configuration;
Cluster starts, and initialization module reading configuration file information simultaneously builds multi-level cluster tree, is done directly cluster configuration text Part dynamic management configuration;
In cluster operation, dynamic management module is used to enter cluster tree Mobile state management:Dynamic modification information is needed according to user Traversal tree, modifies, and be synchronized to the node of other in cluster from smallest particles degree to configuration file;
When node failure recovers again, fault-tolerant module is used for file-level disaster tolerance:When node failure recovers again, recovery nodes Message is sent to operation node and obtains newest configuration file, it is ensured that the uniformity of each node profile information of cluster, is completed Fault-tolerance protection is carried out to the configuration file of dynamic modification;
Cluster, group, resource and monitoring resource node in high-availability cluster management system are expressed as " multilayer by the initialization module It is secondary " tree, the tree is the logic graph structure based on GOM model constructions;
One tree is divided into some levels by Multilevel tree-model, and each layer of subtree depth is not more than 2, and tree interior joint has two species Type, one kind is expanding node, resource and monitoring resource in correspondence cluster;Another is non-expanding node, in correspondence cluster Cluster and group;
Above-mentioned each node contains one group of operation primitive and attribute configuration:Operation primitive is described for the dynamic of node or subtree State change operation, these operations include increase Add, delete Delete, upgrading Upgrade, degradation Degrade, replacement Replace With duplication Clone;Attribute configuration describes cluster, group, resource and the attribute for monitoring resource node, with current cluster configuration file Information correspond, while describe the node whether the health value that can be communicated with other nodes;
Communicated in the above-mentioned technical solutions between node using the intercommunication primitive based on graph structure;Content of communciation between node Using JSON forms;
New node after necessary initial work is completed, by AddNode functions by oneself be articulated to tree structure certain Under individual node, the addition of new node will not influence the running of its father node, as long as father node is completely using logical based on graph structure Believe primitive;Each node is only capable of communicating with its father node, child nodes and the brotgher of node, and can not get over layer communication.
CN201310678144.8A 2013-12-13 2013-12-13 The dynamic management approach of multi-level configuration file in a kind of cluster management system Active CN103647830B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310678144.8A CN103647830B (en) 2013-12-13 2013-12-13 The dynamic management approach of multi-level configuration file in a kind of cluster management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310678144.8A CN103647830B (en) 2013-12-13 2013-12-13 The dynamic management approach of multi-level configuration file in a kind of cluster management system

Publications (2)

Publication Number Publication Date
CN103647830A CN103647830A (en) 2014-03-19
CN103647830B true CN103647830B (en) 2017-09-15

Family

ID=50252984

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310678144.8A Active CN103647830B (en) 2013-12-13 2013-12-13 The dynamic management approach of multi-level configuration file in a kind of cluster management system

Country Status (1)

Country Link
CN (1) CN103647830B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10346586B2 (en) * 2014-06-05 2019-07-09 Siemens Healthcare Gmbh Protocol management system (PROMS)
CN104636208A (en) * 2015-02-12 2015-05-20 浪潮电子信息产业股份有限公司 Method for managing high-availability cluster resources
CN105045619B (en) * 2015-07-06 2018-07-10 普元信息技术股份有限公司 Multi-level multinode version distributed method based on fixed-bandwidth in cloud computing environment
CN105740408B (en) * 2016-01-28 2019-02-05 东软集团股份有限公司 The method and apparatus for calling hadoop cluster
CN106059798B (en) * 2016-05-18 2019-10-01 厦门市美亚柏科信息股份有限公司 A kind of multistratum management system based on node set
CN105933166A (en) * 2016-06-30 2016-09-07 北京奇艺世纪科技有限公司 Server management method and device
CN106301904A (en) * 2016-08-08 2017-01-04 无锡天脉聚源传媒科技有限公司 A kind of cluster server management method and device
CN106844681A (en) * 2017-01-25 2017-06-13 郑州云海信息技术有限公司 Configuration file synchronous method and managing main frame based on cluster file system
CN108600004B (en) * 2018-04-23 2021-11-02 北京奇艺世纪科技有限公司 Video server configuration management method and system
CN110851192B (en) * 2018-07-27 2024-08-16 北京京东尚科信息技术有限公司 Method and device for responding to degraded switch configuration
CN112416538B (en) * 2019-08-20 2024-05-07 中国科学院深圳先进技术研究院 Multi-level architecture and management method of distributed resource management framework
CN112035162B (en) * 2020-09-02 2024-06-21 中国银行股份有限公司 Configuration file batch modification method and device
CN112486513B (en) * 2020-11-25 2022-08-12 湖南麒麟信安科技股份有限公司 Container-based cluster management method and system
CN112732330A (en) * 2021-01-04 2021-04-30 浪潮云信息技术股份公司 Solr cluster configuration file modification method and system
CN113596190B (en) * 2021-07-23 2023-05-26 浪潮云信息技术股份公司 Application distributed multi-activity system and method based on Kubernetes
CN115714722B (en) * 2022-12-15 2023-09-08 中国西安卫星测控中心 Cluster network dynamic configuration method, device and system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1829973A (en) * 2003-07-31 2006-09-06 国际商业机器公司 Dynamically configurable fault tolerance in autonomic computing with multiple service points
CN101232515A (en) * 2008-02-25 2008-07-30 浪潮电子信息产业股份有限公司 Distributed type colony management control system based on LDAP
CN101883039A (en) * 2010-05-13 2010-11-10 北京航空航天大学 Data transmission network of large-scale clustering system and construction method thereof
CN102147809A (en) * 2011-03-22 2011-08-10 曙光信息产业股份有限公司 Parallel file system and management method thereof
CN102355413A (en) * 2011-08-26 2012-02-15 北京邮电大学 Method and system for unifying message space on large scale in real time
CN102855289A (en) * 2012-08-09 2013-01-02 浪潮电子信息产业股份有限公司 Method for dynamically modifying failover of storage unit by cluster file system
CN103051509A (en) * 2012-08-03 2013-04-17 北京航空航天大学 Tree-structure-based initialization method
CN103152416A (en) * 2013-03-04 2013-06-12 浪潮电子信息产业股份有限公司 Dynamic management method for improving high availability of online clustering group
CN103167041A (en) * 2013-03-28 2013-06-19 广州中国科学院软件应用技术研究所 System and method for supporting cloud environment application cluster automation deployment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1829973A (en) * 2003-07-31 2006-09-06 国际商业机器公司 Dynamically configurable fault tolerance in autonomic computing with multiple service points
CN101232515A (en) * 2008-02-25 2008-07-30 浪潮电子信息产业股份有限公司 Distributed type colony management control system based on LDAP
CN101883039A (en) * 2010-05-13 2010-11-10 北京航空航天大学 Data transmission network of large-scale clustering system and construction method thereof
CN102147809A (en) * 2011-03-22 2011-08-10 曙光信息产业股份有限公司 Parallel file system and management method thereof
CN102355413A (en) * 2011-08-26 2012-02-15 北京邮电大学 Method and system for unifying message space on large scale in real time
CN103051509A (en) * 2012-08-03 2013-04-17 北京航空航天大学 Tree-structure-based initialization method
CN102855289A (en) * 2012-08-09 2013-01-02 浪潮电子信息产业股份有限公司 Method for dynamically modifying failover of storage unit by cluster file system
CN103152416A (en) * 2013-03-04 2013-06-12 浪潮电子信息产业股份有限公司 Dynamic management method for improving high availability of online clustering group
CN103167041A (en) * 2013-03-28 2013-06-19 广州中国科学院软件应用技术研究所 System and method for supporting cloud environment application cluster automation deployment

Also Published As

Publication number Publication date
CN103647830A (en) 2014-03-19

Similar Documents

Publication Publication Date Title
CN103647830B (en) The dynamic management approach of multi-level configuration file in a kind of cluster management system
CN102693324B (en) Distributed database synchronization system, synchronization method and node management method
CN104184209A (en) User-side distributed energy power generation management system
CN104579791A (en) Method for achieving automatic K-DB main and standby disaster recovery cluster switching
CN106294713A (en) The method of data synchronization resolved based on Incremental Log and data synchronization unit
CN103780497B (en) Extendible distributed coordination service management under a kind of cloud platform
CN103457775B (en) A kind of high available virtual machine pond management system of based role
CN105681109A (en) Implementation method and framework of high availability cluster management system
CN102571452A (en) Multi-node management method and system
CN103345470A (en) Database disaster tolerance method, database disaster tolerance system and server
CN102918506A (en) System and method to define, visualize and manage a composite service group in a high-availability disaster recovery environment
CN103324715B (en) Disaster recovery backup system availability detection method and device
CN109933416A (en) A kind of moving method, device and storage medium using data
US20140297834A1 (en) Management of a plurality of system control networks
CN108259175A (en) A kind of distribution routing algorithm method of servicing and system
CN104424048A (en) Data storage method and equipment
WO2015067073A1 (en) Data operating method and device
CN103152416A (en) Dynamic management method for improving high availability of online clustering group
CN109684131A (en) A kind of mixed structure network fault tolerance system dynamic reconfiguration method based on table- driven
CN104361098A (en) Method applied to customization of nodes in topological graph of cloud system
CN102999367A (en) Method for rapidly initializing client communication of IEC61850 intelligent device
CN114143175B (en) Main and standby cluster realization method and system
CN103227867A (en) Cellphone application Hub system and application method thereof
CN102882943B (en) Service copy reading/writing method and system
CN109743366A (en) A kind of resource locking method, apparatus and system for scene of more living

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20180813

Address after: 250101 S06 tower, 1036, Chao Lu Road, hi tech Zone, Ji'nan, Shandong.

Patentee after: Shandong wave cloud Mdt InfoTech Ltd

Address before: 250014 1036 Shun Ya Road, hi tech Zone, Ji'nan, Shandong.

Patentee before: Langchao Electronic Information Industry Co., Ltd.

TR01 Transfer of patent right
CP03 Change of name, title or address

Address after: 250100 No. 1036 Tidal Road, Jinan High-tech Zone, Shandong Province, S01 Building, Tidal Science Park

Patentee after: Inspur cloud Information Technology Co., Ltd

Address before: 250101 S06 tower, 1036, Chao Lu Road, hi tech Zone, Ji'nan, Shandong.

Patentee before: SHANDONG LANGCHAO YUNTOU INFORMATION TECHNOLOGY Co.,Ltd.

CP03 Change of name, title or address