CN109117199A - The configuring management method and device of distributed program - Google Patents
The configuring management method and device of distributed program Download PDFInfo
- Publication number
- CN109117199A CN109117199A CN201710495446.XA CN201710495446A CN109117199A CN 109117199 A CN109117199 A CN 109117199A CN 201710495446 A CN201710495446 A CN 201710495446A CN 109117199 A CN109117199 A CN 109117199A
- Authority
- CN
- China
- Prior art keywords
- configuration item
- name
- role
- machine
- cluster
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
Abstract
The embodiment of the present invention provides the configuring management method and device of a kind of distributed program, is related to field of computer technology, the technical issues of to be able to solve software configuration item redundancy existing for distributed program, reduces the duplication of labour, reduces and apply accident rate on line.The configuring management method of distributed program includes: the role name for defining each machine in Distributed Computer System;Each machine is grouped according to the role name, and saves grouping information;The grouping information includes: role name, the machine identification for belonging to same role;Configuration item tree is constructed according to the role name, to save the configuration item of distributed program.
Description
Technical field
The present invention relates to field of computer technology more particularly to the configuring management methods and device of a kind of distributed program.
Background technique
With the rapid development of Internet technology, big data (Big Data) penetrates into each of people's life more and more
A field.Original desktop system has been unable to satisfy the demand of processing mass data, and parallel place can be realized to mass data
The distributed software application system of reason becomes mainstream.
Distributed software application system is will to apply to be divided into multiple components, and each component is distributed in a distributed meter
In multiple stage computers in calculation machine system, to be performed simultaneously.In order to improve the stability of system, distributed software application system
It would generally be deployed in multiple computer rooms.Higher requirements are also raised to software configuration management for the complexity of this system deployment.
The software configuration management refers to and is managed to the configurable item of software.In software development process, it will usually by software
Some configurable item identifications extract, and form configuration file.It, can be real by modification configuration file in software running process
The change of existing software function, without modifying software code.
In existing distributed program, often application code is placed in Git server, configuration file is placed on deployment
In system.When carrying out software publication, the difference of cluster and component that deployment system is disposed as needed pushes different configurations
Machine in binary file to line after file and compiling.
In realizing process of the present invention, at least there are the following problems in the prior art for inventor's discovery: first, application code
It is separated with the management of configuration file, lower deployment cost is caused to increase.In online new system, the developer is needed to be in different
Application code and configuration file are submitted in system respectively, is easy to appear maloperation.Second, configuration file is stored in deployment system, leads
It causes that configuration file can not be carried out Version Control, change control.When the errors have occurred, it is difficult to position mistake.Moreover, by
In no Version Control, can not also rollback be carried out to configuration file.There is a large amount of repeat in third, configuration item.In deployment system,
A complete configuration item inventory, i.e. a configuration file are remained for the combination of each component and each cluster.For example, working as
There are when M component, N number of cluster, the configuration file in deployment system just has M*N parts.When some configuration item needs to modify, open
Hair personnel are likely to require change M*N times manually, could complete all to change.Even if omitting at one, it is also possible to cause system
It is unstable, cause accident.
Summary of the invention
In view of this, the embodiment of the present invention provides the configuring management method and device of a kind of distributed program, can solve
Certainly existing for distributed program the technical issues of software configuration item redundancy, the duplication of labour is reduced, reduces and applies accident rate on line.
To achieve the above object, according to an aspect of an embodiment of the present invention, a kind of configuration of distributed program is provided
Management method.
The configuring management method of the distributed program of the embodiment of the present invention includes: to define in Distributed Computer System each
The role name of machine;Each machine is grouped according to the role name, and saves grouping information;The grouping information packet
It includes: role name, the machine identification for belonging to same role;Configuration item tree is constructed according to the role name, to save distributed program
Configuration item.
Optionally, the role name includes: component name, channel name, cluster name.
Optionally, constructing configuration item tree according to the role name includes: to define father node according to the component name, and by group
The shared configuration item of part is stored in the father node;Define the child of the father node according to the channel name, and by canal
The shared configuration item in road is stored in the child;The grandchild node of the father node is defined according to the cluster name, and will
The shared configuration item of cluster is stored in the grandchild node.
Optionally, constructing configuration item tree according to the role name includes: to define father node according to the channel name, and by canal
The shared configuration item in road is stored in the father node;Define the child of the father node according to the component name, and by group
The shared configuration item of part is stored in the child;According to the grandchild node of the cluster name justice father node determined by fate, and
The configuration item that cluster shares is stored in the grandchild node.
Optionally, the method also includes: the grouping information is stored in deployment subsystem, by the configuration item tree with
The code of distributed program is stored in distributed version library.
Optionally, the method also includes: by deployment subsystem by the grouping information, the configuration item tree and described
The code of distributed program pushes to each machine, is then extracted and is configured from the configuration item tree by configuration file generation module
, with configuration file needed for generating machine.
To achieve the above object, other side according to an embodiment of the present invention provides a kind of matching for distributed program
Set managing device.
The configuration management device of the distributed program of the embodiment of the present invention includes: definition module, by define it is distributed based on
The role name of each machine in calculation machine system;Grouping module for being grouped according to the role name to each machine, and is protected
Deposit grouping information;The grouping information includes: role name, the machine identification for belonging to same role;Module is constructed, for according to institute
Role name building configuration item tree is stated, to save the configuration item of distributed program.
Optionally, the role name includes: component name, channel name, cluster name.
Optionally, the configuration item tree includes: father node, according to the component name define, for save component share
Configuration item;Child is defined according to the channel name, for saving the shared configuration item of channel;Grandchild node, according to described
Cluster name definition, for saving the shared configuration item of cluster.
Optionally, the configuration item tree includes: father node, according to the channel name define, for save channel share
Configuration item;Child is defined according to the component name, for saving the shared configuration item of component;Grandchild node, according to described
Cluster name definition, for saving the shared configuration item of cluster.
Optionally, it includes: that the grouping information is stored in deployment subsystem that the grouping module, which saves grouping information,;Institute
Stating building module and saving the configuration item of distributed program includes: to save the code of the configuration item tree and the distributed program
In distributed version library.
Optionally, described device further include: configuration file generation module, for the grouping to be believed in deployment subsystem
Breath, the configuration item tree and the distributed program code push to after each machine, according to the grouping information from institute
It states configuration item tree and extracts configuration item, with configuration file needed for generating machine.
To achieve the above object, another aspect according to an embodiment of the present invention, provides a kind of electronic equipment.
The electronic equipment of the embodiment of the present invention, comprising: one or more processors;And memory, for storing one
Or multiple programs;When one or more of programs are executed by one or more of processors, so that one or more of
Processor realizes the configuring management method of the distributed program of the embodiment of the present invention.
To achieve the above object, another aspect according to an embodiment of the present invention provides a kind of computer-readable medium.
The computer-readable medium of the embodiment of the present invention, is stored thereon with computer program, and described program is held by processor
The configuring management method of the distributed program of the embodiment of the present invention is realized when row.
One embodiment in foregoing invention has the following advantages that or the utility model has the advantages that in embodiments of the present invention, according to fixed
The role of justice is grouped each machine, saves grouping information, also, constructs configuration item tree according to the role of definition, can
Configuration item needed for choosing each machine from configuration item tree according to grouping information actively generates required configuration file.In this way
One, the technical issues of efficiently solving software configuration item redundancy existing for distributed program, reduces the duplication of labour, reduce
Accident rate is applied on line.
Further effect possessed by above-mentioned non-usual optional way adds hereinafter in conjunction with specific embodiment
With explanation.
Detailed description of the invention
Attached drawing for a better understanding of the present invention, does not constitute an undue limitation on the present invention.Wherein:
Fig. 1 is the key step schematic diagram of the configuring management method of distributed program according to an embodiment of the present invention;
Fig. 2 is the schematic diagram of the configuration management device of distributed program according to an embodiment of the present invention;
Fig. 3 is the structural schematic diagram of the computer system of the electronic equipment for realizing the embodiment of the present invention.
Specific embodiment
Below in conjunction with attached drawing, an exemplary embodiment of the present invention will be described, including the various of the embodiment of the present invention
Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize
It arrives, it can be with various changes and modifications are made to the embodiments described herein, without departing from scope and spirit of the present invention.Together
Sample, for clarity and conciseness, descriptions of well-known functions and structures are omitted from the following description.
Fig. 1 is the key step schematic diagram of the configuring management method of distributed program according to an embodiment of the present invention.Such as Fig. 1
Shown, the configuring management method of the distributed program of the embodiment of the present invention mainly comprises the steps that
Step S101, the role name of each machine in Distributed Computer System is defined.In a preferred embodiment,
The role name includes: component name, channel name, cluster name.Wherein, " component " may be defined as the program module of distributed system.
For example, a distributed system includes sercher component, merger component, blender component." channel " may be defined as same
Multiple deployment entrances of a business.For example, searching service can be deployed in pc web terminal, the end mobile phone app, then the channel of searching service
There are " pc " channel, " mobile " channel." cluster " may be defined as disposing multiple services of same business, common externally offer service
Device.For example, searching service can be deployed on the server of the server in Langfang, Interchange in Jingjintang Highway, then the cluster of searching service has " lf "
Cluster, " mjq " cluster.When carrying out role definition to machine, component name, channel name, can be between cluster name these three fields
It uses " " to be attached, " _ " also can be used or other separators are attached.For example, entitled " the component name channel of role
Name cluster name ", alternatively, role is entitled " component name _ channel name _ cluster name ".It will be appreciated that not influencing implementation of the present invention
In the case where, those skilled in the art can content to role name and the form of the composition be modified.For example, role name can be
" channel name component name cluster name ".
Step S102, each machine is grouped according to the role name, and saves grouping information;The grouping information
It include: role name, the machine identification for belonging to same role.For example, a Distributed Computer System there are 500 machines, can divide
For 3 components, 2 channels, 4 clusters, then this 500 machines can be divided into 24 groups according to role name, and grouping information includes: 24
Machine identification in the group name (i.e. role name) of grouping, each grouping.When it is implemented, the machine identification can be every machine
The host name of device is also possible to the MAC Address of every machine or the information of other energy every machines of unique identification.
Step S103, configuration item tree is constructed according to the role name, to save the configuration item of the distributed program.
In a preferred embodiment, the role is entitled " component name channel name cluster name ", according to the role
Name building configuration item tree includes: to define father node according to the component name, and the configuration item that component shares is stored in the father
Node;The child of the father node is defined according to the channel name, and the configuration item that channel shares is stored in the youngster
Child node;It defines the grandchild node of the father node according to the cluster name, and the configuration item that cluster shares is stored in described
Grandchild node.That is, all configuration items of distributed program are successively extracted according to the level of component, channel, cluster
Respective common portion, and be stored in the file of each layer.For example,/blender file is for saving blender component
Shared configuration item ,/blender/mobile file are used to save the configuration that mobile channel is shared under blender component
,/blender/pc file is used to save the configuration item that pc channel is shared under blender component ,/blender/mobile/
Lf file is used to save the configuration item that Langfang cluster is shared under blender component, mobile channel.
In another preferred embodiment, the role entitled " channel name component name cluster name " is according to the role
Name building configuration item tree includes: to define father node according to the channel name, and the configuration item that channel shares is stored in the father
Node;The child of the father node is defined according to the component name, and the configuration item that component shares is stored in the youngster
Child node;Institute is stored according to the grandchild node of the cluster name justice father node determined by fate, and by the configuration item that cluster shares
State grandchild node.For example,/mobile file is used to save the shared configuration item of mobile channel ,/mobile/blender text
Part folder is for saving the configuration item that blender component is shared under mobile channel, and/mobile/sercher file is for saving
The common configuration item of sercher component under mobile channel ,/mobile/blender/mjq file is for saving mobile canal
The shared configuration item of Interchange in Jingjintang Highway cluster under road, blender component.It will be appreciated that in the case where not influencing present invention implementation,
It is described that other embodiments can also be had according to role name building configuration item tree.
In a preferred embodiment, the method also includes: the grouping information of generation is stored in deployment subsystem, and
The code of the configuration item tree and distributed program is stored in distributed version library.Wherein, the distributed version library is optional
With the library Git.
Disposing subsystem is a complicated online service deployment system, for controlling the issuing process of software.Usually and
Speech, deployment subsystem have the functions such as Software package, online examination & approval, software publication.Git is a distributed version control work
Tool, different from the centralized version control tool such as Perforce, SVN (Subversion), it uses distributed version library, i.e.,
The library Git.So, Git client, which is not necessarily to, and server software interacts can both carry out Version Control, so that code mentions
Hand over, issue it is very convenient.In embodiments of the present invention, configuration item tree and software code are stored in the library git, in deployment subsystem
Specific configuration file is not stored in system, and only retains the grouping information of each machine.It so, can not only be to software
Configuration item carries out Version Control, is convenient for positioning problems, and configuration item and application code are realized and are managed collectively, and reduces deployment
Cost reduces developer submitting maloperation caused by code and configuration item respectively in different systems.
Further, in a preferred embodiment, the method also includes: the grouping believed by deployment subsystem
The code of breath, the configuration item tree and the distributed program pushes to each machine, then passes through configuration file generation module
Configuration item is extracted from the configuration item tree, with configuration file needed for generating machine.When it is implemented, deployment subsystem can will match
Set Xiang Shu, the binary file in grouping information after the corresponding role name of machine and compiling pushes on each machine.So
Afterwards, the configuration file generation module being mounted on machine can choose configuration item from configuration item tree according to the role name of the machine,
Configuration file needed for generating the machine.Finally, starting the distributed program, to externally provide service.
In embodiments of the present invention, each machine is grouped according to the role of definition, saves grouping information, also,
Configuration item tree is constructed according to the role of definition, configuration needed for each machine can be made to choose from configuration item tree according to grouping information
Item actively generates required configuration file.So, software configuration item redundancy existing for distributed program is efficiently solved
Technical problem reduces the duplication of labour, reduces on line using accident rate.
Fig. 2 is the schematic diagram of the configuration management device of distributed program according to an embodiment of the present invention.As shown in Fig. 2, this
The configuration management device 200 of the distributed program of inventive embodiments mainly includes following module: definition module 201, grouping module
202, module 203 is constructed.
Definition module 201, for defining the role name of each machine in Distributed Computer System.It is preferably implemented at one
In mode, the role name includes: component name, channel name, cluster name.It is fixed carrying out role to machine based on definition module 201
When adopted, component name, channel name can be used " " between cluster name these three fields and be attached, also can be used " _ " or
Other separators are attached.For example, role is entitled " component name channel name cluster name ", alternatively, role it is entitled " component name _
Channel name _ cluster name ".It will be appreciated that those skilled in the art can be to role in the case where not influencing present invention implementation
The content and the form of the composition of name are modified.For example, role name can be " channel name component name cluster name ".
Grouping module 202 for being grouped according to the role name to each machine, and saves grouping information.Wherein,
The grouping information includes: role name, the machine identification for belonging to same role.For example, a Distributed Computer System has 500
Platform machine can be divided into 3 components, 2 channels, 4 clusters, then this 500 machines can be divided into 24 groups according to role name, grouping letter
Breath includes: the group names (i.e. role name) of 24 groupings, the machine identification in each grouping.When it is implemented, the machine identification
The host name that can be every machine is also possible to the MAC Address or other energy every machines of unique identification of every machine
Information.
Module 203 is constructed, for constructing configuration item tree according to the role name, to save the configuration of the distributed program
?.
In a preferred embodiment, the configuration item tree that building module 203 constructs includes: father node, according to described group
Part name definition, for saving the shared configuration item of component;Child is defined according to the channel name, total for saving channel
Configuration item;Grandchild node is defined according to the cluster name, for saving the shared configuration item of cluster.For example, configuration item tree
Including/blender file ,/blender/mobile file ,/blender/pc file ,/blender/mobile/lf
File.Wherein ,/blender file is used to save the shared configuration item of blender component ,/blender/mobile file
It presss from both sides for saving the configuration item that mobile channel is shared under blender component ,/blender/pc file is for saving
The shared configuration item of pc channel under blender component ,/blender/mobile/lf file for save blender component,
Cluster shared configuration item in Langfang under mobile channel.
In another preferred embodiment, the configuration item tree that building module 203 constructs includes: father node, according to described
Channel name definition, for saving the shared configuration item of channel;Child is defined according to the component name, for saving component
Shared configuration item;Grandchild node is defined according to the cluster name, for saving the shared configuration item of cluster.For example, configuration item
Tree includes/mobile file ,/mobile/blender file ,/mobile/sercher file ,/mobile/
Blender/mjq file.Wherein ,/mobile file is used to save the shared configuration item of mobile channel ,/mobile/
Blender file is used to save the configuration item that blender component is shared under mobile channel ,/mobile/sercher file
Folder is for saving the common configuration item of sercher component under mobile channel, and/mobile/blender/mjq file is for protecting
Deposit the configuration item that Interchange in Jingjintang Highway cluster is shared under mobile channel, blender component.It will be appreciated that real not influencing the present invention
In the case where applying, other forms can also be had by constructing module 203 according to the configuration item tree that role name constructs.
In embodiments of the present invention, role definition, grouping are carried out to each machine by definition module, grouping module, and
And configuration item tree is constructed by building module, it can effectively solve the problem that the skill of software configuration item redundancy existing for distributed program
Art problem, reduces the duplication of labour, reduces on line using accident rate.
Further, in the configuration management device 200 of the embodiment of the present invention, grouping module 202 saves grouping information and includes:
The grouping information is stored in deployment subsystem;Constructing module 203 and saving the configuration item of distributed program includes: to match described
The code for setting distributed program described in Xiang Shuyu is stored in distributed version library.Wherein, git can be selected in the distributed version library
Library.In embodiments of the present invention, it by the way that configuration item tree and software code to be stored in the library git, is not deposited in deployment subsystem
Specific configuration file is put, and only retains the grouping information of each machine, version control can not only be carried out to software configuration item
System is convenient for positioning problems, and can be managed collectively to configuration item and application code, and lower deployment cost is reduced, and reduces exploitation
Personnel submitting maloperation caused by code and configuration item respectively in different systems.
Further, 200 device of configuration management device of the embodiment of the present invention may also include that configuration file generation module.Institute
Configuration file generation module is stated, for disposing subsystem for the grouping information, the configuration item tree and the distributed journey
The code of sequence pushes to after each machine, configuration item is extracted from the configuration item tree according to the grouping information, to generate machine
Configuration file needed for device.When it is implemented, configuration file generation module 203 can be installed on each machine.In deployment
After binary file after configuration item tree, grouping information and compiling is pushed to each machine by system, it is mounted on machine
Configuration file generation module 203 can choose configuration item from configuration item tree according to the role name of machine, generate needed for the machine
Configuration file.
In another aspect, the embodiment of the invention also provides a kind of electronic equipment.The electronic equipment of the embodiment of the present invention includes:
One or more processors;And memory, for storing one or more programs;When one or more of programs are by institute
One or more processors execution is stated, so that one or more of processors realize the distributed program of the embodiment of the present invention
Configuring management method.
Fig. 3 is the structural schematic diagram of the computer system of the electronic equipment for realizing the embodiment of the present invention.Shown in Fig. 3
Electronic equipment is only an example, should not function to the embodiment of the present application and use scope bring any restrictions.
As shown in figure 3, computer system 300 includes central processing unit (CPU) 301, it can be read-only according to being stored in
Program in memory (ROM) 302 or be loaded into the program in random access storage device (RAM) 303 from storage section 308 and
Execute various movements appropriate and processing.In RAM 303, also it is stored with system 300 and operates required various programs and data.
CPU 301, ROM 302 and RAM 303 are connected with each other by bus 304.Input/output (I/O) interface 305 is also connected to always
Line 304.
Further, computer system 300 further include be connected to I/O interface 305 with lower component:
Importation 306 including keyboard, mouse etc.;Including such as cathode-ray tube (CRT), liquid crystal display (LCD)
And the output par, c 307 of loudspeaker etc.;Storage section 308 including hard disk etc.;And including such as LAN card, modulation /demodulation
The communications portion 309 of the network interface cards such as device.Communications portion 309 executes communication process via the network of such as internet.Driving
Device 310 is also connected to I/O interface 305 as needed.Detachable media 311, such as disk, CD, magneto-optic disk, semiconductor storage
Device etc. is mounted on as needed on driver 310, in order to be mounted into as needed from the computer program read thereon
Storage section 308.
Further, according to embodiments of the present invention, above the process of the configuring management method description of distributed program can be with
It is implemented as computer software programs.For example, the embodiment of the present invention includes a kind of computer program products comprising be carried on meter
Computer program on calculation machine readable medium, the computer program include for executing the distributed program of the embodiment of the present invention
The program code of configuring management method.In such embodiments, which can be by communications portion 309 from network
On be downloaded and installed, and/or from detachable media 311 be mounted.In the computer program by central processing unit (CPU)
When 301 execution, the above-mentioned function that the computer system in the embodiment of the present invention limits is executed.
It should be noted that in embodiments of the present invention, the computer-readable medium can be computer-readable signal
Medium or computer readable storage medium either the two any combination.Computer readable storage medium for example can be with
It is but not limited to system, device or the device of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, or any above combination.
The more specific example of computer readable storage medium can include but is not limited to: have one or more conducting wires electrical connection,
Portable computer diskette, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only deposit
Reservoir (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory
Part or above-mentioned any appropriate combination.In embodiments of the present invention, computer readable storage medium, which can be, any includes
Or the tangible medium of storage program, which can be commanded execution system, device or device use or in connection make
With.And in the present invention is implemented, computer-readable signal media may include passing in a base band or as carrier wave a part
The data-signal broadcast, wherein carrying computer-readable program code.The data-signal of the propagation can use a variety of shapes
Formula, including but not limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media may be used also
To be any computer-readable medium other than computer readable storage medium, which can send, propagate
Either transmission is for by the use of instruction execution system, device or device or program in connection.It is computer-readable
The program code for including on medium can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc.
Deng or above-mentioned any appropriate combination.
Flow chart and block diagram shown in the drawings illustrate the system of various embodiments, device and computer according to the present invention
The architecture, function and operation in the cards of program product.In this regard, each box in flowchart or block diagram can be with
A part of a module, program segment or code is represented, a part of above-mentioned module, program segment or code includes one or more
A executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, in box
The function of being marked can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are real
It can be basically executed in parallel on border, they can also be executed in the opposite order sometimes, this is depending on related function.
It is also noted that the combination of each box and box in block diagram or flow chart, it can the function as defined in executing or behaviour
The dedicated hardware based system made is realized, can also be realized using a combination of dedicated hardware and computer instructions.
Involved module can be realized by way of software in the embodiment of the present invention, can also pass through the side of hardware
Formula is realized.Described module also can be set in the processor, for example, can be described as: a kind of processor includes definition
Module, grouping module, building module,.Wherein, the title of these modules is not constituted to the module itself under certain conditions
It limits, for example, building module is also described as " for constructing the module of configuration item tree ".
Another aspect, the embodiment of the invention also provides a kind of computer-readable medium, which can be with
It is included in electronic equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying equipment.On
It states computer-readable medium and carries one or more program, when said one or multiple programs are by the electronic equipment
When execution, the configuring management method of the distributed program of above-described embodiment is realized, comprising: define each in Distributed Computer System
The role name of platform machine;Each machine is grouped according to the role name, and saves grouping information;The grouping information packet
It includes: role name, the machine identification for belonging to same role;Configuration item tree is constructed according to the role name, to save the distribution
The configuration item of program.
Method provided by the embodiment of the present invention can be performed in the said goods, has the corresponding functional module of execution method and has
Beneficial effect.The not technical detail of detailed description in the present embodiment, reference can be made to method provided by the embodiment of the present invention.
Above-mentioned specific embodiment, does not constitute a limitation on the scope of protection of the present invention.Those skilled in the art should be bright
It is white, design requirement and other factors are depended on, various modifications, combination, sub-portfolio and substitution can occur.It is any
Made modifications, equivalent substitutions and improvements etc. within the spirit and principles in the present invention, should be included in the scope of the present invention
Within.
Claims (14)
1. a kind of configuring management method of distributed program, which is characterized in that the described method includes:
Define the role name of each machine in Distributed Computer System;
Each machine is grouped according to the role name, and saves grouping information;The grouping information include: role name,
Belong to the machine identification of same role;
Configuration item tree is constructed according to the role name, to save the configuration item of the distributed program.
2. the method according to claim 1, wherein the role name includes: component name, channel name, cluster name.
3. according to the method described in claim 2, it is characterized in that, including: according to role name building configuration item tree
Father node is defined according to the component name, and the configuration item that component shares is stored in the father node;
The child of the father node is defined according to the channel name, and the configuration item that channel shares is stored in the son
Node;
The grandchild node of the father node is defined according to the cluster name, and the configuration item that cluster shares is stored in the grandson
Node.
4. according to the method described in claim 2, it is characterized in that, including: according to role name building configuration item tree
Father node is defined according to the channel name, and the configuration item that channel shares is stored in the father node;
The child of the father node is defined according to the component name, and the configuration item that component shares is stored in the son
Node;
The grandson is stored according to the grandchild node of the cluster name justice father node determined by fate, and by the configuration item that cluster shares
Child node.
5. method according to any one of claims 1 to 4, which is characterized in that the method also includes:
The grouping information is stored in deployment subsystem, the code of the configuration item tree and distributed program is stored in distribution
Formula version repository.
6. according to the method described in claim 5, it is characterized in that, the method also includes:
The code of the grouping information, the configuration item tree and the distributed program is pushed to each by deployment subsystem
Then machine extracts configuration item from the configuration item tree by configuration file generation module, literary with configuration needed for generating machine
Part.
7. a kind of configuration management device of distributed program, which is characterized in that described device includes:
Definition module, for defining the role name of each machine in Distributed Computer System;
Grouping module for being grouped according to the role name to each machine, and saves grouping information;The grouping information
It include: role name, the machine identification for belonging to same role;
Module is constructed, for constructing configuration item tree according to the role name, to save the configuration item of the distributed program.
8. device according to claim 7, which is characterized in that the role name includes: component name, channel name, cluster name.
9. device according to claim 8, which is characterized in that the configuration item tree includes:
Father node is defined according to the component name, for saving the shared configuration item of component;
Child is defined according to the channel name, for saving the shared configuration item of channel;
Grandchild node is defined according to the cluster name, for saving the shared configuration item of cluster.
10. device according to claim 8, which is characterized in that the configuration item tree includes:
Father node is defined according to the channel name, for saving the shared configuration item of channel;
Child is defined according to the component name, for saving the shared configuration item of component;
Grandchild node is defined according to the cluster name, for saving the shared configuration item of cluster.
11. according to any device of claim 7 to 10, which is characterized in that the grouping module saves grouping information packet
It includes: the grouping information is stored in deployment subsystem;
It includes: by the generation of the configuration item tree and the distributed program that the building module, which saves the configuration item of distributed program,
Code is stored in distributed version library.
12. device according to claim 11, which is characterized in that described device further include:
Configuration file generation module, for disposing subsystem for the grouping information, the configuration item tree and the distribution
The code of program pushes to after each machine, configuration item is extracted from the configuration item tree according to the grouping information, to generate
Configuration file needed for machine.
13. a kind of electronic equipment characterized by comprising
One or more processors;And
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
The now method as described in claim 1 to 6 is any.
14. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor
The method as described in any in claim 1 to 6 is realized when row.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710495446.XA CN109117199B (en) | 2017-06-26 | 2017-06-26 | Configuration management method and device for distributed program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710495446.XA CN109117199B (en) | 2017-06-26 | 2017-06-26 | Configuration management method and device for distributed program |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109117199A true CN109117199A (en) | 2019-01-01 |
CN109117199B CN109117199B (en) | 2021-08-03 |
Family
ID=64822200
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710495446.XA Active CN109117199B (en) | 2017-06-26 | 2017-06-26 | Configuration management method and device for distributed program |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109117199B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110413348A (en) * | 2019-07-31 | 2019-11-05 | 中国工商银行股份有限公司 | Data processing method, device, system and medium |
CN111142927A (en) * | 2019-12-04 | 2020-05-12 | 中盈优创资讯科技有限公司 | Configuration file merging and splitting processing method and device |
CN111917573A (en) * | 2020-07-13 | 2020-11-10 | 海南车智易通信息技术有限公司 | Monitoring method, monitoring system and computing device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106815012A (en) * | 2016-12-14 | 2017-06-09 | 深圳中顺易金融服务有限公司 | Decentralized configuration Explore of Unified Management Ideas and system based on Zookeeper |
CN106878053A (en) * | 2016-12-22 | 2017-06-20 | 努比亚技术有限公司 | A kind of config update devices and methods therefor based on ZOOKEEPER |
-
2017
- 2017-06-26 CN CN201710495446.XA patent/CN109117199B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106815012A (en) * | 2016-12-14 | 2017-06-09 | 深圳中顺易金融服务有限公司 | Decentralized configuration Explore of Unified Management Ideas and system based on Zookeeper |
CN106878053A (en) * | 2016-12-22 | 2017-06-20 | 努比亚技术有限公司 | A kind of config update devices and methods therefor based on ZOOKEEPER |
Non-Patent Citations (2)
Title |
---|
KNIGHT’S BLOG: "分布式配置管理平台Disconf", 《WWW.LIAOQIQI.COM/POST/219》 * |
吴波: "多联机大数据管理系统的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110413348A (en) * | 2019-07-31 | 2019-11-05 | 中国工商银行股份有限公司 | Data processing method, device, system and medium |
CN111142927A (en) * | 2019-12-04 | 2020-05-12 | 中盈优创资讯科技有限公司 | Configuration file merging and splitting processing method and device |
CN111142927B (en) * | 2019-12-04 | 2024-04-23 | 中盈优创资讯科技有限公司 | Configuration file merging and splitting processing method and device |
CN111917573A (en) * | 2020-07-13 | 2020-11-10 | 海南车智易通信息技术有限公司 | Monitoring method, monitoring system and computing device |
Also Published As
Publication number | Publication date |
---|---|
CN109117199B (en) | 2021-08-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107370786B (en) | General information management system based on micro-service architecture | |
CN109271450A (en) | Database synchronization method, device, server and storage medium | |
CN110472207A (en) | List generation method and device | |
KR20210067415A (en) | Platform providing system based on cloud computing and platform provision method using the same | |
CN107506218A (en) | The management method and management system of a kind of configuration file | |
CN109117199A (en) | The configuring management method and device of distributed program | |
CN108984549A (en) | Table data pick-up method and apparatus are divided in an a kind of point library based on dynamic configuration data library | |
CN107247601A (en) | Development process optimization method, device and storage medium | |
CN109981322A (en) | The method and apparatus of cloud resource management based on label | |
CN109245908A (en) | A kind of method and apparatus of principal and subordinate's cluster switching | |
CN109241033A (en) | The method and apparatus for creating real-time data warehouse | |
CN110427415A (en) | Knowledge share method, device, system media and electronic equipment | |
CN108958744A (en) | Dispositions method, device, medium and the electronic equipment of big data distributed type assemblies | |
CN107403110A (en) | HDFS data desensitization method and device | |
CN110166507A (en) | More resource regulating methods and device | |
CN110019123A (en) | A kind of data migration method and device | |
CN109474467A (en) | Network automatically management method, device, storage medium and electronic equipment | |
CN110019346A (en) | A kind of data processing method and device based on double primary databases | |
CN111178849A (en) | Linear process engine implementation method, device, equipment and storage medium | |
CN109597810A (en) | A kind of task cutting method, device, medium and electronic equipment | |
CN112612467A (en) | Method and device for processing micro front-end architecture based on qiankun | |
CN110019242A (en) | Processing method, device and system for tables of data | |
CN112817562A (en) | Service processing method and device | |
CN108399046A (en) | File operation requests treating method and apparatus | |
CN108733399A (en) | The method and apparatus that dynamic updates configuration data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |