CN102455915A - Method for automatically configuring distributed system, and server - Google Patents

Method for automatically configuring distributed system, and server Download PDF

Info

Publication number
CN102455915A
CN102455915A CN2010105114814A CN201010511481A CN102455915A CN 102455915 A CN102455915 A CN 102455915A CN 2010105114814 A CN2010105114814 A CN 2010105114814A CN 201010511481 A CN201010511481 A CN 201010511481A CN 102455915 A CN102455915 A CN 102455915A
Authority
CN
China
Prior art keywords
node
configuration file
installation
configuration
distributed system
Prior art date
Application number
CN2010105114814A
Other languages
Chinese (zh)
Inventor
罗奇
宫建涛
Original Assignee
卓望数码技术(深圳)有限公司
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 卓望数码技术(深圳)有限公司 filed Critical 卓望数码技术(深圳)有限公司
Priority to CN2010105114814A priority Critical patent/CN102455915A/en
Publication of CN102455915A publication Critical patent/CN102455915A/en

Links

Abstract

The embodiment of the invention discloses a method for automatically configuring a distributed system. The method comprises the following steps of: acquiring metadata which comprises the configuration information of each node in the distributed system; according to the metadata and a preset configuration file template, generating a configuration file; according to the special configuration information of each node in the distributed system, generating an installation boot program which is matched with a node corresponding to the special configuration information; and sending a preset program package to be installed, the configuration file and the installation boot program to each node in the distributed system. The embodiment of the invention also discloses a server. By the invention, the problems of high working load and high error rate caused by installation or modification of the programs of all nodes in the distributed system when the programs of a client are required to be installed or modified can be solved, and functions of each node in the distributed system can be fully realized by installing the programs according to the special configuration information of each node in the distributed system.

Description

A kind of robotization collocation method and server of distributed system

Technical field

The present invention relates to the distributed system field, relate in particular to a kind of robotization collocation method and server of distributed system.

Background technology

Along with the development of IT industry, the system of distributed environment is also more and more, and is more and more huger, the distributed system that has even up to a hundred or thousands of nodes are arranged, and the deployment of bulky systems and maintenance are the work of the very uninteresting loaded down with trivial details easy error again of part like this.

In order to address the above problem; Of the prior artly realize that in distributed environment the scheme of environmental structure robotization is distributed platform unit and actuator to be installed in through all the machine nodes in distributed environment, installs distribution type platform agent units, configuration file automatically-generating module and program to be installed on a machine node therein simultaneously; Dispose the relevant information of environment to be installed and be sent to distribution type platform agent units in system management table; Distribution type platform agent units starts the automatic build environment of configuration file automatically-generating module and builds configuration file; Restart installation procedure module loading version file, afterwards this version file is distributed to each and waits to dispose the distributed platform unit on the machine; After each distributed platform unit receives, start the actuator on its place machine respectively, carry out the installation of version file.

In such scheme, though can managing distributed cluster.But still have many problems can't satisfy regulatory requirement:

Said method need be installed the distributed platform unit in the machine node that each is managed; System management table through with this machine node distribution formula platform unit accomplish management alternately to configuration file; And if the program that realizes said distributed platform unit is revised to some extent; Then need be to being upgraded by the program of all machine node distribution formula platform unit of being managed, if be a very big cluster, so no matter to be to install or revise the program that realizes said distributed platform unit by the machine node in the distributed environment of managing; All will be very huge scissors and paste, and easy error;

In addition, said method can not be done personalized fine setting to corresponding machines configurations when disposing.In the distributed system, the Hardware configuration of each machine might not be identical, if the machine of various different hardware configurations is adopted unified configuration, then possibly can't make full use of the ability of machine.

Summary of the invention

Embodiment of the invention technical matters to be solved is; A kind of robotization collocation method and server of distributed system are provided; Only the server in distributed system generates configuration file and boot is installed; When avoiding client-side program to install or revise, need install or revise that the workload brought is big, the problem of easy error, and can give full play to the function of each node in the distributed system the program of all nodes in the distributed system.

In order to solve the problems of the technologies described above, the embodiment of the invention provides a kind of robotization collocation method of distributed system, comprising:

Obtain metadata, said metadata comprises the Configuration Values of each node relevant configuration item in the distributed system;

According to said metadata and preset configuration file template, generate configuration file;

According to the particular arrangement information of each node in the distributed system, generate the installation boot that is complementary with said particular arrangement information corresponding nodes;

Preset routine package to be installed, said configuration file and said installation boot are sent to each node in the said distributed system.

Correspondingly, the embodiment of the invention also provides a kind of server, comprising:

Acquisition module is used to obtain metadata, and said metadata comprises the Configuration Values of each node relevant configuration item in the distributed system;

The configuration file generation module is used for the metadata obtained according to said acquisition module, and according to the preset configuration file template, generates configuration file;

The boot generation module is used for the particular arrangement information according to each node of distributed system, generates the installation boot that is complementary with said particular arrangement information corresponding nodes;

Deployment module is used for the configuration file of preset routine package to be installed, the generation of said configuration file generation module and the installation boot that said boot generation module generates are sent to each node of said distributed system.

Embodiment of the present invention embodiment has following beneficial effect:

Configuration file all generates at server end with the installation boot; Be sent to each node in the distributed system with routine package to be installed; Need not on distributed node, to install in advance client; When new node adds in the distributed system, all can through puppy parc with configuration file, the node that boot and routine package to be installed send to said new access is installed, all need not each distributed node is done change; Satisfy the demand of robotization; When avoiding client-side program to install or to revise, to the program of all nodes in the distributed system install or revise the problem of big, the easy error of the workload of bringing, provide users with the convenient; Configuration file is split into profile template; Metadata two parts, profile template is supported the configuration file of all text formattings, for example forms such as XML, TXT, CSV; Make management system to reach general purpose without the support major applications program requirements of expansion; Boot according to the particular arrangement of node generates can be done personalized adjustment to configuration file, to give full play to the function of node.In addition; For existing configuration file is provided with version number; When the installation that can make node carry out routine package to be installed according to new configuration file makes a mistake, can be configured rollback, make new routine package to be installed can according to before the configuration file of version renewal correctly is installed.

Description of drawings

Fig. 1 is that first example structure of server of the present invention is formed synoptic diagram;

Fig. 2 is that second example structure of server of the present invention is formed synoptic diagram;

Fig. 3 is the first embodiment schematic flow sheet of the robotization collocation method of distributed system of the present invention;

Fig. 4 is the second embodiment schematic flow sheet of the robotization collocation method of distributed system of the present invention.

Embodiment

To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.

Fig. 1 is that first example structure of server of the present invention is formed synoptic diagram; Said server can be the arbitrary node in the corresponding distributed system, also can be a management server of special setting, and is as shown in Figure 1; Said server comprises: acquisition module 10; Configuration file generation module 20, boot generation module 30 and deployment module 40, wherein

Said acquisition module 10 is used to obtain metadata, and said metadata comprises the Configuration Values of each node relevant configuration item in the distributed system;

Concrete, said acquisition module 10 obtains said metadata can be through providing the mode at configuration file management interface to the user, obtains the common relevant configuration value of each node in the said distributed system of user's input, obtains corresponding metadata.The said metadata that obtains comprises the relevant configuration value of the software environment that respective nodes in the distributed system is common, the relevant configuration value of hardware environment, the directory information that configuration file is stored, configuration item and configuration item span etc.

Said configuration file generation module 20 is used for the metadata obtained according to said acquisition module 10, and according to the preset configuration file template, generates configuration file;

Concrete, said profile template can be provided with and after said metadata moved combination, the configuration file that can obtain forms such as corresponding XML, TXT, CSV was to satisfy the different configuration file format demand of user by the user as required.

Said boot generation module 30 is used for the particular arrangement information according to each node of distributed system, generates the installation boot that is complementary with said particular arrangement information corresponding nodes;

Concrete, said particular arrangement information is the peculiar Configuration Values of each node in the distributed system, for example, the peculiar Configuration Values of a certain node is in the distributed system: 2 CPU, memory size are 1G, Configuration Values such as free disk space size 50G.Installation boot according to said peculiar Configuration Values generation; When sending to node corresponding; The routine package to be installed that these needs upgrade is installed in configuration according to this node, makes after routine package installation to be installed, can give full play to the function of this node.

Said deployment module 40 is used for the configuration file of preset routine package to be installed, the generation of said configuration file generation module and the installation boot that said boot generation module generates are sent to each node of said distributed system.

Concrete, said routine package to be installed is added by the user, is used for upgrading the packet of the corresponding program of each node of distributed system etc.After said routine package to be installed, said configuration file and said installation boot are ready to complete; Said deployment module 40 can send to said routine package to be installed, said configuration file and said installation boot in the network in each node through general agreement; And after sending completion; Send corresponding installation order once more; Start in each node and corresponding boot to be installed, so that the node in the distributed system receives the fitting operation of accomplishing corresponding program to be installed after corresponding routine package to be installed, said configuration file and the said installation boot.

Description through the foregoing description can know that the present invention has the following advantages:

Configuration file all generates at server end with the installation boot; Be sent to each node in the distributed system with routine package to be installed; Need not on distributed node, to install in advance client; When new node adds in the distributed system, all can through puppy parc with configuration file, the node that boot and routine package to be installed send to said new access is installed, all need not each distributed node is done change; Satisfy the demand of robotization; When avoiding client-side program to install or to revise, to the program of all nodes in the distributed system install or revise the problem of big, the easy error of the workload of bringing, provide users with the convenient; Configuration file is split into profile template; Metadata two parts, profile template is supported the configuration file of all text formattings, for example forms such as XML, TXT, CSV; Make management system to reach general purpose without the support major applications program requirements of expansion; Boot according to the particular arrangement of node generates can be done personalized adjustment to configuration file, to give full play to the function of node.

See also Fig. 2 again; Second example structure that is server of the present invention is formed synoptic diagram, and the server in the present embodiment comprises the acquisition module 10 among above-mentioned first embodiment, configuration file generation module 20, boot generation module 30 and deployment module 40; In the present embodiment; Said server also comprises: version management module 50 and receiver module 60, wherein

Said version management module 50 is used for a last configuration file is provided with version information, and preserves a said last configuration file that is provided with version information.

Concrete; When the modification of relevant configuration value is carried out at the configuration file management interface that the user provides through said acquisition module 10; Said configuration file generation module 20 has generated the configuration file before revising according to the profile template of metadata that comprises the Configuration Values before revising and user preset; Configuration file before 50 pairs of said modifications of said version management module is provided with version number; And be kept in the server, so that when Configuration Values is revised configuration file that the back generates and made mistakes when needed, the configuration rollback can be provided.

Said receiver module 60 is used for receiving the installation failure information that the distributed system node sends;

Concrete; One or more node in distributed system routine package failure to be installed according to boot is installed; When the Configuration Values of the software environment in the particular arrangement information of this node that perhaps comprises in the Configuration Values of the software environment of the said node of scanning identification and the said installation boot is not complementary; Can send the information that failure is installed to said server, said receiver module 60 is used to receive the information of said installation failure.

In addition; The installation boot that configuration file that the routine package to be installed that will preset when said deployment module, said configuration file generation module 20 generate and said boot generation module 30 generate sends in the said distributed system behind each node; Also be used for needs according to the user; Each node sends installation order in distributed system, so that the installation boot that the operation of said node receives is accomplished the installation of routine package to be installed.

Concrete, the process that said node is accomplished the installation of routine package to be installed comprises:

The installation boot of node is at first carried out the scanning identification of personalized customization information needed; According to before the particular arrangement information of hardware environment in the particular arrangement information in boot is installed make judgement; Boot is installed through the scanning recognition result, whether decision regenerates configuration file, if environment meets user-defined particular arrangement information before; For example; Memory size is identical with memory size in the particular arrangement information that is provided with before, regenerates configuration file after then revising the relevant Configuration Values like the memory size configuration item in the configuration file, otherwise; Boot is installed sends installation failure information to server, boot stops;

The installation boot of node begins that installation environment is done necessary software environment and detects, and for example: whether the jdk version meets the requirements, and whether required port is occupied etc.; If detect failure, boot transmission installation failure information to be installed to give server, boot stops;

The result in that boot scanning identification is installed of node be the Configuration Values of corresponding configuration item of hardware environment and software environment of this node identical with particular arrangement information after, the installation boot is called routine package to be installed, begins the installation of distributed system;

The installation boot of node also can continue installation process is monitored, if mistake appears in installation process, boot is installed sends installation failure information to server, and boot stops; The installation boot is deployed to correspondence position with configuration file after judging that installation has been accomplished;

The installation boot of node can also be carried out other user-defined orders, for example: start the system's (if the system that is mounted needs to start) that is mounted.These self-defining operation can be by user definition when generating boot.

Said deployment module 40 also is used for when said receiver module 60 receives installation failure information; Also can be according to user's needs; The version information of the configuration file that is provided with according to said version management module 50; The configuration file of the last revision of preserving is sent to the node that the failure information is installed in said transmission, upgrade, realize the configuration rollback so that the node of said installation failure can carry out the installation of routine package to be installed according to the configuration file of last revision.Said installation failure information can be at said node when the Configuration Values of the corresponding configuration item of the software environment of scanning identification installation environment and/or hardware environment and the particular arrangement information in the said installation boot are inequality; Perhaps said installation boot monitors said routine package to be installed when in installation process, makeing mistakes, and sends to server by said node through general host-host protocol.

Further, as shown in Figure 2, the said acquisition module 10 of server comprises: obtain subelement 101 and processing unit 102, wherein,

The said subelement 101 that obtains is used for obtaining through the configuration file management interface that offers the user Configuration Values of each node relevant configuration item of said distributed system of user input;

Said processing unit 102 is used for obtaining the Configuration Values that subelement 101 obtains according to said, revises the Configuration Values of corresponding configuration item in the preset configuration database, obtains the metadata of the Configuration Values of each node corresponding configuration item in the distributed system.

Description through the foregoing description can know that the present invention has the following advantages:

Configuration file all generates at server end with the installation boot; Be sent to each node in the distributed system with routine package to be installed; Need not on distributed node, to install in advance client; When new node adds in the distributed system, all can through puppy parc with configuration file, the node that boot and routine package to be installed send to said new access is installed, all need not each distributed node is done change; Satisfy the demand of robotization; When avoiding client-side program to install or to revise, to the program of all nodes in the distributed system install or revise the problem of big, the easy error of the workload of bringing, provide users with the convenient; Configuration file is split into profile template, metadata two parts, and profile template is supported the configuration file of all text formattings; Xml for example, txt, forms such as csv; Make management system to reach general purpose without the support major applications program requirements of expansion; Boot according to the particular arrangement of node generates can be done personalized adjustment to configuration file, to give full play to the function of node.In addition; For existing configuration file is provided with version number; When the installation that can make node carry out routine package to be installed according to new configuration file makes a mistake, can be configured rollback, make new routine package to be installed can according to before the configuration file of version renewal correctly is installed.

For clearer explanation the present invention, the robotization collocation method in the face of a kind of distributed system of the present invention describes down.

Seeing also Fig. 3, is the first embodiment schematic flow sheet of the robotization collocation method of distributed system of the present invention, and this method comprises:

S301: obtain metadata, said metadata comprises the Configuration Values of each node relevant configuration item in the distributed system;

Concrete, said metadata can be through providing the mode at configuration file management interface to the user, obtains the Configuration Values of the common relevant configuration item of each node in the said distributed system of user's input, obtains corresponding metadata.The said metadata that obtains comprises the relevant configuration value of the software environment that respective nodes in the distributed system is common, the relevant configuration value of hardware environment, the directory information that configuration file is stored, configuration item and configuration item span etc.

S302:, generate configuration file according to said metadata and preset configuration file template;

Concrete, said profile template can be provided with and after said metadata moved combination, the configuration file that can obtain forms such as corresponding XML, TXT, CSV was to satisfy the different configuration file format demand of user by the user as required.

S303:, generate the installation boot that is complementary with said particular arrangement information corresponding nodes according to the particular arrangement information of each node in the distributed system;

Concrete, said particular arrangement information is the peculiar Configuration Values of each node in the distributed system, for example, the peculiar Configuration Values of a certain node is in the distributed system: 2 CPU, memory size are 1G, Configuration Values such as free disk space size 50G.Installation boot according to said peculiar Configuration Values generation; When sending to node corresponding; The routine package to be installed that these needs upgrade is installed in configuration according to this node, makes after routine package installation to be installed, can give full play to the function of this node.

S304: the routine package to be installed that will preset, said configuration file and said installation boot send to each node in the said distributed system.

Concrete, said routine package to be installed is added by the user, is used for upgrading the packet of the corresponding program of each node of distributed system etc.After said routine package to be installed, said configuration file and said installation boot are ready to complete; Can said routine package to be installed, said configuration file and said installation boot be sent in the network in each node through general agreement; And after sending completion; Send corresponding installation order once more; Start in each node and corresponding boot to be installed, so that the node in the distributed system receives the fitting operation of accomplishing corresponding program to be installed after corresponding routine package to be installed, said configuration file and the said installation boot.

Description through the foregoing description can know that the present invention has the following advantages:

Configuration file all generates at server end with the installation boot; Be sent to each node in the distributed system with routine package to be installed; Need not on distributed node, to install in advance client; When new node adds in the distributed system, all can through puppy parc with configuration file, the node that boot and routine package to be installed send to said new access is installed, all need not each distributed node is done change; Satisfy the demand of robotization; When avoiding client-side program to install or to revise, to the program of all nodes in the distributed system install or revise the problem of big, the easy error of the workload of bringing, provide users with the convenient; Configuration file is split into profile template, metadata two parts, and profile template is supported the configuration file of all text formattings; Xml for example, txt, forms such as csv; Make management system to reach general purpose without the support major applications program requirements of expansion; Boot according to the particular arrangement of node generates can be done personalized adjustment to configuration file, to give full play to the function of node.

Seeing also Fig. 4 again, is the second embodiment schematic flow sheet of the robotization collocation method of distributed system of the present invention, and this method comprises:

S401: server obtains the Configuration Values of each node relevant configuration item in the said distributed system of user input through the configuration file management interface that offers the user;

S402: server is revised the Configuration Values of corresponding configuration item in the preset configuration database according to said Configuration Values, obtains comprising the metadata of the Configuration Values of each node corresponding configuration item in the distributed system;

Concrete, can be through the mode at configuration file management interface be provided to the user, obtain the common relevant configuration value of each node in the said distributed system of user's input, obtain corresponding metadata.The said metadata that obtains comprises the Configuration Values of the software environment relevant configuration item that respective nodes in the distributed system is common, the Configuration Values of hardware environment relevant configuration item, the directory information that configuration file is stored, configuration item and configuration item span etc.

S403: server generates configuration file according to said metadata and preset configuration file template;

Concrete, said profile template can be provided with and after said metadata moved combination, the configuration file that can obtain forms such as corresponding XML, TXT, CSV was to satisfy the different configuration file format demand of user by the user as required.

S404: server is provided with version information to a last configuration file, and preserves a said last configuration file that is provided with version information;

Concrete; When the user carries out the modification of relevant configuration value through said configuration file management interface; Server has generated the configuration file before revising according to the profile template of metadata that comprises the Configuration Values before revising and user preset, and said S404 is provided with version number to the configuration file before the said modification, and is kept in the said server; So that when Configuration Values is revised configuration file that the back generates and made mistakes when needed, the configuration rollback can be provided.

S405: server generates the installation boot that is complementary with said particular arrangement information corresponding nodes according to the particular arrangement information of each node in the distributed system;

Concrete, said particular arrangement information is the peculiar Configuration Values of each node in the distributed system, for example, the peculiar Configuration Values of a certain node is in the distributed system: 2 CPU, memory size are 1G, Configuration Values such as free disk space size 50G.Installation boot according to said peculiar Configuration Values generation; When sending to node corresponding; The routine package to be installed that these needs upgrade is installed in configuration according to this node, makes after routine package installation to be installed, can give full play to the function of this node.

S406: the routine package to be installed that server will be preset, said configuration file and said installation boot send to each node in the said distributed system;

Concrete, said routine package to be installed is added by the user, is used for upgrading the packet of the corresponding program of each node of distributed system etc.After said routine package to be installed, said configuration file and said installation boot are ready to complete, can said routine package to be installed, said configuration file and said installation boot be sent to each node in the network through general agreement.

S407: server each node in said distributed system sends installation order;

Concrete; Said S406 is after all nodes of distributed system send completion said routine package to be installed, said configuration file and said installation boot; Send corresponding installation order to all nodes once more; Start in each node and corresponding boot to be installed, so that the node in the distributed system receives the fitting operation of accomplishing corresponding program to be installed after corresponding routine package to be installed, said configuration file and the said installation boot.

S408: after node receives said installation order, the said installation boot that operation receives, said installation boot scans identification to the hardware environment of this node and the Configuration Values of software environment;

Concrete; If hardware environment and the Configuration Values in the software environment in the particular arrangement information of this node that comprises in the hardware environment of the said node of scanning identification and/or the Configuration Values of software environment and the said installation boot are inequality, send installation failure information to server;

When if the hardware environment in the particular arrangement information of this node that comprises in the hardware environment of the said node of scanning identification and the Configuration Values of software environment and the said installation boot is identical with the Configuration Values of software environment; Configuration Values according to the corresponding hardware configuration item in the configuration file of this node of particular arrangement information correction; Generate new configuration file; Said installation boot triggers according to said new configuration file said routine package to be installed is installed; And after installation, with said configuration file stores under the indicated storage directory of the metadata of said configuration file.

S409: the said installation boot of node is monitored the installation process of said routine package to be installed; And when said routine package installation to be installed makes mistakes; Said node returns to said server the failure information is installed, otherwise, return the successful information of installation to said server;

Concrete, when the relevant configuration of the hardware environment of node and software environment was all identical with the particular arrangement of presetting in the distributed system that said S408 scanning identifies, said installation boot starts installed said routine package to be installed; And monitor the installation process of said routine package to be installed; When installation made mistakes, said node returned to said server the failure information is installed, otherwise; Return to said server successful information is installed, notified user installation to make mistakes or install and accomplish.After said installation boot triggers and said routine package to be installed is installed is accomplished, with said configuration file stores under the indicated storage directory of the metadata of said configuration file;

S410: if said server receives when the failure information is installed; Find the configuration file of the last revision of storage according to version information; And to the said last configuration file of node transmission that sends said installation failure information, so that said node is accomplished the installation of said routine package to be installed according to a said last configuration file.

Concrete; Said installation failure information can be at said node when the Configuration Values of the corresponding configuration item of the software environment of scanning identification installation environment and/or hardware environment and the particular arrangement information in the said installation boot are inequality; Perhaps said installation boot monitors said routine package to be installed when in installation process, makeing mistakes, and sends to server by said node through general host-host protocol.

Description through the foregoing description can know that the present invention has the following advantages:

Configuration file all generates at server end with the installation boot; Be sent to each node in the distributed system with routine package to be installed; Need not on distributed node, to install in advance client; When new node adds in the distributed system, all can through puppy parc with configuration file, the node that boot and routine package to be installed send to said new access is installed, all need not each distributed node is done change; Satisfy the demand of robotization; When avoiding client-side program to install or to revise, to the program of all nodes in the distributed system install or revise the problem of big, the easy error of the workload of bringing, provide users with the convenient; Configuration file is split into profile template, metadata two parts, and profile template is supported the configuration file of all text formattings; Xml for example, txt, forms such as csv; Make management system to reach general purpose without the support major applications program requirements of expansion; Boot according to the particular arrangement of node generates can be done personalized adjustment to configuration file, to give full play to the function of node.In addition; For existing configuration file is provided with version number; When the installation that can make node carry out routine package to be installed according to new configuration file makes a mistake, can be configured rollback, make new routine package to be installed can according to before the configuration file of version renewal correctly is installed.

One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method; Be to instruct relevant hardware to accomplish through computer program; Described program can be stored in the computer read/write memory medium; This program can comprise the flow process like the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.

Above disclosedly be merely preferred embodiment of the present invention, can not limit the present invention's interest field certainly with this, the equivalent variations of therefore doing according to claim of the present invention still belongs to the scope that the present invention is contained.

Claims (10)

1. the robotization collocation method of a distributed system is characterized in that, comprising:
Obtain metadata, said metadata comprises the Configuration Values of each node relevant configuration item in the distributed system;
According to said metadata and preset configuration file template, generate configuration file;
According to the particular arrangement information of each node in the distributed system, generate the installation boot that is complementary with said particular arrangement information corresponding nodes;
Preset routine package to be installed, said configuration file and said installation boot are sent to each node in the said distributed system.
2. the method for claim 1 is characterized in that, the said step of obtaining metadata comprises:
Obtain the Configuration Values of each node relevant configuration item in the said distributed system of user input through the configuration file management interface that offers the user;
According to said Configuration Values, revise the Configuration Values of corresponding configuration item in the preset configuration database, obtain comprising the metadata of the Configuration Values of each node corresponding configuration item in the distributed system.
3. method as claimed in claim 2 is characterized in that, and is said according to said metadata and preset configuration file template, generates after the step of configuration file, also comprises:
A last configuration file is provided with version information, and preserves a said last configuration file that is provided with version information.
4. method as claimed in claim 3 is characterized in that, also comprises:
Server each node in said distributed system sends installation order;
After node receives said installation order, the said installation boot that operation receives, said installation boot scans identification to the hardware environment of this node and the Configuration Values of software environment;
If hardware environment and the Configuration Values in the software environment in the particular arrangement information of this node that comprises in the hardware environment of the said node of scanning identification and/or the Configuration Values of software environment and the said installation boot are inequality, send installation failure information to server;
When if the hardware environment in the particular arrangement information of this node that comprises in the hardware environment of the said node of scanning identification and the Configuration Values of software environment and the said installation boot is identical with the Configuration Values of software environment; Configuration Values according to the corresponding hardware configuration item in the configuration file of this node of particular arrangement information correction; Generate new configuration file; Said installation boot triggers according to said new configuration file said routine package to be installed is installed; And after installation, with said configuration file stores under the indicated storage directory of the metadata of said configuration file.
5. method as claimed in claim 4 is characterized in that, said installation boot triggers after the step that said routine package to be installed is installed according to said new configuration file, also comprises:
Said installation boot is monitored the installation process of said routine package to be installed, and when said routine package installation to be installed made mistakes, said node returned to said server the failure information is installed, otherwise, return the successful information of installation to said server.
6. like claim 4 or 5 described methods, it is characterized in that, also comprise:
If said server receives when the failure information is installed; Find the configuration file of the last revision of storage according to version information; And to the said last configuration file of node transmission that sends said installation failure information, so that said node is accomplished the installation of said routine package to be installed according to a said last configuration file.
7. a server is characterized in that, comprising:
Acquisition module is used to obtain metadata, and said metadata comprises the Configuration Values of each node relevant configuration item in the distributed system;
The configuration file generation module is used for the metadata obtained according to said acquisition module, and according to the preset configuration file template, generates configuration file;
The boot generation module is used for the particular arrangement information according to each node of distributed system, generates the installation boot that is complementary with said particular arrangement information corresponding nodes;
Deployment module is used for the configuration file of preset routine package to be installed, the generation of said configuration file generation module and the installation boot that said boot generation module generates are sent to each node of said distributed system.
8. server as claimed in claim 7 is characterized in that, said acquisition module comprises:
Obtain subelement, be used for obtaining the Configuration Values of each node relevant configuration item of said distributed system of user's input through the configuration file management interface that offers the user;
Processing unit is used for obtaining the Configuration Values that subelement obtains according to said, revises the Configuration Values of corresponding configuration item in the preset configuration database, obtains comprising the metadata of the Configuration Values of each node corresponding configuration item in the distributed system.
9. server as claimed in claim 8 is characterized in that, also comprises:
Version management module is used for a last configuration file is provided with version information, and preserves a said last configuration file that is provided with version information.
10. server as claimed in claim 9 is characterized in that,
Said deployment module also is used for sending installation order to each node of said distributed system, so that the installation boot that the operation of said node receives is accomplished the installation of routine package to be installed;
Also comprise receiver module, be used for receiving the installation failure information that the distributed system node sends;
Said deployment module also is used for when said receiver module receives installation failure information; The version information of the configuration file that is provided with according to said version management module; The node of said installation failure the configuration file of the last revision of preserving sent to the node that the failure information is installed in said transmission, so that can carry out the installation of routine package to be installed according to the configuration file of last revision.
CN2010105114814A 2010-10-18 2010-10-18 Method for automatically configuring distributed system, and server CN102455915A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105114814A CN102455915A (en) 2010-10-18 2010-10-18 Method for automatically configuring distributed system, and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105114814A CN102455915A (en) 2010-10-18 2010-10-18 Method for automatically configuring distributed system, and server

Publications (1)

Publication Number Publication Date
CN102455915A true CN102455915A (en) 2012-05-16

Family

ID=46039131

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105114814A CN102455915A (en) 2010-10-18 2010-10-18 Method for automatically configuring distributed system, and server

Country Status (1)

Country Link
CN (1) CN102455915A (en)

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019791A (en) * 2012-12-19 2013-04-03 中国电子科技集团公司第十五研究所 Software deploying method and system
CN103268242A (en) * 2013-06-05 2013-08-28 中国电子科技集团公司第十五研究所 Method and device for installing information system
CN103957204A (en) * 2014-04-23 2014-07-30 福州柏科网安信息技术有限公司 Method for universal adaptation for communication with safety device interfaces
CN104125206A (en) * 2013-04-27 2014-10-29 腾讯科技(深圳)有限公司 Client-side hardware environment adaption method, device, server and system
CN104462180A (en) * 2013-09-24 2015-03-25 乐金信世股份有限公司 Management system and method for a big data processing device
CN104640135A (en) * 2015-01-07 2015-05-20 宇龙计算机通信科技(深圳)有限公司 User configuration information acquiring method and device
CN104780058A (en) * 2014-01-13 2015-07-15 联想(北京)有限公司 Electronic equipment configuration method and system
CN104965741A (en) * 2015-06-30 2015-10-07 浪潮(北京)电子信息产业有限公司 Method and apparatus for installing real-time application clusters
CN105224348A (en) * 2014-06-11 2016-01-06 中兴通讯股份有限公司 A kind of installation method of MySQL database and device
CN105740408A (en) * 2016-01-28 2016-07-06 东软集团股份有限公司 Hadoop cluster calling method and device
CN106033335A (en) * 2015-03-11 2016-10-19 腾讯科技(深圳)有限公司 An installation package generating method and device
CN106301906A (en) * 2016-08-10 2017-01-04 青岛海信传媒网络技术有限公司 Object collocation method based on distributed system and device
US9575660B2 (en) 2013-04-03 2017-02-21 International Business Machines Corporation Flexibly storing defined presets for configuration of storage controller
CN106487582A (en) * 2016-09-21 2017-03-08 努比亚技术有限公司 A kind of method and apparatus of deployment search server
CN106484452A (en) * 2015-08-31 2017-03-08 大唐移动通信设备有限公司 A kind of unified configuring management method of software platform and device
CN106886434A (en) * 2016-12-28 2017-06-23 山西柯睿森信息技术有限公司 A kind of Distributed Application installation method and device
CN103593322B (en) * 2013-11-11 2017-07-07 曙光信息产业(北京)有限公司 The collocation method and device of drive component
CN107092502A (en) * 2017-03-20 2017-08-25 国家电网公司 A kind of application method of automatic configuration and device based on cloud operating system
WO2017161984A1 (en) * 2016-03-24 2017-09-28 中兴通讯股份有限公司 Method, device and system for deploying data clusters, and computer storage medium
CN107273104A (en) * 2016-04-08 2017-10-20 阿里巴巴集团控股有限公司 A kind of processing method and processing device of configuration data structure
CN107506182A (en) * 2017-07-27 2017-12-22 努比亚技术有限公司 Software layout method, software merit rating device and computer-readable recording medium
CN109388411A (en) * 2018-09-29 2019-02-26 广州鼎甲计算机科技有限公司 Distributed software installation method and system based on text interface

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040139294A1 (en) * 2003-01-14 2004-07-15 International Business Machines Corporatin Backup firmware in a distributed system
CN101004691A (en) * 2007-01-23 2007-07-25 北京映翰通网络技术有限公司 Method and device for updating firmware program
CN101425062A (en) * 2007-10-31 2009-05-06 国际商业机器公司 Method and device for generating document content and showing configuration file
CN101699403A (en) * 2009-10-27 2010-04-28 北京锐安科技有限公司 Method for graphically installing distributed system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040139294A1 (en) * 2003-01-14 2004-07-15 International Business Machines Corporatin Backup firmware in a distributed system
CN101004691A (en) * 2007-01-23 2007-07-25 北京映翰通网络技术有限公司 Method and device for updating firmware program
CN101425062A (en) * 2007-10-31 2009-05-06 国际商业机器公司 Method and device for generating document content and showing configuration file
CN101699403A (en) * 2009-10-27 2010-04-28 北京锐安科技有限公司 Method for graphically installing distributed system

Cited By (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019791B (en) * 2012-12-19 2016-08-10 中国电子科技集团公司第十五研究所 Software dispositions method and software deployment system
CN103019791A (en) * 2012-12-19 2013-04-03 中国电子科技集团公司第十五研究所 Software deploying method and system
US9575660B2 (en) 2013-04-03 2017-02-21 International Business Machines Corporation Flexibly storing defined presets for configuration of storage controller
CN104125206B (en) * 2013-04-27 2016-07-27 腾讯科技(深圳)有限公司 The hardware environment adaptation method of a kind of client, device, server and system
CN104125206A (en) * 2013-04-27 2014-10-29 腾讯科技(深圳)有限公司 Client-side hardware environment adaption method, device, server and system
CN103268242A (en) * 2013-06-05 2013-08-28 中国电子科技集团公司第十五研究所 Method and device for installing information system
CN104462180B (en) * 2013-09-24 2019-06-07 乐金信世股份有限公司 Management system and method for big data processing equipment
CN104462180A (en) * 2013-09-24 2015-03-25 乐金信世股份有限公司 Management system and method for a big data processing device
CN103593322B (en) * 2013-11-11 2017-07-07 曙光信息产业(北京)有限公司 The collocation method and device of drive component
CN104780058A (en) * 2014-01-13 2015-07-15 联想(北京)有限公司 Electronic equipment configuration method and system
CN103957204A (en) * 2014-04-23 2014-07-30 福州柏科网安信息技术有限公司 Method for universal adaptation for communication with safety device interfaces
CN103957204B (en) * 2014-04-23 2017-09-15 福建六壬网安股份有限公司 The General adaptive method communicated with security device interfaces
CN105224348A (en) * 2014-06-11 2016-01-06 中兴通讯股份有限公司 A kind of installation method of MySQL database and device
CN104640135A (en) * 2015-01-07 2015-05-20 宇龙计算机通信科技(深圳)有限公司 User configuration information acquiring method and device
US10470033B2 (en) 2015-01-07 2019-11-05 Nanchang Coolpad Intelligent Technology Company Limited Method for acquiring user configuration information and terminal
US10321302B2 (en) 2015-01-07 2019-06-11 Nanchang Coolpad Intelligent Technology Company Limited Method for acquiring use configuration information and terminal
CN104640135B (en) * 2015-01-07 2018-05-15 宇龙计算机通信科技(深圳)有限公司 A kind of user configuration information acquisition methods and device
CN106033335A (en) * 2015-03-11 2016-10-19 腾讯科技(深圳)有限公司 An installation package generating method and device
CN104965741A (en) * 2015-06-30 2015-10-07 浪潮(北京)电子信息产业有限公司 Method and apparatus for installing real-time application clusters
CN106484452B (en) * 2015-08-31 2019-12-06 大唐移动通信设备有限公司 unified configuration management method and device for software platform
CN106484452A (en) * 2015-08-31 2017-03-08 大唐移动通信设备有限公司 A kind of unified configuring management method of software platform and device
CN105740408A (en) * 2016-01-28 2016-07-06 东软集团股份有限公司 Hadoop cluster calling method and device
CN105740408B (en) * 2016-01-28 2019-02-05 东软集团股份有限公司 The method and apparatus for calling hadoop cluster
WO2017161984A1 (en) * 2016-03-24 2017-09-28 中兴通讯股份有限公司 Method, device and system for deploying data clusters, and computer storage medium
CN107273104A (en) * 2016-04-08 2017-10-20 阿里巴巴集团控股有限公司 A kind of processing method and processing device of configuration data structure
CN106301906A (en) * 2016-08-10 2017-01-04 青岛海信传媒网络技术有限公司 Object collocation method based on distributed system and device
CN106301906B (en) * 2016-08-10 2020-02-07 青岛海信传媒网络技术有限公司 Object configuration method and device based on distributed system
CN106487582A (en) * 2016-09-21 2017-03-08 努比亚技术有限公司 A kind of method and apparatus of deployment search server
CN106886434A (en) * 2016-12-28 2017-06-23 山西柯睿森信息技术有限公司 A kind of Distributed Application installation method and device
CN107092502A (en) * 2017-03-20 2017-08-25 国家电网公司 A kind of application method of automatic configuration and device based on cloud operating system
CN107506182A (en) * 2017-07-27 2017-12-22 努比亚技术有限公司 Software layout method, software merit rating device and computer-readable recording medium
CN109388411A (en) * 2018-09-29 2019-02-26 广州鼎甲计算机科技有限公司 Distributed software installation method and system based on text interface

Similar Documents

Publication Publication Date Title
US9338067B2 (en) Network resource deployment for cloud-based services
US9311161B2 (en) Automatically configured management service payloads for cloud IT services delivery
US8924521B2 (en) Automated deployment of software for managed hardware in a storage area network
US7519964B1 (en) System and method for application deployment in a domain for a cluster
US7716373B2 (en) Method, apparatus, and computer product for updating software
US8095923B2 (en) System and method for deploying and managing intelligent nodes in a distributed network
JP5144659B2 (en) Methods, systems, and terminals for maintaining capability management objects and managing capabilities
US8250570B2 (en) Automated provisioning framework for internet site servers
US7124289B1 (en) Automated provisioning framework for internet site servers
TWI227406B (en) System management controller negotiation protocol
CN102006333B (en) Method, system and device for installing software component
US8892700B2 (en) Collecting and altering firmware configurations of target machines in a software provisioning environment
US7330967B1 (en) System and method for injecting drivers and setup information into pre-created images for image-based provisioning
US7703091B1 (en) Methods and apparatus for installing agents in a managed network
US7680907B2 (en) Method and system for identifying and conducting inventory of computer assets on a network
CN103942063B (en) Centralized configuration and remote deployment method for Java Web application
US8050801B2 (en) Dynamically extensible and automatically configurable building automation system and architecture
JP4210155B2 (en) Monitoring system, method and computer program for remotely monitoring devices
CN1988535B (en) Synchronous method, system for file storage and customer terminal
CN102346779B (en) Distributed file system and master control node backup method
CN1407441B (en) System and method for automatic management computer service and programmable device
RU2421785C2 (en) Automated control of device drivers
EP2354875A2 (en) Peer-to-Peer exchange of data resources in a control system
JP5535484B2 (en) Automated software testing framework
US7940407B2 (en) Image forming apparatus, terminal apparatus and management apparatus

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
AD01 Patent right deemed abandoned

Effective date of abandoning: 20120516

C20 Patent right or utility model deemed to be abandoned or is abandoned