[go: up one dir, main page]

CN112394975A - Unified configuration method and device for projects and storage medium - Google Patents

Unified configuration method and device for projects and storage medium Download PDF

Info

Publication number
CN112394975A
CN112394975A CN201911216597.2A CN201911216597A CN112394975A CN 112394975 A CN112394975 A CN 112394975A CN 201911216597 A CN201911216597 A CN 201911216597A CN 112394975 A CN112394975 A CN 112394975A
Authority
CN
China
Prior art keywords
configuration
monitoring
unified
configuration information
server
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.)
Pending
Application number
CN201911216597.2A
Other languages
Chinese (zh)
Inventor
郭硕
刘永亮
张秀霞
刘亦君
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Venture Black Horse Technology Group Co ltd
Original Assignee
Venture Black Horse Technology Group Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Venture Black Horse Technology Group Co ltd filed Critical Venture Black Horse Technology Group Co ltd
Publication of CN112394975A publication Critical patent/CN112394975A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本申请公开了一种用于项目的统一配置方法及装置、存储介质。该方法包括修改配置中的预设组件,其中预设组件用于节点上的动态更新和监控;监控配置信息的变化情况,以使对应的项目服务器自动更新配置信息,其中变化情况是指服务器上的数据同步或项目配置发布。本申请解决了项目本地化更新维护效率低下的技术问题。通过本申请实现了项目服务器自动更新配置信息。

Figure 201911216597

The present application discloses a unified configuration method and device for projects, and a storage medium. The method includes modifying a preset component in the configuration, wherein the preset component is used for dynamic update and monitoring on the node; monitoring the change of the configuration information, so that the corresponding project server automatically updates the configuration information, wherein the change refers to the change on the server. data synchronization or project configuration release. The present application solves the technical problem of low efficiency of project localization update and maintenance. Through the present application, the project server can automatically update the configuration information.

Figure 201911216597

Description

Unified configuration method and device for projects and storage medium
Technical Field
The present application relates to the field of project configuration, and in particular, to a unified configuration method and apparatus for projects, and a storage medium.
Background
Project localized configuration refers to uploading a local configuration file on each environment by setting the ignored files via Git.
The inventor finds that the configuration mode has low maintenance efficiency under the condition of multiple projects, and cannot realize uniform configuration of the projects.
Aiming at the problem of low efficiency of project localized updating and maintenance in the related art, no effective solution is provided at present.
Disclosure of Invention
The present application mainly aims to provide a unified configuration method and apparatus for projects, and a storage medium, so as to solve the problem of low project localized update maintenance efficiency.
To achieve the above object, according to one aspect of the present application, there is provided a unified configuration method for projects.
The unified configuration method for projects according to the application comprises the following steps: modifying preset components in the configuration, wherein the preset components are used for dynamic updating and monitoring on the nodes; and monitoring the change condition of the configuration information so as to enable the corresponding project server to automatically update the configuration information, wherein the change condition refers to data synchronization or project configuration distribution on the server.
Further, modifying the preset components in the configuration includes: and dynamically updating the configuration node by adopting GitHook.
Further, modifying the preset components in the configuration includes: and configuring node monitoring by adopting the Zookeeper.
Further, monitoring the change condition of the configuration information, so that the corresponding project server automatically updates the configuration information comprises:
and monitoring configuration change through a Python monitoring script so as to enable the corresponding project server to automatically update the configuration information.
Further, the method is used for a distributed content distribution system.
To achieve the above object, according to another aspect of the present application, there is provided a unified configuration apparatus for projects.
The unified configuration device for projects according to the present application includes: the configuration modification module is used for modifying preset components in the configuration, wherein the preset components are used for dynamic updating and monitoring on the nodes; and the monitoring module is used for monitoring the change condition of the configuration information so as to enable the corresponding project server to automatically update the configuration information, wherein the change condition refers to data synchronization or project configuration release on the server.
Further, the configuration modification module is configured to dynamically update the configuration node using the GitHook.
Further, the configuration modification module is configured to configure node monitoring by using Zookeeper.
Further, the monitoring module is configured to monitor configuration changes through a Python monitoring script, so that the corresponding project server automatically updates configuration information.
In order to achieve the above object, according to another aspect of the present application, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the unified configuration method for projects.
According to the unified configuration method and device for the project, the preset components in the configuration are modified, the configuration information is automatically updated by the corresponding project server by monitoring the change condition of the configuration information, the purpose of improving the maintenance efficiency under the condition of multiple projects is achieved, the technical effect of automatically updating the configuration information by the project server is achieved, and the technical problem of low project localized updating maintenance efficiency is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, serve to provide a further understanding of the application and to enable other features, objects, and advantages of the application to be more apparent. The drawings and their description illustrate the embodiments of the invention and do not limit it. In the drawings:
FIG. 1 is a schematic flow chart diagram of a unified configuration method for projects according to a first embodiment of the present application;
FIG. 2 is a flowchart illustrating a unified configuration method for projects according to a second embodiment of the present application;
FIG. 3 is a flowchart illustrating a unified configuration method for projects according to a third embodiment of the present application;
FIG. 4 is a block diagram of a unified configuration apparatus for projects according to a first embodiment of the present application;
FIG. 5 is a schematic diagram of a unified configuration apparatus for projects according to a second embodiment of the present application;
FIG. 6 is a schematic diagram of an electronic device according to an embodiment of the application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In this application, the terms "upper", "lower", "left", "right", "front", "rear", "top", "bottom", "inner", "outer", "middle", "vertical", "horizontal", "lateral", "longitudinal", and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings. These terms are used primarily to better describe the present application and its embodiments, and are not used to limit the indicated devices, elements or components to a particular orientation or to be constructed and operated in a particular orientation.
Moreover, some of the above terms may be used to indicate other meanings besides the orientation or positional relationship, for example, the term "on" may also be used to indicate some kind of attachment or connection relationship in some cases. The specific meaning of these terms in this application will be understood by those of ordinary skill in the art as appropriate.
Furthermore, the terms "mounted," "disposed," "provided," "connected," and "sleeved" are to be construed broadly. For example, it may be a fixed connection, a removable connection, or a unitary construction; can be a mechanical connection, or an electrical connection; may be directly connected, or indirectly connected through intervening media, or may be in internal communication between two devices, elements or components. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
As shown in fig. 1, the method includes steps S102 to S106 as follows:
step S102, modifying the preset components in the configuration,
the preset component is used for dynamic updating and monitoring on the node. Updates can be made on the nodes by modifying the configuration components. Monitoring can be performed on the nodes by modifying the configuration components.
In particular, the configuration component is modified for unified configuration in multiple projects.
Step S104, monitoring the change condition of the configuration information to make the corresponding project server automatically update the configuration information,
the change situation refers to data synchronization or project configuration distribution on the server.
Specifically, the configuration information of one or more projects can be automatically updated by the corresponding project server by monitoring the change of the configuration information.
It is noted that the data synchronization is referred to as occurring after the automation of the project server. It should also be noted that the project configuration refers to the monitored project configuration.
From the above description, it can be seen that the following technical effects are achieved by the present application:
in the embodiment of the application, the preset components in the configuration are modified, and the configuration information is automatically updated by the corresponding project server by monitoring the change condition of the configuration information, so that the aim of improving the maintenance efficiency under the multi-project condition is fulfilled, the technical effect of automatically updating the configuration information by the project server is realized, and the technical problem of low project localized updating maintenance efficiency is solved.
According to the embodiment of the present application, as a preference in the embodiment, as shown in fig. 2, the preset component in the modified configuration includes: and dynamically updating the configuration node by adopting GitHook.
In particular, dynamic updating and monitoring of each alignment node may be achieved using GitHook and Zookeeper.
According to the embodiment of the present application, as a preference in the embodiment, as shown in fig. 2, the preset component in the modified configuration includes: and configuring node monitoring by adopting the Zookeeper.
In particular, dynamic updating and monitoring of each alignment node may be achieved using GitHook and Zookeeper. ZooKeeper is a distributed coordination service that manages large hosts. Coordinating and managing services in a distributed environment is a complex process. ZooKeeper solves this problem through its simple architecture and API. ZooKeeper allows developers to focus on the core application logic without worrying about the distributed nature of the application. And when the code is updated, updating and storing data on the code information znode node, pushing the zookeeper to all servers monitoring the node, updating the code by the servers, and finishing one-time updating operation by all the servers.
According to the embodiment of the present application, as a preferred embodiment in the present application, as shown in fig. 3, monitoring a change condition of the configuration information so that the corresponding project server automatically updates the configuration information includes:
and monitoring configuration change through a Python monitoring script so as to enable the corresponding project server to automatically update the configuration information.
Specifically, a Python language is adopted to monitor the configuration change, so that the original release system can automatically update the configuration information of the server corresponding to the specified project.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
There is also provided, in accordance with an embodiment of the present application, an apparatus for implementing the above method, as shown in fig. 4, the apparatus including: a configuration modification module 10, configured to modify preset components in a configuration, where the preset components are used for dynamic update and monitoring on a node; and the monitoring module 20 is configured to monitor a change condition of the configuration information, so that the corresponding project server automatically updates the configuration information, where the change condition refers to data synchronization or project configuration distribution on the server.
The preset components in the configuration modification module 10 of the embodiment of the present application are used for dynamic update and monitoring on the node. Updates can be made on the nodes by modifying the configuration components. Monitoring can be performed on the nodes by modifying the configuration components.
In particular, the configuration component is modified for unified configuration in multiple projects.
The change in the monitoring module 20 of the embodiment of the present application refers to data synchronization or project configuration distribution on the server.
Specifically, the configuration information of one or more projects can be automatically updated by the corresponding project server by monitoring the change of the configuration information.
It is noted that the data synchronization is referred to as occurring after the automation of the project server. It should also be noted that the project configuration refers to the monitored project configuration.
According to the embodiment of the present application, as a preference in the embodiment, as shown in fig. 5, the apparatus is used in a distributed content distribution system.
According to the embodiment of the present application, as a preferred preference in the embodiment, the configuration modification module is configured to dynamically update the configuration node by using GitHook. In particular, dynamic updating and monitoring of each alignment node may be achieved using GitHook and Zookeeper.
According to the embodiment of the present application, as a preferred embodiment in the embodiment, the configuration modification module is configured to employ Zookeeper configuration node monitoring. In particular, dynamic updating and monitoring of each alignment node may be achieved using GitHook and Zookeeper.
ZooKeeper is a distributed coordination service that manages large hosts. Coordinating and managing services in a distributed environment is a complex process. ZooKeeper solves this problem through its simple architecture and API. ZooKeeper allows developers to focus on the core application logic without worrying about the distributed nature of the application. And when the code is updated, updating and storing data on the code information znode node, pushing the zookeeper to all servers monitoring the node, updating the code by the servers, and finishing one-time updating operation by all the servers.
According to the embodiment of the present application, as a preferred preference in the embodiment, the monitoring module is configured to monitor configuration changes through a Python monitoring script, so that a corresponding project server automatically updates configuration information.
Specifically, a Python language is adopted to monitor the configuration change, so that the original release system can automatically update the configuration information of the server corresponding to the specified project.
An embodiment of the present application further provides a specific implementation manner of an electronic device, which is capable of implementing all steps in the unified configuration method for a project in the foregoing embodiment, and referring to fig. 6, the electronic device specifically includes the following contents:
a processor (processor)601, a memory (memory)602, a communication Interface (Communications Interface)603, and a bus 604;
the processor 601, the memory 602 and the communication interface 603 complete mutual communication through the bus 604; the communication interface 603 is used for realizing information transmission among a unified configuration device for projects, an online service system, client equipment and other participating mechanisms;
the processor 601 is configured to call the computer program in the memory 602, and the processor implements all the steps in the unified configuration method for items in the above embodiments when executing the computer program, for example, the processor implements the following steps when executing the computer program:
step S102, modifying the preset components in the configuration,
the preset component is used for dynamic updating and monitoring on the node. Updates can be made on the nodes by modifying the configuration components. Monitoring can be performed on the nodes by modifying the configuration components.
In particular, the configuration component is modified for unified configuration in multiple projects.
Step S104, monitoring the change condition of the configuration information to make the corresponding project server automatically update the configuration information,
the change situation refers to data synchronization or project configuration distribution on the server.
Specifically, the configuration information of one or more projects can be automatically updated by the corresponding project server by monitoring the change of the configuration information.
It is noted that the data synchronization is referred to as occurring after the automation of the project server. It should also be noted that the project configuration refers to the monitored project configuration.
As can be seen from the above description, in the electronic device provided in the embodiment of the present application, the preset components in the configuration are modified, and the change condition of the configuration information is monitored, so that the corresponding project server automatically updates the configuration information, and the purpose of improving the maintenance efficiency under multiple project conditions is achieved, thereby achieving the technical effect of automatically updating the configuration information by the project server, and further solving the technical problem of low project localized updating maintenance efficiency.
It will be apparent to those skilled in the art that the modules or steps of the present application described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and they may alternatively be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, or fabricated separately as individual integrated circuit modules, or fabricated as a single integrated circuit module from multiple modules or steps. Thus, the present application is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A unified configuration method for items, comprising:
modifying preset components in the configuration, wherein the preset components are used for dynamic updating and monitoring on the nodes;
and monitoring the change condition of the configuration information so as to enable the corresponding project server to automatically update the configuration information, wherein the change condition refers to data synchronization or project configuration distribution on the server.
2. The unified configuration method of claim 1, wherein modifying preset components in a configuration comprises: and dynamically updating the configuration node by adopting GitHook.
3. The unified configuration method of claim 1, wherein modifying preset components in a configuration comprises: and configuring node monitoring by adopting the Zookeeper.
4. The unified configuration method according to claim 1, wherein monitoring the change of the configuration information to enable the corresponding project server to automatically update the configuration information comprises:
and monitoring configuration change through a Python monitoring script so as to enable the corresponding project server to automatically update the configuration information.
5. The unified configuration method of claim 1, used in a distributed content distribution system.
6. A unified configuration apparatus for items, comprising:
the configuration modification module is used for modifying preset components in the configuration, wherein the preset components are used for dynamic updating and monitoring on the nodes;
and the monitoring module is used for monitoring the change condition of the configuration information so as to enable the corresponding project server to automatically update the configuration information, wherein the change condition refers to data synchronization or project configuration release on the server.
7. The unified configuration apparatus of claim 6, wherein the configuration modification module is configured to dynamically update with a GitHook configuration node.
8. The unified configuration apparatus of claim 6, wherein the configuration modification module is configured to employ Zookeeper configuration node monitoring.
9. The unified configuration apparatus according to claim 6, wherein the monitoring module is configured to monitor configuration changes through a Python monitoring script, so that the corresponding project server automatically updates configuration information.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the unified configuration method for items according to any one of claims 1 to 5.
CN201911216597.2A 2019-08-15 2019-12-03 Unified configuration method and device for projects and storage medium Pending CN112394975A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910755392 2019-08-15
CN2019107553925 2019-08-15

Publications (1)

Publication Number Publication Date
CN112394975A true CN112394975A (en) 2021-02-23

Family

ID=74603747

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911216597.2A Pending CN112394975A (en) 2019-08-15 2019-12-03 Unified configuration method and device for projects and storage medium

Country Status (1)

Country Link
CN (1) CN112394975A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013116173A1 (en) * 2012-02-02 2013-08-08 Microsoft Corporation Self-updating functionality in a distributed system
CN106685706A (en) * 2016-12-14 2017-05-17 深圳中顺易金融服务有限公司 Zookeeper based configuration update method and system
CN109032629A (en) * 2018-06-28 2018-12-18 北京达佳互联信息技术有限公司 A kind of code update method and device
CN109245914A (en) * 2018-08-06 2019-01-18 深圳市华讯方舟太赫兹科技有限公司 Dynamic Configuration, parameter monitor end and parameter configuration end

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013116173A1 (en) * 2012-02-02 2013-08-08 Microsoft Corporation Self-updating functionality in a distributed system
CN106685706A (en) * 2016-12-14 2017-05-17 深圳中顺易金融服务有限公司 Zookeeper based configuration update method and system
CN109032629A (en) * 2018-06-28 2018-12-18 北京达佳互联信息技术有限公司 A kind of code update method and device
CN109245914A (en) * 2018-08-06 2019-01-18 深圳市华讯方舟太赫兹科技有限公司 Dynamic Configuration, parameter monitor end and parameter configuration end

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
TESTTEST2333: "利用Git Hooks与rsync集群部署", pages 1 - 7, Retrieved from the Internet <URL:https://www.jianshu.com/p/41ad97b354e2> *

Similar Documents

Publication Publication Date Title
US20140344323A1 (en) State-based configuration management for distributed systems
US9661064B2 (en) Systems and methods for deploying legacy software in the cloud
US9882829B2 (en) Orchestrating hybrid cloud services
CN107005421B (en) Topology-based management methods, systems and media utilizing stage and version policies
US9847903B2 (en) Method and apparatus for configuring a communication system
CN112866333A (en) Cloud-native-based micro-service scene optimization method, system, device and medium
DE112017006994T5 (en) PROVISION AND MANAGEMENT OF MICROSERVICES
US10666514B2 (en) Applying policy attachment service level management (SLM) semantics within a peered policy enforcement deployment
US20150207703A1 (en) Abstraction models for monitoring of cloud resources
US20130185431A1 (en) Uniform Definition, Provision, and Access of Software Services on the Cloud
EP2926262A1 (en) Cloud service managment system
US10091278B1 (en) Data exchange services
CN105518648A (en) Providing resources to customers via node-relationship models
CN103095475A (en) Routing Inspection method and system of multimode communication equipment
CN108023953A (en) The high availability implementation method and device of FTP service
CN106856438A (en) A kind of method of Network instantiation, device and NFV systems
CN108170508A (en) Batch creates method, apparatus, equipment and its storage medium of virtual machine
CN106921721A (en) A kind of server, conversation managing method and system
CN111078238A (en) Method and device for centralized processing of application configuration in container environment
US20230291794A1 (en) Systems, methods, and storage media for orchestrating a distributed global computing cluster model and interface
CN104410511B (en) A kind of server management method and system
CN114296953B (en) Multi-cloud heterogeneous system and task processing method
US20150212834A1 (en) Interoperation method of newtork device performed by computing device including cloud operating system in could environment
CN112394975A (en) Unified configuration method and device for projects and storage medium
US11381665B2 (en) Tracking client sessions in publish and subscribe systems using a shared repository

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination