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 CN 201010511481 CN201010511481A CN102455915A CN 102455915 A CN102455915 A CN 102455915A CN 201010511481 CN201010511481 CN 201010511481 CN 201010511481 A CN201010511481 A CN 201010511481A CN 102455915 A CN102455915 A CN 102455915A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
configuration
node
distributed system
installation
according
Prior art date
Application number
CN 201010511481
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

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

一种分布式系统的自动化配置方法及服务器 Automated server configuration and a distributed system

技术领域 FIELD

[0001] 本发明涉及分布式系统领域,尤其涉及一种分布式系统的自动化配置方法及服务器 [0001] The present invention relates to the field of distributed systems, and particularly to a distributed system and method for automated configuration server

O O

背景技术 Background technique

[0002] 随着IT行业的发展,分布式环境的系统也越来越多,越来越庞大,有的分布式系统甚至有上百台或者上千台节点,这样庞大系统的部署和维护是件非常枯燥繁琐又容易出错的工作。 [0002] With the development of IT industry, distributed environment system more and more, more and more large, distributed systems and some even have hundreds or thousands of nodes, deploy and maintain such a large system is a very boring tedious and error-prone task.

[0003] 为了解决上述问题,现有技术中的在分布式环境实现环境搭建自动化的方案是通过在分布式环境中的所有机器节点中安装分布式平台单元和执行器,在其中一台机器节点上同时安装分布式平台代理单元、配置文件自动生成模块及待安装程序;在系统管理台配置待安装环境的相关信息并发送至分布式平台代理单元;分布式平台代理单元启动配置文件自动生成模块自动生成环境搭建配置文件;再启动安装程序模块加载版本文件,之后将此版本文件分发到各个待配置机器上的分布式平台单元;各分布式平台单元接收到后,分别启动其所在机器上的执行器,进行版本文件的安装。 [0003] In order to solve the above problems, the prior art implemented in a distributed environment environment building automation program by all machines in a distributed environment nodes in a distributed installation platform unit and actuators, the nodes in one of the machines installed on distributed proxy unit, and the module configuration file to automatically generate the program to be installed; the configuration information to be installed in the environment and sent to the system management station distributed internet proxy unit; distributed internet proxy unit automatically start the profile generation module generation environment profile structures; then start Setup module loading version of the file, this version of the file is then distributed to the respective unit distributed platform to be configured on the machine; each distributed unit after receiving the platform, they are started on the machine actuators, install version of the file.

[0004] 在上述方案中,虽然能够管理分布式集群。 [0004] In the above embodiment, although able to manage distributed cluster. 但是仍然有不少问题无法满足管理需求: But there are still many problems can not meet the management needs:

[0005] 上述方法需要在每个被管理的机器节点中安装分布式平台单元,系统管理台通过与该机器节点的分布式平台单元的交互来完成对配置文件的管理,而如果实现所述分布式平台单元的程序有所修改,则需要对被管理的所有机器节点的分布式平台单元的程序进行更新,如果被管理的分布式环境中的机器节点是一个很大的集群,那么无论是安装或者修改实现所述分布式平台单元的程序,都将是很巨大枯燥的工作,且容易出错; [0005] The method requires that the unit distributed platforms each machine managed node, the system management station to manage the complete configuration file distributed by interacting with the machine platform unit of the node, and if the distribution achieved program platform unit has been modified, you need to program all machines distributed platform unit of the managed nodes to be updated, if the machine is the managed node in a distributed environment is a big cluster, whether it is installed or modify the procedures for the distributed platform unit, it would be a very tedious work great, and error prone;

[0006] 另外,上述方法不能在部署时针对相应的机器配置做个性化的微调。 [0006] Further, the above method can not be configured for deployment when a corresponding machine personalize trimming. 分布式系统中,各个机器的硬件配置并不一定相同,如果对各种不同硬件配置的机器采用统一的配置, 则可能无法充分利用机器的能力。 Distributed system, each machine's hardware configuration is not necessarily the same, if a unified configuration for a variety of different hardware configuration of the machine, you may not be able to fully utilize the capacity of the machine.

发明内容 SUMMARY

[0007] 本发明实施例所要解决的技术问题在于,提供一种分布式系统的自动化配置方法及服务器,仅在分布式系统中的服务器生成配置文件和安装引导程序,避免客户端程序进行安装或者修改时,需要对分布式系统中的所有节点的程序进行安装或者修改所带来的工作量大、容易出错的问题,并且可充分发挥分布式系统中各节点的功能。 [0007] The technical problem to be solved by embodiments of the present invention is to provide an automated configuration method and a distributed server system, the server in a distributed system only generates the configuration files and install the boot program, the client program for installation to avoid or when changes need to be on the program for all nodes in the distributed system or modify the installation workload brought about by error-prone issues, and can give full play to the functions of the distributed system nodes.

[0008] 为了解决上述技术问题,本发明实施例提供了一种分布式系统的自动化配置方法,包括: [0008] To solve the above problems, embodiments of the present invention provides a method for automated configuration of a distributed system, comprising:

[0009] 获取元数据,所述元数据包括分布式系统中各节点相关配置项的配置值; [0009] obtain the metadata, the metadata comprising a configuration item associated configuration values ​​each node in the distributed system;

[0010] 根据所述元数据和预设的配置文件模板,生成配置文件; [0010] The metadata and the preset configuration file template to generate a configuration file;

[0011] 根据分布式系统中各节点的特殊配置信息,生成与所述特殊配置信息对应的节点 [0011] The specific configuration of each node in a distributed system, generate the configuration information corresponding to a particular node

4相匹配的安装引导程序; 4 matches the program guide is mounted;

[0012] 将预设的待安装程序包、所述配置文件以及所述安装引导程序发送给所述分布式系统中各节点。 [0012] The pre-package to be installed, the configuration file and install the program guide transmitting system to the distributed nodes.

[0013] 相应地,本发明实施例还提供了一种服务器,包括: [0013] Accordingly, embodiments of the present invention further provides a server comprising:

[0014] 获取模块,用于获取元数据,所述元数据包括分布式系统中各节点相关配置项的配置值; [0014] acquiring module, for acquiring metadata, the metadata comprising a configuration item associated configuration values ​​each node in the distributed system;

[0015] 配置文件生成模块,用于根据所述获取模块获取的元数据,并根据预设的配置文件模板,生成配置文件; [0015] Configuration file generating module for acquiring the metadata acquiring module, and according to a predetermined profile template, generating the configuration file;

[0016] 引导程序生成模块,用于根据分布式系统中各节点的特殊配置信息,生成与所述特殊配置信息对应的节点相匹配的安装引导程序; [0016] The boot program generation module, depending on the particular configuration information for each node in a distributed system, node generates information corresponding to said specific configuration matches installed boot program;

[0017] 部署模块,用于将预设的待安装程序包、所述配置文件生成模块生成的配置文件以及所述引导程序生成模块生成的安装引导程序发送给所述分布式系统中各节点。 [0017] The deployment module configured to preset the package to be installed, the configuration file generation module generates the configuration files and install the boot program generating module generates a bootstrap sent to each node of the distributed system.

[0018] 实施本发明实施例,具有如下有益效果: [0018] Example embodiments of the present invention has the following advantages:

[0019] 配置文件和安装引导程序均在服务器端生成,随待安装程序包一起发送至分布式系统中的各节点,无需在分布式节点上提前安装客户端,当有新的节点添加到分布式系统中时,都可通过通用协议将配置文件、安装引导程序以及待安装程序包发送给所述新接入的节点,都无需对各个分布式节点做改动,满足自动化的需求,避免客户端程序需要进行安装或者修改时,要对分布式系统中的所有节点的程序进行安装或者修改所带来工作量大、 容易出错的问题,为用户提供了方便;配置文件被拆分成配置文件模板,元数据两部分,配置文件模板支持所有的文本格式的配置文件,例如XML、TXT、CSV等格式,使得管理系统能够不经扩展的支持大部分应用程序需求,达到通用的目的;根据节点的特殊配置生成的引导程序能对配置文件做个性化调整,以充分发挥 [0019] The profile and the mounting guide program generates both the server side, with the installation package to be sent to each node with the distributed system without pre-installed on the distributed client node, when there is a new node is added to the distribution when the systems, can be by a general purpose protocol configuration file, the boot program and install the program to be installed a new packet to the access node you will not need to make changes to each distributed node, to meet the needs of automation, avoiding the client when the program needs to be installed or modified, to carry out the program for all nodes in a distributed system installation or modification brought about by the heavy workload, prone to error problems, provides users with easy; configuration file is split into profile template metadata in two parts, the profile template support all profiles in text format, such as XML, TXT, CSV format, etc., such that system management can be extended without support most application requirements, to achieve a common object; according node special configuration generated program guide can make personalized adjustments to the configuration file, in order to give full play 点的功能。 Point function. 另外,为现有的配置文件设置版本号,可使得节点根据新的配置文件进行待安装程序包的安装发生错误时,能够进行配置回滚,使得新的待安装程序包能够根据之前版本的配置文件正确地进行安装更新。 Further, for the conventional profile version number is set, so that the node can be installed when the installation package to be an error, it can be configured with the new configuration files to roll back, so that the new package can be configured to be installed in accordance with the previous version file correctly install the update.

附图说明 BRIEF DESCRIPTION

[0020] 图1是本发明的服务器的第一实施例结构组成示意图; [0020] FIG. 1 is a server of the first embodiment of the present invention structures a schematic view;

[0021] 图2是本发明的服务器的第二实施例结构组成示意图; [0021] FIG. 2 is a second embodiment of the present invention, the configuration server schematic composition;

[0022] 图3是本发明的分布式系统的自动化配置方法的第一实施例流程示意图; [0022] FIG. 3 is a first embodiment of an automated process to configure a distributed system of the present invention, a schematic view;

[0023] 图4是本发明的分布式系统的自动化配置方法的第二实施例流程示意图。 [0023] FIG. 4 is a schematic diagram of a second embodiment of the process automation system of a distributed configuration method according to the invention.

具体实施方式 detailed description

[0024] 下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。 [0024] below in conjunction with the present invention in the accompanying drawings, technical solutions of embodiments of the present invention are clearly and completely described, obviously, the described embodiments are merely part of embodiments of the present invention, but not all embodiments example. 基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。 Based on the embodiments of the present invention, those of ordinary skill in the art to make all other embodiments without creative work obtained by, it falls within the scope of the present invention.

[0025] 图1是本发明的服务器的第一实施例结构组成示意图,所述服务器可以为相应的分布式系统中的任一节点,也可为专门设置的一个管理服务器,如图1所示,所述服务器包括:获取模块10,配置文件生成模块20、引导程序生成模块30以及部署模块40,其中,[0026] 所述获取模块10,用于获取元数据,所述元数据包括分布式系统中各节点相关配置项的配置值; [0025] FIG. 1 is a first embodiment of the present invention, the structure of the server schematic composition, the server may be any appropriate node in the distributed system, a management server can also be specially provided, as shown in FIG said server comprising: an acquisition module 10, the profile generation module 20, the program guide generation module 30 and deployment module 40, wherein, [0026] the obtaining module 10, configured to obtain metadata, the metadata comprising a distributed system configuration configuration item value of each node;

[0027] 具体的,所述获取模块10获取所述元数据可通过向用户提供配置文件管理界面的方式,获取用户输入的所述分布式系统中各节点所共有的相关配置值,得到相应的元数据。 [0027] Specifically, the acquiring module 10 acquires the metadata provided by the profile management interface to the user mode, access to relevant configuration values ​​are common to the node of the distributed system user input, to give the corresponding metadata. 得到的所述元数据包括分布式系统中相应节点所共有的软件环境的相关配置值、硬件环境的相关配置值、配置文件所存储的目录信息,配置项以及配置项取值范围等。 To give the metadata comprises values ​​distributed system configuration common to the respective nodes of the software environment, the value of the hardware configuration of the environment, the directory information stored in the configuration file, configuration items and the like CI range.

[0028] 所述配置文件生成模块20,用于根据所述获取模块10获取的元数据,并根据预设的配置文件模板,生成配置文件; [0028] The configuration file generating module 20, the module 10 acquires metadata based on the acquisition, and in accordance with a predetermined profile template, generating the configuration file;

[0029] 具体的,所述配置文件模板可由用户根据需要进行设置,和所述元数据进行运行结合后,可得到相应的XML、TXT、CSV等格式的配置文件以满足用户不同的配置文件格式需求。 After [0029] Specifically, the user profile template may be set according to needs, and the combined operation of metadata, to obtain the corresponding profile XML, TXT, CSV format, etc. to meet different user configuration file format demand.

[0030] 所述引导程序生成模块30,用于根据分布式系统中各节点的特殊配置信息,生成与所述特殊配置信息对应的节点相匹配的安装引导程序; [0030] The program guide generating module 30, depending on the particular configuration information for each node in a distributed system, the node generates a special installation and configuration information corresponding to the matched program guide;

[0031] 具体的,所述特殊配置信息为分布式系统中各节点所特有的配置值,例如,分布式系统中某一节点所特有的配置值为:2个CPU,内存大小为1G,剩余硬盘空间大小50G等配置值。 [0031] Specifically, the configuration information specific to each node in a distributed system specific configuration values, for example, a node in a distributed system-specific configuration is: two CPU, memory size is 1G, the remaining 50G hard disk space and other configuration values. 根据所述特有配置值生成的安装引导程序,在发送到相应的节点时,根据该节点的配置安装本次需要更新的待安装程序包,使得在待安装程序包安装完成后,能够充分发挥该节点的功能。 The mounting of the boot program specific configuration values ​​generated, when transmitted to the corresponding node, need to be updated to install this package to be installed according to the configuration of the node, such that the package to be installed after the installation is complete, can sufficiently exhibit the function nodes.

[0032] 所述部署模块40,用于将预设的待安装程序包、所述配置文件生成模块生成的配置文件以及所述引导程序生成模块生成的安装引导程序发送给所述分布式系统中各节点。 [0032] The deployment module 40 is configured to be pre-installation package, the configuration file generating module generates a configuration file and generating the program guide generated by the installation guide program module is sent to the distributed system each node.

[0033] 具体的,所述待安装程序包是由用户添加的,用于更新分布式系统中各节点相应的程序等的数据包。 [0033] Specifically, the installation package is to be added by the user, a distributed system for updating the program or the like corresponding to the nodes of the data packet. 在所述待安装程序包、所述配置文件以及所述安装引导程序准备完成后,所述部署模块40可通过通用的协议将所述待安装程序包、所述配置文件以及所述安装引导程序发送到网络中各个节点中,并在发送完成后,再次发送相应的安装命令,启动各节点中相应的安装引导程序,以使分布式系统中的节点接收到相应待安装程序包、所述配置文件以及所述安装引导程序后完成相应的待安装程序的安装操作。 After the package is to be installed, the configuration file and install the program guide ready, the deployment module 40 may be mounted to the package through a common protocol, the configuration file and the install program guide sent to each node in the network, and the transmission is completed, the respective mounting retransmission command to start each node in a corresponding mounting boot program, a distributed system to a node receiving a respective package to be installed, the configuration and completing the mounting operation corresponding to the file to be mounted after the mounting of the boot procedure program.

[0034] 通过上述实施例的描述可知,本发明具有以下优点: [0034] By the above-described embodiments described above, the present invention has the following advantages:

[0035] 配置文件和安装引导程序均在服务器端生成,随待安装程序包一起发送至分布式系统中的各节点,无需在分布式节点上提前安装客户端,当有新的节点添加到分布式系统中时,都可通过通用协议将配置文件、安装引导程序以及待安装程序包发送给所述新接入的节点,都无需对各个分布式节点做改动,满足自动化的需求,避免客户端程序需要进行安装或者修改时,要对分布式系统中的所有节点的程序进行安装或者修改所带来工作量大、 容易出错的问题,为用户提供了方便;配置文件被拆分成配置文件模板,元数据两部分,配置文件模板支持所有的文本格式的配置文件,例如XML、TXT、CSV等格式,使得管理系统能够不经扩展的支持大部分应用程序需求,达到通用的目的;根据节点的特殊配置生成的引导程序能对配置文件做个性化调整,以充分发挥 [0035] The profile and the mounting guide server side programs are generated, to be installed with the package to be sent with each node in the distributed system without pre-installed on the distributed client node, when there is a new node is added to the distribution when the systems, can be by a general purpose protocol configuration file, the boot program and install the program to be installed a new packet to the access node you will not need to make changes to each distributed node, to meet the needs of automation, avoiding the client when the program needs to be installed or modified, to carry out the program for all nodes in a distributed system installation or modification brought about by the heavy workload, prone to error problems, provides users with easy; configuration file is split into profile template metadata in two parts, the profile template support all profiles in text format, such as XML, TXT, CSV format, etc., such that system management can be extended without support most application requirements, to achieve a common object; according node special configuration generated program guide can make personalized adjustments to the configuration file, in order to give full play 点的功能。 Point function.

[0036] 再请参见图2,是本发明的服务器的第二实施例结构组成示意图,本实施例中的服务器包括上述第一实施例中的获取模块10,配置文件生成模块20、引导程序生成模块30以及部署模块40,在本实施例中,所述服务器还包括:版本管理模块50和接收模块60,其中,[0037] 所述版本管理模块50,用于对上一配置文件设置版本信息,并保存所述设置了版本信息的上一配置文件。 [0036] Referring again to Figure 2, a second embodiment of the present invention, the configuration server schematic composition of the present embodiment comprises a server in the first embodiment of acquisition module 10, the profile generation module 20, the guide program generates module 30 and deployment module 40, in the present embodiment, the server further comprising: a version management module 50 and receiver module 60, wherein, [0037] the version management module 50 for information on a version of the profile settings and save the settings on a configuration file version information.

[0038] 具体的,在用户通过所述获取模块10提供的配置文件管理界面进行相关配置值的修改时,所述配置文件生成模块20已根据包括修改之前的配置值的元数据与用户预设的配置文件模板生成了修改之前的配置文件,所述版本管理模块50对所述修改之前的配置文件设置版本号,并保存在服务器中,以便于在需要时配置值修改后生成的配置文件出错时,能够提供配置回滚。 [0038] Specifically, when the user acquired by the module 10 to provide the profile management interface modifying configuration values, the configuration file generating module 20 according to the preset metadata includes user configuration values ​​before modification the profile template configuration files generated before the modification, prior to the 50 pairs of the version management module modifies the configuration file version number is set and stored in the server, the configuration values ​​in order to modify the generated configuration file error if necessary when that provides configuration rollback.

[0039] 所述接收模块60,用于接收分布式系统中节点发送的安装失败提示信息; [0039] The receiving module 60 for receiving mounting the distributed system failure prompt information sent by the node;

[0040] 具体的,当分布式系统中的一个或者多个节点根据安装引导程序安装待安装程序包失败,或者扫描识别的所述节点的软件环境的配置值与所述安装引导程序中包括的该节点的特殊配置信息中的软件环境的配置值不相匹配时,会向所述服务器发送安装失败的提示信息,所述接收模块60用于接收所述安装失败的提示信息。 [0040] Specifically, when one or more nodes in a distributed system to be installed according to the installation program to install the boot package fails, the value of scan configuration or software environment of the node identified with the mounting of the boot program comprises when the value of the special configuration software configuration information of the node in the environment do not match, the message will fail to install the server transmits the message receiving module 60 for receiving the mounting failure.

[0041] 另外,当所述部署模块将预设的待安装程序包、所述配置文件生成模块20生成的配置文件以及所述引导程序生成模块30生成的安装引导程序发送给所述分布式系统中各节点后,还用于根据用户的需要,向分布式系统中各节点发送安装命令,以使所述节点运行接收到的安装引导程序完成待安装程序包的安装。 [0041] Further, when the pre-deployment module package to be installed, the configuration file generating module 20 generates the guide profiles and mounting program generating module 30 generates a program guide is sent to the distributed system after each node is further configured according to the needs of users, sending commands to the installation of each node in a distributed system, so that the node received the installation guide running the installation program packages to be installed.

[0042] 具体的,所述节点完成待安装程序包的安装的过程包括: [0042] Specifically, the node to be installed during the installation of the package comprising:

[0043] 节点的安装引导程序首先进行个性化定制所需信息的扫描识别,根据之前在安装引导程序中的特殊配置信息中的硬件环境的特殊配置信息做出判断,安装引导程序通过扫描识别结果,决定是否重新生成配置文件,如果环境符合之前用户定义的特殊配置信息,例如,内存大小与之前设置的特殊配置信息中的内存大小相同,则修改配置文件中的相关如内存大小配置项的配置值后重新生成配置文件,否则,安装引导程序发送安装失败提示信息给服务器,引导程序停止; [0043] First, install the bootstrap node is required to be personalized scan identification information, make decisions based on the configuration information of the special configuration information prior to the installation of special boot program in the hardware environment, the installation guide by the scanning program recognition result , to decide whether to regenerate the configuration file, if a particular configuration prior to environment meets the user-defined, e.g., memory size and the specific configuration information previously set in the memory of the same size, modifying the configuration file related, such as memory size configuration item configuration to regenerate the configuration file value, otherwise, the boot program installation failure message sent to the server installed, the boot procedure is stopped;

[0044] 节点的安装引导程序开始对安装环境做必要的软件环境检测,例如:jdk版本是否符合要求,所需端口是否已经被占用等;如果检测失败,安装弓I导程序发送安装失败提示信息给服务器,引导程序停止; [0044] bootstrap node installation of the necessary software start doing environmental testing on the installation environment, for example: jdk version meets the requirements needed if the port is already occupied and so on; If the test fails, the installation program guides bow I send the installation failed message to the server, the boot program is stopped;

[0045] 节点的在安装引导程序扫描识别的结果为该节点的硬件环境和软件环境的相应配置项的配置值与特殊配置信息相同后,安装引导程序调用待安装程序包,开始分布式系统的安装; [0045] The nodes in the installation of the scanning and recognition result of the boot program after the same specific configuration information, the boot program for the installation of hardware configuration and software environment values ​​of the nodes corresponding configuration item to be invoked installation package, distributed system start installation;

[0046] 节点的安装引导程序还会继续对安装过程进行监测,如果安装过程出现错误,安装引导程序发送安装失败提示信息给服务器,引导程序停止;安装引导程序判断安装已经完成后,将配置文件部署到对应位置; [0046] Installation of the boot program node will continue to monitor the installation process, if an error occurs during the installation, the installation program boot failure message sent to the server installed, the boot program is stopped; install boot program determines after the installation has been completed, the profile deployed to a corresponding location;

[0047] 节点的安装引导程序还可以执行其他用户定义的命令,例如:启动被安装的系统(如果被安装系统需要启动的话)。 [0047] The boot program installed nodes may also perform other user-defined commands, for example: to start the system is installed (if required by the installation system started). 这些自定义操作可以在生成引导程序时由用户定义。 These custom actions may be defined by the user when generating a boot program.

[0048] 所述部署模块40还用于当所述接收模块60接收到安装失败提示信息时,还可根据用户的需要,根据所述版本管理模块50设置的配置文件的版本信息,将保存的上一版本的配置文件发送给所述发送安装失败提示信息的节点,以使所述安装失败的节点能够根据上一版本的配置文件进行待安装程序包的安装更新,实现配置回滚。 [0048] The deployment module 40 is further configured to, when the receiving module 60 receives a failure message to the mounting, also based on user needs, according to the configuration file version information of the version management module 50 is disposed, will be stored send a version of the configuration file to the message transmitting node failure mounted to the mounting failure of the node to be capable of mounting to install the update package, in accordance with the implemented configuration rollback a version of the profile. 所述安装失败提示信息可以是在所述节点在扫描识别安装环境的软件环境和/或硬件环境的相应配置项的配置值与所述安装引导程序中的特殊配置信息不相同时,或者所述安装引导程序监测到所述待安装程序包在安装过程中出错时,由所述节点通过通用的传输协议发送给服务器。 The failure message may be mounted at the node configuration information in a specific configuration values ​​corresponding configuration item scanning and recognition software environment of the installation environment, and / or hardware environment of the installation boot program is not the same, or the install the boot program to the monitor program packages to be installed during the installation process an error when sent to the server through a common transport protocol by the node.

[0049] 进一步的,如图2所示,服务器的所述获取模块10包括:获取子单元101和处理单元102,其中, [0049] Further, as shown in FIG 2, the server obtaining module 10 comprises: acquisition sub-unit 101 and processing unit 102, wherein,

[0050] 所述获取子单元101,用于通过提供给用户的配置文件管理界面获取用户输入的所述分布式系统中各节点相关配置项的配置值; [0050] The acquisition sub-unit 101, configured to obtain the configuration values ​​of configuration items related nodes of the distributed system by providing user input to a user profile management interface;

[0051] 所述处理单元102,用于根据所述获取子单元101获取的配置值,修改预设的配置数据库中相应配置项的配置值,得到分布式系统中各节点相应配置项的配置值的元数据。 [0051] The processing unit 102, according to the configuration values ​​used for obtaining the sub-unit 101 acquires, modify the configuration value of the corresponding configuration item preset configuration database, arranged to obtain a value corresponding to each node in a distributed system configuration items metadata.

[0052] 通过上述实施例的描述可知,本发明具有以下优点: [0052] The above description of the embodiments above, the present invention has the following advantages:

[0053] 配置文件和安装引导程序均在服务器端生成,随待安装程序包一起发送至分布式系统中的各节点,无需在分布式节点上提前安装客户端,当有新的节点添加到分布式系统中时,都可通过通用协议将配置文件、安装引导程序以及待安装程序包发送给所述新接入的节点,都无需对各个分布式节点做改动,满足自动化的需求,避免客户端程序需要进行安装或者修改时,要对分布式系统中的所有节点的程序进行安装或者修改所带来工作量大、 容易出错的问题,为用户提供了方便;配置文件被拆分成配置文件模板,元数据两部分,配置文件模板支持所有的文本格式的配置文件,例如xml,txt, csv等格式,使得管理系统能够不经扩展的支持大部分应用程序需求,达到通用的目的;根据节点的特殊配置生成的引导程序能对配置文件做个性化调整,以充分发挥节 [0053] The profile and the mounting guide server side programs are generated, to be installed with the package to be sent with each node in the distributed system without pre-installed on the distributed client node, when there is a new node is added to the distribution when the systems, can be by a general purpose protocol configuration file, the boot program and install the program to be installed a new packet to the access node you will not need to make changes to each distributed node, to meet the needs of automation, avoiding the client when the program needs to be installed or modified, to carry out the program for all nodes in a distributed system installation or modification brought about by the heavy workload, prone to error problems, provides users with easy; configuration file is split into profile template metadata in two parts, the profile template support all profiles text format, e.g. xml, txt, csv format, so that the system can manage without the extended support most application requirements, to achieve a common object; according node special configuration generated program guide can make personalized adjustments to the configuration file, in order to give full play to festival 点的功能。 Point function. 另外,为现有的配置文件设置版本号,可使得节点根据新的配置文件进行待安装程序包的安装发生错误时,能够进行配置回滚,使得新的待安装程序包能够根据之前版本的配置文件正确地进行安装更新。 Further, for the conventional profile version number is set, so that the node can be installed when the installation package to be an error, it can be configured with the new configuration files to roll back, so that the new package can be configured to be installed in accordance with the previous version file correctly install the update.

[0054] 为了更清楚的说明本发明,下面对本发明的一种分布式系统的自动化配置方法进行说明。 [0054] In order to more clearly illustrate the present invention, the following method for automated configuration of a distributed system according to the present invention will be described.

[0055] 请参见图3,是本发明的分布式系统的自动化配置方法的第一实施例流程示意图, 该方法包括: [0055] Referring to Figure 3, a schematic flow diagram of a first example embodiment of the automated configuration method of the present invention a distributed system, the method comprising:

[0056] S301 :获取元数据,所述元数据包括分布式系统中各节点相关配置项的配置值; [0056] S301: acquiring metadata, the metadata comprising a configuration item associated configuration values ​​each node in the distributed system;

[0057] 具体的,所述元数据可通过向用户提供配置文件管理界面的方式,获取用户输入的所述分布式系统中各节点所共有的相关配置项的配置值,得到相应的元数据。 [0057] Specifically, the metadata can provide a user profile management interface, it will get the value of the configuration item configuration common to each node of the distributed system user input, to give the corresponding metadata. 得到的所述元数据包括分布式系统中相应节点所共有的软件环境的相关配置值、硬件环境的相关配置值、配置文件所存储的目录信息,配置项以及配置项取值范围等。 To give the metadata comprises values ​​distributed system configuration common to the respective nodes of the software environment, the value of the hardware configuration of the environment, the directory information stored in the configuration file, configuration items and the like CI range.

[0058] S302 :根据所述元数据和预设的配置文件模板,生成配置文件; [0058] S302: according to the metadata and preset configuration file template to generate a configuration file;

[0059] 具体的,所述配置文件模板可由用户根据需要进行设置,和所述元数据进行运行结合后,可得到相应的XML、TXT、CSV等格式的配置文件以满足用户不同的配置文件格式需求。 After [0059] Specifically, the user profile template may be set according to needs, and the combined operation of metadata, to obtain the corresponding profile XML, TXT, CSV format, etc. to meet different user configuration file format demand.

[0060] S303 :根据分布式系统中各节点的特殊配置信息,生成与所述特殊配置信息对应的节点相匹配的安装引导程序; [0060] S303: The specific configuration of each node in a distributed system, node generates information corresponding to said specific configuration matches installed boot program;

[0061] 具体的,所述特殊配置信息为分布式系统中各节点所特有的配置值,例如,分布式系统中某一节点所特有的配置值为:2个CPU,内存大小为1G,剩余硬盘空间大小50G等配置值。 [0061] Specifically, the configuration information specific to each node in a distributed system specific configuration values, for example, a node in a distributed system-specific configuration is: two CPU, memory size is 1G, the remaining 50G hard disk space and other configuration values. 根据所述特有配置值生成的安装引导程序,在发送到相应的节点时,根据该节点的配置安装本次需要更新的待安装程序包,使得在待安装程序包安装完成后,能够充分发挥该节点的功能。 The mounting of the boot program specific configuration values ​​generated, when transmitted to the corresponding node, need to be updated to install this package to be installed according to the configuration of the node, such that the package to be installed after the installation is complete, can sufficiently exhibit the function nodes.

[0062] S304:将预设的待安装程序包、所述配置文件以及所述安装引导程序发送给所述分布式系统中各节点。 [0062] S304: The default package to be installed, the configuration file and the install program guide transmitting system to the distributed nodes.

[0063] 具体的,所述待安装程序包是由用户添加的,用于更新分布式系统中各节点相应的程序等的数据包。 [0063] Specifically, the installation package is to be added by the user, a distributed system for updating the program or the like corresponding to the nodes of the data packet. 在所述待安装程序包、所述配置文件以及所述安装引导程序准备完成后,可通过通用的协议将所述待安装程序包、所述配置文件以及所述安装引导程序发送到网络中各个节点中,并在发送完成后,再次发送相应的安装命令,启动各节点中相应的安装引导程序,以使分布式系统中的节点接收到相应待安装程序包、所述配置文件以及所述安装引导程序后完成相应的待安装程序的安装操作。 After the package is to be installed, the configuration file and install the program guide ready, by the common protocol packages to be installed, the configuration file and install the program guide is sent to the respective network node, and the transmission is completed, the respective mounting retransmission command to start each node in a corresponding mounting boot program, a distributed system to a node receiving a respective package to be installed, the configuration file and the mounting after the completion of the mounting operation corresponding boot program to be setup.

[0064] 通过上述实施例的描述可知,本发明具有以下优点: [0064] By the above-described embodiments described above, the present invention has the following advantages:

[0065] 配置文件和安装引导程序均在服务器端生成,随待安装程序包一起发送至分布式系统中的各节点,无需在分布式节点上提前安装客户端,当有新的节点添加到分布式系统中时,都可通过通用协议将配置文件、安装引导程序以及待安装程序包发送给所述新接入的节点,都无需对各个分布式节点做改动,满足自动化的需求,避免客户端程序需要进行安装或者修改时,要对分布式系统中的所有节点的程序进行安装或者修改所带来工作量大、 容易出错的问题,为用户提供了方便;配置文件被拆分成配置文件模板,元数据两部分,配置文件模板支持所有的文本格式的配置文件,例如xml,txt, csv等格式,使得管理系统能够不经扩展的支持大部分应用程序需求,达到通用的目的;根据节点的特殊配置生成的引导程序能对配置文件做个性化调整,以充分发挥节 [0065] The profile and the mounting guide program generates both the server side, with the installation package to be sent to each node with the distributed system without pre-installed on the distributed client node, when there is a new node is added to the distribution when the systems, can be by a general purpose protocol configuration file, the boot program and install the program to be installed a new packet to the access node you will not need to make changes to each distributed node, to meet the needs of automation, avoiding the client when the program needs to be installed or modified, to carry out the program for all nodes in a distributed system installation or modification brought about by the heavy workload, prone to error problems, provides users with easy; configuration file is split into profile template metadata in two parts, the profile template support all profiles text format, e.g. xml, txt, csv format, so that the system can manage without the extended support most application requirements, to achieve a common object; according node special configuration generated program guide can make personalized adjustments to the configuration file, in order to give full play to festival 点的功能。 Point function.

[0066] 再请参见图4,是本发明的分布式系统的自动化配置方法的第二实施例流程示意图,该方法包括: [0066] Referring again to Figure 4, a schematic flow diagram of a second example embodiment of the automated configuration method of the present invention a distributed system, the method comprising:

[0067] S401 :服务器通过提供给用户的配置文件管理界面获取用户输入的所述分布式系统中各节点相关配置项的配置值; [0067] S401: obtaining the configuration server configuration items related values ​​each node of the distributed system by providing user input to a user profile management interface;

[0068] S402:服务器根据所述配置值,修改预设的配置数据库中相应配置项的配置值,得到包括分布式系统中各节点相应配置项的配置值的元数据; [0068] S402: the configuration server according to the value, modify the configuration item corresponding configuration values ​​preset configuration database, arranged to obtain metadata includes values ​​of configuration items corresponding node in the distributed system;

[0069] 具体的,可通过向用户提供配置文件管理界面的方式,获取用户输入的所述分布式系统中各节点所共有的相关配置值,得到相应的元数据。 [0069] Specifically, by providing a user profile management interface, you will get configuration values ​​are common to the node of the distributed system user input, to give the corresponding metadata. 得到的所述元数据包括分布式系统中相应节点所共有的软件环境相关配置项的配置值、硬件环境相关配置项的配置值、 配置文件所存储的目录信息,配置项以及配置项取值范围等。 To give the metadata comprises content information related to the software environment configuration values ​​of configuration items common to the respective nodes in the distributed system, configuration values ​​associated hardware environment configuration items, configuration file is stored, and CI CI range Wait.

[0070] S403 :服务器根据所述元数据和预设的配置文件模板,生成配置文件; [0070] S403: The server the metadata and preset configuration file template to generate a configuration file;

[0071] 具体的,所述配置文件模板可由用户根据需要进行设置,和所述元数据进行运行结合后,可得到相应的XML、TXT、CSV等格式的配置文件以满足用户不同的配置文件格式需求。 After [0071] Specifically, the user profile template may be set according to needs, and the combined operation of metadata, to obtain the corresponding profile XML, TXT, CSV format, etc. to meet different user configuration file format demand.

[0072] S404 :服务器对上一配置文件设置版本信息,并保存所述设置了版本信息的上一配置文件; [0072] S404: the server set the version information on a configuration file, and saving the profile is provided on a version information;

[0073] 具体的,在用户通过所述配置文件管理界面进行相关配置值的修改时,服务器已根据包括修改之前的配置值的元数据与用户预设的配置文件模板生成了修改之前的配置文件,所述S404对所述修改之前的配置文件设置版本号,并保存在所述服务器中,以便于在需要时配置值修改后生成的配置文件出错时,能够提供配置回滚。 [0073] Specifically, when the user profile management interface to modify the configuration values, the server configuration file has been generated before modifying the configuration according to the value before modification include the user metadata and preset configuration file templates , the configuration file version number is set prior to the modification S404 pairs and stored in the server, so that when generating the configuration values ​​needed to modify the configuration file error, can be arranged to provide rollback. [0074] S405 :服务器根据分布式系统中各节点的特殊配置信息,生成与所述特殊配置信息对应的节点相匹配的安装引导程序; [0074] S405: The server specific configuration information of each node in a distributed system, node generates information corresponding to said specific configuration matches installed boot program;

[0075] 具体的,所述特殊配置信息为分布式系统中各节点所特有的配置值,例如,分布式系统中某一节点所特有的配置值为:2个CPU,内存大小为1G,剩余硬盘空间大小50G等配置值。 [0075] Specifically, the configuration information specific to each node in a distributed system specific configuration values, for example, a node in a distributed system-specific configuration is: two CPU, memory size is 1G, the remaining 50G hard disk space and other configuration values. 根据所述特有配置值生成的安装引导程序,在发送到相应的节点时,根据该节点的配置安装本次需要更新的待安装程序包,使得在待安装程序包安装完成后,能够充分发挥该节点的功能。 The mounting of the boot program specific configuration values ​​generated, when transmitted to the corresponding node, need to be updated to install this package to be installed according to the configuration of the node, such that the package to be installed after the installation is complete, can sufficiently exhibit the function nodes.

[0076] S406:服务器将预设的待安装程序包、所述配置文件以及所述安装引导程序发送给所述分布式系统中各节点; [0076] S406: the server will be preset installation package, and the configuration file is sent to the mounting of the boot program of each node in the distributed system;

[0077] 具体的,所述待安装程序包是由用户添加的,用于更新分布式系统中各节点相应的程序等的数据包。 [0077] Specifically, the installation package is to be added by the user, a distributed system for updating the program or the like corresponding to the nodes of the data packet. 在所述待安装程序包、所述配置文件以及所述安装引导程序准备完成后,可通过通用的协议将所述待安装程序包、所述配置文件以及所述安装引导程序发送给网络中各个节点。 After the package is to be installed, the configuration file and the mounting ready boot program, the program may be installed by the common protocol packet, the configuration file and the mounting guide of each program to the network node.

[0078] S407 :服务器向所述分布式系统中各节点发送安装命令; [0078] S407: the server sends a command to the installation of each node in the distributed system;

[0079] 具体的,所述S406向分布式系统所有节点发送完成所述待安装程序包、所述配置文件以及所述安装引导程序后,再次向所有节点发送相应的安装命令,启动各节点中相应的安装引导程序,以使分布式系统中的节点接收到相应待安装程序包、所述配置文件以及所述安装引导程序后完成相应的待安装程序的安装操作。 [0079] Specifically, the S406 is completed for all nodes of a distributed transmission system of the package to be installed, the configuration file and install the rear boot program, again sends a corresponding command to install all nodes, each node starts respective mounting boot program, a distributed system to a node receiving a respective package to be installed, the installation configuration file and the mounting operation corresponding to the program to be installed after the boot program.

[0080] S408:节点接收到所述安装命令后,运行接收到的所述安装引导程序,所述安装引导程序对该节点的硬件环境和软件环境的配置值进行扫描识别; [0080] S408: After receiving the install command node, the mounting operation of the received boot program, the boot program to install the value of the hardware configuration and software environment scanning node identification;

[0081] 具体的,若扫描识别的所述节点的硬件环境和/或软件环境的配置值与所述安装引导程序中包括的该节点的特殊配置信息中的硬件环境和软件环境中的配置值不相同,向服务器发送安装失败提示信息; [0081] Specifically, if the scanning and recognition hardware environment of the node and / or configuration values ​​software environment configuration value in the configuration information specific hardware and software environment of the boot program to install the node included in the are not the same, the installation failure message sent to the server;

[0082] 若扫描识别的所述节点的硬件环境和软件环境的配置值与所述安装引导程序中包括的该节点的特殊配置信息中的硬件环境和软件环境的配置值相同时,根据特殊配置信息修改该节点的配置文件中的相应硬件配置项的配置值,生成新的配置文件,所述安装引导程序根据所述新的配置文件触发安装所述待安装程序包,并在安装完成后,将所述配置文件存储在所述配置文件的元数据所指示的存储目录下。 [0082] If the value of the hardware configuration and software environment of the node identified by scanning the particular installation configuration value configuration information of the node boot program included in the hardware and software environment are the same, depending on the particular configuration modifying the appropriate hardware profile information of the node in the configuration value of the item, a new configuration file, the mounting of the boot program is triggered mounting package to be installed according to the new configuration file, and upon completion of the installation, the configuration file is stored in the configuration file storage directory indicated by the metadata.

[0083] S409 :节点的所述安装引导程序监测所述待安装程序包的安装过程,并在所述待安装程序包安装出错时,所述节点向所述服务器返回安装失败提示信息,否则,向所述服务器返回安装成功提示信息; [0083] S409: The node monitoring installation process to install the boot program packages to be installed and to be installed in the installation package error, the node returns a failure message to the server installation, otherwise, to the server returns a successful installation message;

[0084] 具体的,所述S408扫描识别出的分布式系统中节点的硬件环境和软件环境的相关配置均与预设的特殊配置相同时,所述安装引导程序启动安装所述待安装程序包,并监测所述待安装程序包的安装过程,当安装出错时,所述节点向所述服务器返回安装失败提示信息,否则,向所述服务器返回安装成功提示信息,已通知用户安装出错或者安装已完成。 [0084] Specifically, the configuration of the hardware and software environment of the scan S408 identified nodes in the system are distributed with a preset special configuration simultaneously with the mounting of the boot program start the installation package to be installed and monitor to be installed during the installation of the package, when the installation error, the node returns a failure message to the mounted server, otherwise, the server returns the message successfully installed, installation error, or notify the user has to install completed. 所述安装引导程序触发安装所述待安装程序包完成后,将所述配置文件存储在所述配置文件的元数据所指示的存储目录下; After the mounting of the boot program to be triggered mounting installation package is completed, the configuration file is stored in a storage directory of the metadata profile indicated;

[0085] S410:若所述服务器接收到安装失败提示信息时,根据版本信息查找到存储的上一版本的配置文件,并向发送所述安装失败提示信息的节点发送所述上一配置文件,以使所述节点根据所述上一配置文件完成所述待安装程序包的安装。 [0085] S410: If the server receives the installation failure message, according to the version information to locate a stored version of the configuration file, and send the prompt installation failed node sending the information on a configuration file, so that the node to complete the installation of the program to be installed on a package according to the configuration file.

[0086] 具体的,所述安装失败提示信息可以是在所述节点在扫描识别安装环境的软件环境和/或硬件环境的相应配置项的配置值与所述安装引导程序中的特殊配置信息不相同时,或者所述安装引导程序监测到所述待安装程序包在安装过程中出错时,由所述节点通过通用的传输协议发送给服务器。 [0086] Specifically, the mounting failure message may not be disposed at the node specific configuration values ​​corresponding configuration item environmental scanning and recognition software installation environment and / or hardware environment of the installation program guide information the same, or the mounting of the boot program to be monitored when an error occurs in the installation package installation process, sent to the server through a common transport protocol by the node.

[0087] 通过上述实施例的描述可知,本发明具有以下优点: [0087] By the above-described embodiments described above, the present invention has the following advantages:

[0088] 配置文件和安装引导程序均在服务器端生成,随待安装程序包一起发送至分布式系统中的各节点,无需在分布式节点上提前安装客户端,当有新的节点添加到分布式系统中时,都可通过通用协议将配置文件、安装引导程序以及待安装程序包发送给所述新接入的节点,都无需对各个分布式节点做改动,满足自动化的需求,避免客户端程序需要进行安装或者修改时,要对分布式系统中的所有节点的程序进行安装或者修改所带来工作量大、 容易出错的问题,为用户提供了方便;配置文件被拆分成配置文件模板,元数据两部分,配置文件模板支持所有的文本格式的配置文件,例如xml,txt, csv等格式,使得管理系统能够不经扩展的支持大部分应用程序需求,达到通用的目的;根据节点的特殊配置生成的引导程序能对配置文件做个性化调整,以充分发挥节 [0088] The profile and the mounting guide program generates both the server side, with the installation package to be sent to each node with the distributed system without pre-installed on the distributed client node, when there is a new node is added to the distribution when the systems, can be by a general purpose protocol configuration file, the boot program and install the program to be installed a new packet to the access node you will not need to make changes to each distributed node, to meet the needs of automation, avoiding the client when the program needs to be installed or modified, to carry out the program for all nodes in a distributed system installation or modification brought about by the heavy workload, prone to error problems, provides users with easy; configuration file is split into profile template metadata in two parts, the profile template support all profiles text format, e.g. xml, txt, csv format, so that the system can manage without the extended support most application requirements, to achieve a common object; according node special configuration generated program guide can make personalized adjustments to the configuration file, in order to give full play to festival 点的功能。 Point function. 另外,为现有的配置文件设置版本号,可使得节点根据新的配置文件进行待安装程序包的安装发生错误时,能够进行配置回滚,使得新的待安装程序包能够根据之前版本的配置文件正确地进行安装更新。 Further, for the conventional profile version number is set, so that the node can be installed when the installation package to be an error, it can be configured with the new configuration files to roll back, so that the new package can be configured to be installed in accordance with the previous version file correctly install the update.

[0089] 本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。 [0089] Those of ordinary skill in the art may understand that the above-described method embodiments all or part of the processes may be related hardware instructed by a computer program, the program may be stored in a computer readable storage medium. when the program is executed, the processes of the foregoing method embodiments. 其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory, ROM)或随机存储记忆体(Random Access Memory, RAM)等。 Wherein the storage medium may be a magnetic disk, an optical disk, read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM) and the like.

[0090] 以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。 [0090] The preferred embodiments disclosed above are merely embodiments of the present invention, it, of course, not intended to limit the scope of the invention, therefore equivalent changes made under this invention as claimed in claim still covered by the scope of the present invention.

11 11

Claims (10)

  1. 1. 一种分布式系统的自动化配置方法,其特征在于,包括:获取元数据,所述元数据包括分布式系统中各节点相关配置项的配置值;根据所述元数据和预设的配置文件模板,生成配置文件;根据分布式系统中各节点的特殊配置信息,生成与所述特殊配置信息对应的节点相匹配的安装引导程序;将预设的待安装程序包、所述配置文件以及所述安装引导程序发送给所述分布式系统中各节点。 A method for automated configuration of a distributed system, characterized by comprising: acquiring metadata, the metadata comprising a configuration item associated configuration values ​​each node in the distributed system; configured in accordance with the preset metadata and file template to generate a configuration file; depending on the particular configuration of each node in a distributed system, the specific configuration information to generate a corresponding node that matches the installation guide program; preset package to be mounted, and the configuration file the installation program guide transmitted to each node of the distributed system.
  2. 2.如权利要求1所述的方法,其特征在于,所述获取元数据的步骤,包括:通过提供给用户的配置文件管理界面获取用户输入的所述分布式系统中各节点相关配置项的配置值;根据所述配置值,修改预设的配置数据库中相应配置项的配置值,得到包括分布式系统中各节点相应配置项的配置值的元数据。 2. The method according to claim 1, wherein the step of obtaining the metadata, comprising: acquiring the distributed system, each node user input related to the user configuration items by the profile management interface configuration values; according to the configuration values, modifying configuration values ​​corresponding configuration item preset configuration database, arranged to obtain metadata includes values ​​of configuration items corresponding node in a distributed system.
  3. 3.如权利要求2所述的方法,其特征在于,所述根据所述元数据和预设的配置文件模板,生成配置文件的步骤之后,还包括:对上一配置文件设置版本信息,并保存所述设置了版本信息的上一配置文件。 After 3. The method according to claim 2, characterized in that, according to the preset metadata and the profile template, the step of generating a configuration file, further comprising: setting a version information on the configuration file, and saving the profile is provided on a version information.
  4. 4.如权利要求3所述的方法,其特征在于,还包括:服务器向所述分布式系统中各节点发送安装命令;节点接收到所述安装命令后,运行接收到的所述安装引导程序,所述安装引导程序对该节点的硬件环境和软件环境的配置值进行扫描识别;若扫描识别的所述节点的硬件环境和/或软件环境的配置值与所述安装引导程序中包括的该节点的特殊配置信息中的硬件环境和软件环境中的配置值不相同,向服务器发送安装失败提示信息;若扫描识别的所述节点的硬件环境和软件环境的配置值与所述安装引导程序中包括的该节点的特殊配置信息中的硬件环境和软件环境的配置值相同时,根据特殊配置信息修改该节点的配置文件中的相应硬件配置项的配置值,生成新的配置文件,所述安装引导程序根据所述新的配置文件触发安装所述待安装程序包,并在安装完成后 4. The method according to claim 3, characterized in that, further comprising: a server sends a command to the installation of each node in the distributed system; node after receiving the mounting order, the mounting operation of the received program guide the mounting hardware configuration values ​​to the boot program and software environment will be scanned to identify nodes; hardware environment if the node identified by scanning and / or software environment configuration values ​​and the mounting of the boot program comprises configuration information of the node value of the special configuration of the hardware and software environment is not the same, the installation failure message sent to the server; configuration values ​​if the hardware and software environment of the node identified by scanning the boot program installation hardware environment and the value of the special configuration of the node configuration information included in the same software environment, the special value of the corresponding configuration information to modify the configuration of the hardware profile node configuration items according to a new configuration file, the mount boot program triggers the mounting package to be installed, and installation according to the new configuration file ,将所述配置文件存储在所述配置文件的元数据所指示的存储目录下。 , The configuration file is stored in the configuration file storage directory indicated by the metadata.
  5. 5.如权利要求4所述的方法,其特征在于,所述安装引导程序根据所述新的配置文件触发安装所述待安装程序包的步骤之后,还包括:所述安装引导程序监测所述待安装程序包的安装过程,并在所述待安装程序包安装出错时,所述节点向所述服务器返回安装失败提示信息,否则,向所述服务器返回安装成功提/J^fn 息。 5. After the method as claimed in claim 4, wherein said mounting step of mounting the boot program packages to be installed according to the new trigger configuration file, further comprising: monitoring the mounting of the boot program to be installed during the installation of the package, and the package is to be installed when the installation error, the node returns a failure message to the mounted server, otherwise, the server returns to successfully install the lifting / J ^ fn interest.
  6. 6.如权利要求4或5所述的方法,其特征在于,还包括:若所述服务器接收到安装失败提示信息时,根据版本信息查找到存储的上一版本的配置文件,并向发送所述安装失败提示信息的节点发送所述上一配置文件,以使所述节点根据所述上一配置文件完成所述待安装程序包的安装。 6. A method as claimed in claim 4 or claim 5, wherein further comprising: if the server receives the installation failure message, to find a version of the stored profile according to the version information, and sends the said mounting failure prompt the sending node information on a configuration file, the node to complete the installation of the program to be installed on a package according to the configuration file.
  7. 7. 一种服务器,其特征在于,包括:获取模块,用于获取元数据,所述元数据包括分布式系统中各节点相关配置项的配置值;配置文件生成模块,用于根据所述获取模块获取的元数据,并根据预设的配置文件模板,生成配置文件;引导程序生成模块,用于根据分布式系统中各节点的特殊配置信息,生成与所述特殊配置信息对应的节点相匹配的安装引导程序;部署模块,用于将预设的待安装程序包、所述配置文件生成模块生成的配置文件以及所述引导程序生成模块生成的安装引导程序发送给所述分布式系统中各节点。 7. A server, comprising: an obtaining module for obtaining metadata, the metadata comprising a distributed system configuration values ​​of configuration items associated nodes; profile generation module, according to the acquisition metadata acquiring module, and according to a predetermined profile template, generating the configuration file; boot program generation module, depending on the particular configuration information for each node in a distributed system, the generated match specific configuration information corresponding to the node the installation program guide; deployment module configured to preset the package to be installed, the configuration file generation module generates the configuration files, and boot the boot program generating program installed to the transmitting module generates each distributed system node.
  8. 8.如权利要求7所述的服务器,其特征在于,所述获取模块包括:获取子单元,用于通过提供给用户的配置文件管理界面获取用户输入的所述分布式系统中各节点相关配置项的配置值;处理单元,用于根据所述获取子单元获取的配置值,修改预设的配置数据库中相应配置项的配置值,得到包括分布式系统中各节点相应配置项的配置值的元数据。 8. The server according to claim 7, wherein the obtaining module comprises: an obtaining sub-unit, configured to obtain user input the distributed system, each node configuration provided to the user through the profile management interface CI values; a processing unit for acquiring the configuration according to the value of the acquired sub-unit, configured to modify the value of the corresponding configuration item preset configuration database, arranged to give the corresponding values ​​including each node in a distributed system configuration items metadata.
  9. 9.如权利要求8所述的服务器,其特征在于,还包括:版本管理模块,用于对上一配置文件设置版本信息,并保存所述设置了版本信息的上一配置文件。 9. The server according to claim 8, characterized in that, further comprising: a version management means for setting a version information on the configuration file, and saves the setting on a profile version information.
  10. 10.如权利要求9所述的服务器,其特征在于,所述部署模块还用于向所述分布式系统中各节点发送安装命令,以使所述节点运行接收到的安装引导程序完成待安装程序包的安装;还包括接收模块,用于接收分布式系统中节点发送的安装失败提示信息;所述部署模块还用于当所述接收模块接收到安装失败提示信息时,根据所述版本管理模块设置的配置文件的版本信息,将保存的上一版本的配置文件发送给所述发送安装失败提示信息的节点,以使所述安装失败的节点能够根据上一版本的配置文件进行待安装程序包的安装。 10. The server according to claim 9, wherein the deployment module is further configured to send a command to the mounting of each node in a distributed system, so that the received installation operation node boot program is finished to be mounted installation package; further comprising receiving means for receiving mounting failure message sent by the node in the distributed system; the deployment module is further configured to, when the receiving module receives the message failed installation, according to the version management file version information transmission module configuration settings will be saved on a version of the profile is mounted to the transmission failure message to the node to make the node failure can be mounted to be mounted on a version of the program according to the profile installation package.
CN 201010511481 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
CN 201010511481 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
CN 201010511481 CN102455915A (en) 2010-10-18 2010-10-18 Method for automatically configuring distributed system, and server

Publications (1)

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

Family

ID=46039131

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010511481 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 (12)

* 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
CN105740408A (en) * 2016-01-28 2016-07-06 东软集团股份有限公司 Hadoop cluster calling method and device
US9575660B2 (en) 2013-04-03 2017-02-21 International Business Machines Corporation Flexibly storing defined presets for configuration of storage controller
CN103593322B (en) * 2013-11-11 2017-07-07 曙光信息产业(北京)有限公司 And drive assembly configuration means
WO2017161984A1 (en) * 2016-03-24 2017-09-28 中兴通讯股份有限公司 Method, device and system for deploying data clusters, and computer storage medium

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 (16)

* 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
CN103019791B (en) * 2012-12-19 2016-08-10 中国电子科技集团公司第十五研究所 Software deployment methods and software deployment system
US9575660B2 (en) 2013-04-03 2017-02-21 International Business Machines Corporation Flexibly storing defined presets for configuration of storage controller
CN104125206A (en) * 2013-04-27 2014-10-29 腾讯科技(深圳)有限公司 Client-side hardware environment adaption method, device, server and system
CN104125206B (en) * 2013-04-27 2016-07-27 腾讯科技(深圳)有限公司 A client hardware environment adaptation method, apparatus and system for server
CN103268242A (en) * 2013-06-05 2013-08-28 中国电子科技集团公司第十五研究所 Method and device for installing information system
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 曙光信息产业(北京)有限公司 And drive assembly configuration means
CN104780058A (en) * 2014-01-13 2015-07-15 联想(北京)有限公司 Electronic equipment configuration method and system
CN103957204B (en) * 2014-04-23 2017-09-15 福建六壬网安股份有限公司 Security universal communication interface adaptation method
CN103957204A (en) * 2014-04-23 2014-07-30 福州柏科网安信息技术有限公司 Method for universal adaptation for communication with safety device interfaces
CN104640135B (en) * 2015-01-07 2018-05-15 宇龙计算机通信科技(深圳)有限公司 A user information acquisition method and device configuration
CN104640135A (en) * 2015-01-07 2015-05-20 宇龙计算机通信科技(深圳)有限公司 User configuration information acquiring method and device
CN104965741A (en) * 2015-06-30 2015-10-07 浪潮(北京)电子信息产业有限公司 Method and apparatus for installing real-time application clusters
CN105740408A (en) * 2016-01-28 2016-07-06 东软集团股份有限公司 Hadoop cluster calling method and device
WO2017161984A1 (en) * 2016-03-24 2017-09-28 中兴通讯股份有限公司 Method, device and system for deploying data clusters, and computer storage medium

Similar Documents

Publication Publication Date Title
US7237243B2 (en) Multiple device management method and system
US7188163B2 (en) Dynamic reconfiguration of applications on a server
US8010701B2 (en) Method and system for providing virtualized application workspaces
US20140130036A1 (en) Methods and Systems for Automated Deployment of Software Applications on Heterogeneous Cloud Environments
US8050801B2 (en) Dynamically extensible and automatically configurable building automation system and architecture
US20070244999A1 (en) Method, apparatus, and computer product for updating software
US20110029981A1 (en) System and method to uniformly manage operational life cycles and service levels
US20120102199A1 (en) Placing objects on hosts using hard and soft constraints
US7673023B1 (en) Method and apparatus for service processor updates
US8146073B2 (en) Updating software while it is running
US7171659B2 (en) System and method for configurable software provisioning
US20100325624A1 (en) Method and System for Application Portability
US7937455B2 (en) Methods and systems for modifying nodes in a cluster environment
US20100058327A1 (en) Methods and systems for providing customized actions related to software provisioning
US20140101467A1 (en) Discovering, validating, and configuring hardware-inventory components
US20100299366A1 (en) Systems and Methods for Generating Cloud Computing Landscapes
US20100138526A1 (en) Methods and systems for providing hardware updates in a software provisioning environment
US20100138696A1 (en) Systems and methods for monitoring hardware resources in a software provisioning environment
US8417737B2 (en) Online database availability during upgrade
US20100217944A1 (en) Systems and methods for managing configurations of storage devices in a software provisioning environment
US20100128639A1 (en) Methods and systems for supporting multiple name servers in a software provisioning environment
US7165087B1 (en) System and method for installing and configuring computing agents
US20070061277A1 (en) Method, system, and storage medium for providing dynamic deployment of grid services over a computer network
US20130138818A1 (en) Method for accessing an automation system and system operating according to the method
US20100250907A1 (en) Systems and methods for providing configuration management services from a provisioning server

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C20 Patent right or utility model deemed to be abandoned or is abandoned