CN103051469B - Centralized configuring management method under cloud environment - Google Patents
Centralized configuring management method under cloud environment Download PDFInfo
- Publication number
- CN103051469B CN103051469B CN201210339839.9A CN201210339839A CN103051469B CN 103051469 B CN103051469 B CN 103051469B CN 201210339839 A CN201210339839 A CN 201210339839A CN 103051469 B CN103051469 B CN 103051469B
- Authority
- CN
- China
- Prior art keywords
- client
- node
- configuration file
- server
- cloud environment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Stored Programmes (AREA)
Abstract
Centralized configuring management method under the invention provides a kind of cloud environment, based on client-server pattern, comprises the steps: (1). to the node installation client needing management; (2). whether decision node can be used, if available, jumps to step 3, otherwise terminates; (3). the file of node is configured, is upgraded.Centralized configuring management method under cloud environment provided by the invention, simple installation, uses simple and can ensure that the configuration file of node is consistent with the configuration file of server end all the time.
Description
Technical field
The invention belongs to field of cloud calculation, centralized configuring management method under being specifically related to a kind of cloud environment.
Background technology
Cloud environment is the core of whole open cloud platform.On the one hand it is that the cloud application of all cloud services exploitations based on open cloud platform provides execution environment, on the other hand it also help developer to build and safeguard cloud is applied.
As the development platform of cloud application, cloud environment Proterozoic is integrated with other cloud services all of open cloud platform, provides the programming framework of cloud application; As the operation platform of cloud application, cloud environment self can carry out dynamic retractility according to the visit capacity of cloud application and data volume, considers the problems such as cluster dilatation, load balancing without the need to user.
On cloud environment, developer can be programmed in spider lines application.Current cloud environment supports PHP language.Cloud environment can be regarded as a distributed LAMP platform by developer, and under a small amount of constraints, the api that enriches utilizing cloud environment to provide develops LAMP program.Developer also can buy privately owned cloud environment example, under the resource environment of reserved quota, carry out unrestricted off-line Distributed Calculation.
Along with the development of science and technology, the privately owned cloud environment of oneself enterprise has all been built by a lot of enterprise.And along with business event scale, the continuous expansion of storage size etc., enterprise needs to increase new information technoloy equipment inside cloud environment.But, manual to these information technoloy equipments newly increased be managed for configuration by be one heavy and very easily occur the work of mistake.So occurred that a series of configuration management tool is as puppet, pdsh etc., they are the configuration management systems under cloud environment.Greatly facilitate the management of administrative staff, improve efficiency.
Under existing cloud environment configuration management system exist a very large problem be install complicated, need Install and configure server end, node side etc., two is use complexity, or needs the special behavioral description language (puppet) of study or all need to carry out remote operation (pdsh) by SSH etc. at every turn.Learn special behavioral description language for too complicated common management personnel, carry out remote-operated method by SSH all to need to carry out SSH verification process at every turn, inefficiency and layoutprocedure is synchronous, management end easily occurs waiting for that responseless situation occurs for a long time, and three is to ensure that the configuration file of node is consistent with server end all the time.
Summary of the invention
For overcoming above-mentioned defect, centralized configuring management method under the invention provides a kind of cloud environment, simple installation, uses simple and can ensure that the configuration file of node is consistent with the configuration file of server end all the time.
For achieving the above object, centralized configuring management method under the invention provides a kind of cloud environment, centralized configuring management method under cloud environment, based on client-server pattern, is characterized in that, described method comprises the steps:
(1). to the node installation client needing management;
(2). whether decision node can be used, if available, jumps to step 3, otherwise terminates;
(3). the file of node is configured, is upgraded.
In optimal technical scheme provided by the invention, in described step 1, described node adds fashionable, whether server end reads configuration file determination node and allows to install client, if allowed, then whether the specified configuration file decision node of service end reading node is provided with client, if do not install client, calls installation script and carries out client installation; Wherein, the node of client had been installed at server end record.
In second optimal technical scheme provided by the invention, in described step 2, described node sent survival-signal to service end every 10 seconds, if server node did not receive survival-signal in 30 seconds, service end will be remotely logged into node and start client service, if login failure or the failure of startup client, be unavailable by vertex ticks.
In 3rd optimal technical scheme provided by the invention, described step 3 comprises the steps:
(3-1). the client subscription config directory in each node;
(3-2). server end revises configuration file under config directory, the file change notice under this config directory is subscribed to the client of this config directory;
(3-3). search corresponding configuration file under client to config directory and download;
(3-4). client, according to the configuration file downloaded, upgrades node.
In 4th optimal technical scheme provided by the invention, after described step 3-4, also carry out following steps:
(A). client uses Observer Pattern to safeguard configuration file.
In 5th optimal technical scheme provided by the invention, in described steps A, client is monitored in real time to configuration file, compare with the hash value of latest configuration file on the hash value of client configuration file and server, if hash value changes, the then operation of Trigger update configuration file, forces to use the configuration file on server to be configured system.
Compared with the prior art, centralized configuring management method under a kind of cloud environment provided by the invention, solve client can not Auto-mounting upgrade problem, this will substantially increase administrative staff's efficiency of management, reduce the problem that manual installation client is easily made mistakes, easier client upgrading; And solving other several method node can not Reconfigurations file automatically, is difficult to the problem ensureing that client configuration file is identical all the time with server end; Moreover, force to use the configuration file on server to be configured node, to ensure to be configured by service end, prevent from being directly configured amendment at node.
Accompanying drawing explanation
Fig. 1 is for subscribing to distribution principle figure.
Fig. 2 is client Reconfigurations document flowchart.
Fig. 3 is node profile monitoring flow chart.
Fig. 4 is the flow chart of centralized configuring management method under cloud environment.
Embodiment
As shown in Figure 4, centralized configuring management method under a kind of cloud environment, centralized configuring management method under cloud environment, based on client-server pattern, comprises the steps:
(1). to the node installation client needing management; (2). whether decision node can be used, if available, jumps to step 3, otherwise terminates; (3). the file of node is configured, is upgraded.
In described step 1, described node adds fashionable, whether server end reads configuration file determination node and allows to install client, if allowed, then whether the specified configuration file decision node of service end reading node is provided with client, if do not install client, calls installation script and carries out client installation; Wherein, the node of client had been installed at server end record.
In described step 2, described node sent survival-signal to service end every 10 seconds, if server node did not receive survival-signal in 30 seconds, trial is remotely logged into node and starts client service by service end, if login failure or the failure of startup client, is unavailable by vertex ticks.
Described step 3 comprises the steps:
(3-1). the client subscription config directory in each node; (3-2). server end revises configuration file under config directory, the file change notice under this config directory is subscribed to the client of this config directory; (3-3). search corresponding configuration file under client to config directory and download; (3-4). client, according to the configuration file downloaded, upgrades node.
After described step 3-4, also carry out following steps: (A). client uses Observer Pattern to safeguard configuration file.
In described steps A, client is monitored in real time to configuration file, compare with the hash value of latest configuration file on the hash value of client configuration file and server, if hash value changes, the then operation of Trigger update configuration file, forces to use the configuration file on server to be configured system.
Below by embodiment, configuring management method centralized under cloud environment is described further.
This method is based on client-server pattern, and the node be managed needs to install client.
4.1, the Auto-mounting of client node
When newly adding in node to cloud environment, whether server end reads configuration file determination node and allows to install client, if allowed, whether the specified configuration file that service end attempts reading node is provided with client in order to decision node, if do not install client, calls installation script and carries out client installation.The node of client can be installed at server end record after successful installation.
4.2, node survival judges
Node timed sending survival-signal is to service end, if node does not receive survival-signal in the stipulated time, trial is remotely logged into node and starts client service by service end, if login failure or the failure of startup client, is unavailable by vertex ticks.
4.3, node profile self refresh
As Figure 1-3, node profile upgrades and adopts Publish-subscribe mode and the acting in conjunction of autonomous inquiry update mode to ensure node profile correctness.First, client subscription catalogue, server end revises configuration file under assigned catalogue, the event notice of file change be have subscribed all clients of this catalogue, after client has notice, search for oneself special configuration file to assigned catalogue, if find for oneself special configuration file, then download this file and with this file configuration-system, if do not find for oneself special configuration file, then download generic configuration file and be configured system.For different configuration items, under can being put into different catalogues, the particular arrangement file for node adopts generic configuration file to add that the mode of node hostname is named.Again, client uses Observer Pattern to safeguard configuration file, after the complete system of client configuration, to monitor in real time configuration file, compare its hash value, if hash value changes, the then operation of Trigger update configuration file, force to use the configuration file on server to be configured system, to ensure to be configured by service end, prevent from being directly configured amendment at node.
It is to be understood that content of the present invention and embodiment are intended to the practical application proving technical scheme provided by the present invention, should not be construed as limiting the scope of the present invention.Those skilled in the art inspired by the spirit and principles of the present invention, can do various amendment, equivalent replacement or improve.But these changes or amendment are all in the protection range that application is awaited the reply.
Claims (4)
1. a centralized configuring management method under cloud environment, based on clothes business device ?client mode, it is characterized in that, described method comprises the steps:
(1). to the node installation client needing management;
(2). whether decision node can be used, if available, jumps to step 3, otherwise terminates;
(3). the file of node is configured, is upgraded;
In described step 1, described node adds fashionable, whether server end reads configuration file determination node and allows to install client, if allowed, then whether the specified configuration file decision node of service end reading node is provided with client, if do not install client, calls installation script and carries out client installation; Wherein, the node of client had been installed at server end record;
Described step 3 comprises the steps:
(3 ?1). the client subscription config directory in each node;
(3 ?2). server end revises configuration file under config directory, the file change notice under this config directory is subscribed to the client of this config directory;
(3 ?3). search corresponding configuration file under client to config directory and download;
(3 ?4). client, according to the configuration file downloaded, upgrades node.
2. method according to claim 1, it is characterized in that, in described step 2, described node sent survival-signal to service end every 10 seconds, if server node did not receive survival-signal in 30 seconds, service end will be remotely logged into node and start client service, if login failure or the failure of startup client, be unavailable by vertex ticks.
3. method according to claim 1, is characterized in that, described step 3 ?after 4, also carry out following steps:
(A). client uses Observer Pattern to safeguard configuration file.
4. method according to claim 3, it is characterized in that, in described steps A, client is monitored in real time to configuration file, compare with the hash value of latest configuration file on the hash value of client configuration file and server, if hash value changes, then the operation of Trigger update configuration file, forces to use the configuration file on server to be configured system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210339839.9A CN103051469B (en) | 2012-09-13 | 2012-09-13 | Centralized configuring management method under cloud environment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210339839.9A CN103051469B (en) | 2012-09-13 | 2012-09-13 | Centralized configuring management method under cloud environment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103051469A CN103051469A (en) | 2013-04-17 |
CN103051469B true CN103051469B (en) | 2016-04-20 |
Family
ID=48063974
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210339839.9A Active CN103051469B (en) | 2012-09-13 | 2012-09-13 | Centralized configuring management method under cloud environment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103051469B (en) |
Families Citing this family (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104301355A (en) * | 2013-07-18 | 2015-01-21 | 上海宝信软件股份有限公司 | Cluster heat disposition method and system based on single machine complete disposition and new old node pool |
CN104202383A (en) * | 2014-08-26 | 2014-12-10 | 浪潮软件股份有限公司 | Centralized configuration distribution and management method in distributed cluster environment |
CN105591778A (en) * | 2014-10-23 | 2016-05-18 | 上海天脉聚源文化传媒有限公司 | Method and system for updating configuration file in distributed system |
CN105592127B (en) * | 2014-11-20 | 2019-10-25 | 中国银联股份有限公司 | Application management system for cloud computing environment |
CN105790997A (en) * | 2014-12-26 | 2016-07-20 | 北大医疗信息技术有限公司 | Configuration data update method and system, client and server |
CN105045619B (en) * | 2015-07-06 | 2018-07-10 | 普元信息技术股份有限公司 | Multi-level multinode version distributed method based on fixed-bandwidth in cloud computing environment |
US9424525B1 (en) | 2015-11-18 | 2016-08-23 | International Business Machines Corporation | Forecasting future states of a multi-active cloud system |
CN105871649A (en) * | 2016-06-21 | 2016-08-17 | 上海帝联信息科技股份有限公司 | Node server, service side and configuration file updating method thereof and updating control method |
CN106059825A (en) * | 2016-07-08 | 2016-10-26 | 福建天晴数码有限公司 | Distributed system and configuration method |
CN106375149A (en) * | 2016-08-31 | 2017-02-01 | 武汉钢信软件有限公司 | Auto associating and analyzing cloud computing monitor apparatus and method |
CN107026756A (en) * | 2017-03-31 | 2017-08-08 | 广东亿迅科技有限公司 | A kind of centralized configuration method of the distributed system based on multicast |
CN108377198B (en) * | 2017-10-25 | 2021-06-22 | 国云科技股份有限公司 | Unified batch maintenance method for node configuration based on cloud platform |
CN109361554A (en) * | 2018-11-30 | 2019-02-19 | 深圳市普威技术有限公司 | The method and apparatus of the customized management page and default configuration |
CN113535262B (en) * | 2021-07-07 | 2024-03-26 | 曙光信息产业(北京)有限公司 | Proxy node start control method, device, equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102006196A (en) * | 2010-12-10 | 2011-04-06 | 郑州市景安计算机网络技术有限公司 | Method for managing server environment configuration |
CN102033777A (en) * | 2010-09-17 | 2011-04-27 | 中国资源卫星应用中心 | Distributed type job scheduling engine based on ICE (internet communication engine) |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7574496B2 (en) * | 2001-11-30 | 2009-08-11 | Surgient, Inc. | Virtual server cloud interfacing |
-
2012
- 2012-09-13 CN CN201210339839.9A patent/CN103051469B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102033777A (en) * | 2010-09-17 | 2011-04-27 | 中国资源卫星应用中心 | Distributed type job scheduling engine based on ICE (internet communication engine) |
CN102006196A (en) * | 2010-12-10 | 2011-04-06 | 郑州市景安计算机网络技术有限公司 | Method for managing server environment configuration |
Also Published As
Publication number | Publication date |
---|---|
CN103051469A (en) | 2013-04-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103051469B (en) | Centralized configuring management method under cloud environment | |
CN105025084B (en) | A kind of cloud storage system based on sync agent and mixing storage | |
CN108270726B (en) | Application instance deployment method and device | |
US10229181B2 (en) | System and method for synchronizing data between communication devices in a networked environment without a central server | |
CN107357571B (en) | Maintenance method and system for equipment component program | |
US20170277532A1 (en) | Application upgrade method and apparatus | |
CN113778623B (en) | Resource processing method and device, electronic equipment and storage medium | |
US20240086214A1 (en) | Method for electronic device virtualization and management | |
US20080256225A1 (en) | Osgi-Based Dynamic Service Management Method for Context-Aware Systems | |
CN103412768A (en) | Zookeeper cluster automatic-deployment method based on script program | |
CN109347681A (en) | Self refresh function in distributed system | |
CN110413295A (en) | A kind of embedded device remote firmware updating method | |
CN103716188B (en) | The management of Linux server cluster management and maintaining method | |
CN112835604B (en) | System gray version release management method, system, equipment and medium | |
CN104572269A (en) | Quick cluster deployment method based on Linux operation system | |
JP2015007968A (en) | Systems and methods for synchronizing geographic information system (gis) network models | |
CN105404530B (en) | It is a kind of to realize easy deployment and the system and method using private clound | |
CN112230987B (en) | Distributed modular plug-in frame realization system and method | |
CN105591782A (en) | Management method and apparatus for testing device | |
CN105426208A (en) | OpenStack offline automatic installation method of cloud computing system | |
CN107294785A (en) | The automatic deployment method and device, computer-readable recording medium of CDN node service | |
CN105430096A (en) | Automatic installation method and device for parallel file system | |
US8582422B2 (en) | Access point configuration propagation | |
CN104023061A (en) | High availability cluster scheme of OSS (Open Storage service) for LUSTRE | |
CN102087599A (en) | J2EE-based Web application system development method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220726 Address after: 100193 No. 36 Building, No. 8 Hospital, Wangxi Road, Haidian District, Beijing Patentee after: Dawning Information Industry (Beijing) Co.,Ltd. Patentee after: DAWNING INFORMATION INDUSTRY Co.,Ltd. Address before: 100193 No.36 Zhongguancun Software Park, No.8 Dongbeiwang West Road, Haidian District, Beijing Patentee before: Dawning Information Industry (Beijing) Co.,Ltd. |