CN111078238A - Centralized processing method and device for application configuration in container environment - Google Patents

Centralized processing method and device for application configuration in container environment Download PDF

Info

Publication number
CN111078238A
CN111078238A CN201811222298.5A CN201811222298A CN111078238A CN 111078238 A CN111078238 A CN 111078238A CN 201811222298 A CN201811222298 A CN 201811222298A CN 111078238 A CN111078238 A CN 111078238A
Authority
CN
China
Prior art keywords
configuration data
configuration
updated
client
module
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
CN201811222298.5A
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.)
China Mobile Communications Group Co Ltd
China Mobile Group Zhejiang Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Zhejiang 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 China Mobile Communications Group Co Ltd, China Mobile Group Zhejiang Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201811222298.5A priority Critical patent/CN111078238A/en
Publication of CN111078238A publication Critical patent/CN111078238A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

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)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a centralized processing method and a centralized processing device for application configuration in a container environment. Meanwhile, the configuration data to be updated is stored in the configuration data storage management module, so that the problems of unreliability of localization of the configuration data and consistency of the configuration data in a container environment can be solved by separation of configuration data storage management.

Description

Centralized processing method and device for application configuration in container environment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a centralized processing method and device for application configuration in a container environment.
Background
In the context of a containerized build microservice application system, the code for both configuration and application exists in the form of a container image file. The whole application issuing process is accompanied with the issuing of configuration data, and an important problem brought by the issuing of the configuration data is that the configuration cannot be modified on line in a running state, and meanwhile, in a containerization environment, because a container example is easy to destroy and redistribute resources in a dynamic scheduling environment, the problem of configuration localization persistence cannot be solved, so the following technical problems need to be solved, and the blank of a large-scale business system in the aspect of means for uniformly configuring and controlling in a containerization stage is filled.
Containerization environmental dynamics pose management problems:
the microservice architecture combines containerization to realize deployment and release flexibility on one hand, and fully share and improve the efficiency of computing resources on the other hand.
The existing method for implementing centralized management of configuration is shown in fig. 1. The core flow of the traditional centralized configuration center is as follows.
(1) The configuration data is uniformly managed through a configuration server management console and stored in a local file system of the configuration server.
(2) The server configured with centralized management and the client configured with integrated configuration maintain a subscription connection relationship, and generally, the subscription connection relationship is established by a way of statically configuring a file or configuring a cache at the server by adding an application identifier to an IP address of the client. Therefore, the application program integrated with the configuration client side can uniformly establish subscription connection with the configuration server after being started, and the subscription relation mapping data is statically maintained at the server side.
(3) When the configuration needs to be updated, the configuration console is operated and modified, and the configuration data is stored in the local file system of the configuration server after the updated configuration database is submitted. And modifying the data state of the maintained static mapping relation table. The integrated configuration client application polls the established connection to the configuration server for an interval time, acquires configuration data from the configuration server localization file system to persist to the application local once the state modification of the configuration change is involved, and then refreshes the configuration to the application object for use.
However, in the process of implementing the invention and creation, the inventor finds that after a containerization environment is introduced under a micro-service architecture, the original traditional implementation method of the configuration center cannot meet the support brought by changes of new technologies, and the following outstanding problems occur:
(1) configuration localized storage unreliability in a container environment
In a containerized environment, a container instance is used as a non-operating system level independent running resource entity, and is usually issued and run through a unified container scheduling platform. Such as through a facilities, kubernates, etc. container resource scheduling framework. The first problem in this environment is that it becomes infeasible to localize persistent configuration files in containers because the containers are run through a container scheduling platform, which shields the details of the underlying specific localized file system for upper-level applications. For example, the present startup schedule of the a container runs on the basis of the host No. 1, and the next startup schedule of the a container may run on the basis of the scheduling policy on the basis of the host No. 2, so that configuring the local storage in the containerization environment becomes unreliable, which is the first problem brought about.
(2) Under the container environment, the number of container instances is large, the change is quick, and the problems of performance and reliability cannot be solved by the conventional configuration management
In a containerized environment, the architecture of the micro-service is split by adopting service componentization multiplexing capability, and the application becomes fine-grained. The overall application deployment size will grow exponentially. Under the large-scale application example scale, the number of container examples can change rapidly with the support of strategies such as capacity expansion, current limiting and the like under a micro-service architecture. In the environment of applying dynamic start-stop scheduling, the method for efficiently configuring the one-point modified distributed scheduling update traditional configuration center has great challenge. The traditional method has the problem that a configuration center adopts a static subscription relationship maintenance mode, so that the subscription registration and monitoring capabilities of large-scale instances in a dynamic environment are limited. Secondly, the client scans the mode of the server side to judge the configuration change, and once the application example scale is increased, the performance processing pressure of the server side and the client side can influence the reliability of the server side and the client side.
Disclosure of Invention
The embodiment of the invention provides a centralized processing method and device for application configuration in a container environment.
In a first aspect, an embodiment of the present invention provides a centralized processing method for application configuration in a container environment, where the method is applied to a device on a configuration management side, where the device on the configuration management side is provided with a configuration management console and a configuration distributed scheduler, and a configuration data storage management module is built in the distributed scheduler;
the method comprises the following steps:
uploading the configuration data to be updated to the configuration management console for hosting, and storing the configuration data to be updated in a configuration data storage management module;
sending a configuration data updating notification message to a client by using the distributed scheduler, wherein the configuration data updating notification message comprises version information of configuration data to be updated;
and if the configuration data storage management module receives a configuration data request sent by the client, returning the configuration data to be updated to the client according to the version of the configuration data in the request.
In a second aspect, an embodiment of the present invention provides an application configuration centralized processing apparatus in a container environment, which is applied to a client side, where the method includes:
when receiving a configuration data update notification message sent by a configuration management side device by using a distributed scheduler, judging whether the current configuration data version is the same as the version of the configuration data to be updated according to the version information of the configuration data to be updated included in the configuration data update notification message;
if the configuration data is different from the configuration data to be updated, sending a configuration data request to a configuration data storage management module built in the distributed scheduler, wherein the configuration data request is used for requesting the configuration data storage management module to return the configuration data to be updated;
and after receiving the configuration data to be updated, updating the local configuration data.
In a third aspect, an embodiment of the present invention provides an application configuration centralized processing apparatus in a container environment, which is applied to a configuration management side device, where the configuration management side device is provided with a configuration management console and a configuration distributed scheduler, and a configuration data storage management module is built in the distributed scheduler;
the device comprises a configuration data processing module and a sending module;
the configuration data processing module is used for: uploading the configuration data to be updated to the configuration management console for hosting, and storing the configuration data to be updated in a configuration data storage management module;
the distributed scheduler is further configured to send a configuration data update notification message to a client, where the configuration data update notification message includes version information of configuration data to be updated;
and if the configuration data storage management module receives a configuration data request sent by the client, the sending module is used for returning the configuration data to be updated to the client according to the version of the configuration data in the request.
In a fourth aspect, an embodiment of the present invention provides an application configuration centralized processing apparatus in a container environment, which is applied to a client side, and includes:
the device comprises a judging module and a configuration management module, wherein the judging module is used for judging whether the version of the current configuration data is the same as that of the configuration data to be updated or not according to the version information of the configuration data to be updated, which is contained in a configuration data update notification message, when the configuration data update notification message sent by a configuration management side device by using a distributed scheduler is received;
a sending module, configured to send a configuration data request to a configuration data storage management module built in the distributed scheduler if the configuration data request is different from the configuration data storage management module, where the configuration data request is used to request the configuration data storage management module to return configuration data to be updated;
and the updating module is used for updating the local configuration data after receiving the configuration data to be updated.
In a fifth aspect, a further embodiment of the present invention provides a configuration management side device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor implements the steps of the method according to the first aspect when executing the program.
In a sixth aspect, a further embodiment of the invention provides a computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the steps of the method according to the first aspect.
In a seventh aspect, a further embodiment of the present invention provides a client, including a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method according to the first aspect when executing the program.
In an eighth aspect, a further embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, performs the steps of the method according to the first aspect.
The embodiment of the invention provides a centralized processing method and a centralized processing device for application configuration in a container environment. Meanwhile, the configuration data to be updated is stored in the configuration data storage management module, so that the problems of unreliability of localization of the configuration data and consistency of the configuration data in a container environment can be solved by separation of configuration data storage management.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart of a prior art centralized processing method for application configuration in a container environment;
FIG. 2 is a block diagram of a centralized processing architecture for application configuration in a container environment according to an embodiment of the present invention;
FIG. 3 is a flowchart of a centralized processing method for application configuration in a container environment according to an embodiment of the present invention;
FIG. 4 is a flowchart of a centralized processing method for application configuration in a container environment according to another embodiment of the present invention;
FIG. 5 is a flowchart of a method for centralized processing of application configuration in a specific container environment according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of an embodiment of a centralized processing apparatus for application configuration in a container environment according to the present invention;
FIG. 7 is a schematic structural diagram of an embodiment of a centralized processing apparatus for application configuration in a container environment according to the present invention;
fig. 8 is a block diagram of an embodiment of a configuration management side device provided in the present invention;
fig. 9 is a block diagram of an embodiment of a client device provided in the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the 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 invention.
In a first aspect, an embodiment of the present invention provides a centralized processing method for application configuration in a container environment, which is applied to a device on a configuration management side, as shown in fig. 2, the device on the configuration management side is provided with a configuration management console and a configuration distributed scheduler, and a configuration data storage management module is built in the distributed scheduler.
Based on this, as shown in fig. 3, the method provided by the embodiment of the present invention may include:
s301, uploading configuration data to be updated to the configuration management console for hosting, and storing the configuration data to be updated in a configuration data storage management module;
s302, sending a configuration data updating notification message to a client by using the distributed scheduler, wherein the configuration data updating notification message comprises version information of configuration data to be updated;
and S303, if the configuration data storage management module receives a configuration data request sent by the client, returning the configuration data to be updated to the client according to the version of the configuration data in the request.
In the method provided by the embodiment of the invention, a distributed scheduler with an independent memory storage unit is introduced into the configuration management under the application containerization environment, and the distributed scheduler uniformly pushes the configuration data update notification to the client, so that the problem of dynamic subscription and consumption configuration of a large-batch configuration consumer under the containerization environment can be supported. Meanwhile, the configuration data to be updated is stored in the configuration data storage management module, so that the problems of unreliability of localization of the configuration data and consistency of the configuration data in a container environment can be solved by separation of configuration data storage management.
Referring to fig. 2, in the above method embodiment, the configuration management side device may be provided with a configuration management console and a configuration distributed scheduler.
The configuration management console mainly provides visual management for configuration management operation, and before configuration data needs to be updated, the configuration data needs to be uploaded to the configuration management console for hosting so as to display the whole management process.
And configuring a distributed scheduler, which is mainly responsible for configuring consumption subscription and scheduling. The distributed scheduler module is configured with distributed online registration, discovery and scheduling configuration update capabilities, a subscription mode of dynamic registration and online discovery can be supported by the configuration client to be connected with the distributed scheduler, and the client is informed of configuration update in real time by monitoring connection and adopting a push mode. The performance overhead of configuring the client polling mode is greatly reduced, and the problems of configuration consumption and dynamic update in an application instance scene in a large-scale micro-service container platform are solved. The configuration of the distributed scheduler requires that conditions of distributed type, high availability and high performance are independently provided, the specific internal core component can be realized by combining with an open source component, and the open source component such as zookeeper and redis is used, so that the distributed scheduler has distributed coordination capability and cluster capability.
The core of the distributed scheduler is implemented by coordinating communication around registration data, pushing notification, and the like. The distributed scheduler mainly has the following core capabilities:
(1) the distributed configuration scheduler needs to support a high availability mode and realize the characteristics of distributed consistency and the like. To achieve such capabilities, it is necessary to integrate distributed election algorithms, such as FastLeader election algorithms.
(2) The distributed configuration scheduler realizes configuration consumption client instance registration and dynamic notification push by maintaining an efficient memory storage unit in a master client and a slave client. Such as tree node storage banks, redis banks, etc. in zookeeper.
(3) The distributed configuration scheduler supports dynamic registration of application instance nodes through the capacity, and forms the whole configuration center with distributed capacity by combining independent configuration storage management after dynamically discovering the capacity.
Specifically, the manner in which the distributed scheduler implements pushing notifications to the client in the above method embodiments may include:
(1) the distributed scheduler starts to select a main scheduler through a master-slave election algorithm;
(2) after the dispatcher is started, receiving a request for starting and running a register of an application instance of a container of a configuration client;
(3) after the client application is successfully dynamically registered, a connection from the distributed scheduler to the registered memory storage node and a connection from the client application instance to the memory storage node are established.
(4) Any modification is configured at the centralized server side, and the configuration modification notification can be issued to each registered application node stored in the memory through the distributed scheduler to complete the issuing of the configuration modification notification;
(5) the configuration client does not need to frequently scan, compare and modify the configuration file to complete online updating, and can directly push according to the registered notification state and complete configuration notification in a local monitoring mode;
(6) the configuration client side acquires the configuration data from the independent configuration data storage in a unified mode, and recovery can be completed by adopting the unified mode under abnormal conditions.
In addition, an independent configuration data storage management module can be built in the distributed scheduler. Before the distribution data update is pushed to the client, the configuration data is stored in the configuration data storage management module, namely the configuration data is independently managed from the configuration server, so that the centralized management of the configuration data of the whole system can be realized, and the problems of server hosting and high-availability persistence local configuration for application are effectively solved. Centralized management of configuration data, and ensuring high availability of the configuration data through cluster services such as a memory database of a zookeeper and a distributed cache redis, so as to realize consistency of the configuration data and high availability of applications. It should be noted that the configuration data storage management module is set according to the setting of the distributed scheduler. For example, zookeeper is used as the distributed scheduler, and the configured memory storage may be a built-in memory database of zookeeper.
In some embodiments, after sending the configuration data update notification message to the client, the method provided by the embodiment of the present invention may further include:
s304, when receiving the updated state information which is sent by the client and used for explaining that the configuration data is updated, the configuration management console updates the configuration monitoring state of the client according to the updated state information.
Therefore, the configuration management console can timely acquire the updating condition of the configuration data of the client, and further can monitor the configuration of each client so as to timely update the configuration data in the future. Meanwhile, the conditions of each client can be displayed to corresponding managers, and management is facilitated.
In a second aspect, an embodiment of the present invention further provides a centralized processing method for application configuration in a container environment, which is applied at a client, and as shown in fig. 4, includes:
s401, when a configuration data update notification message sent by a configuration management side device by using a distributed scheduler is received, judging whether the current configuration data version is the same as the version of the configuration data to be updated according to the version information of the configuration data to be updated included in the configuration data update notification message;
s402, if the configuration data are different, sending a configuration data request to a configuration data storage management module built in the distributed scheduler, wherein the configuration data request is used for requesting the configuration data storage management module to return configuration data to be updated;
and S403, after receiving the configuration data to be updated, updating the local configuration data.
In the method provided by the embodiment of the invention, the distributed scheduler can send the notification message to the client in a push mode, the client can judge whether the client needs to update the configuration data after receiving the notification, and if so, the client acquires the configuration data to be updated from the configuration data storage management module, so that the client does not need to rely on the scanning server to judge the configuration change mode to monitor the configuration data, and the reliability of the processing performance of the client is effectively improved.
The configuration client serves as a bridge between the configuration server and the application of configuration consumption, and mainly provides capabilities of unified registration, monitoring and configuration reading of configuration. The configuration client monitors the configuration update version data by establishing the connection with the distributed scheduler in the server, and notifies the online configuration update information to the client application through the distributed scheduler of the configuration server. The method comprises the steps that an application integrated with a configuration client first acquires pushed update notification information, the client locally judges whether a configuration version needs to load configuration data on line or not, and the problems of subscription and consumption of configuration dynamics in a container dynamic environment are solved in a matching mode while read-write configuration of the application is unified.
In some embodiments, the method provided in the embodiments of the present invention may further include:
s404, after updating the configuration data, sending update status information to the configuration management console of the configuration management side device, where the update status information is used to indicate that the configuration data of the client is updated.
Therefore, the management and control platform can be informed of the updating condition of the configuration data of the management and control platform, and the management and control platform can manage the updating of the configuration data conveniently.
The following describes in detail the method implemented by the configuration management side device according to the first aspect and the client according to the second aspect, with reference to fig. 5.
Referring to fig. 5, the configuration center configuration management method may include:
step 1: the configuration data is managed, uploaded (updated) from the centralized configuration management scheduling center and uploaded (updated);
step 2: the configuration is saved from the configuration management console to a separate configuration data storage management system.
And step 3: the method comprises the steps that under the mode of a container environment, a container instance is started through a container scheduling platform, and the application integrated with a configuration client registers and reports basic information of the application at first, wherein the basic information comprises an application identifier of the application, consumption configuration content and the like. And completing the work of online dynamic configuration subscription, registration, connection and monitoring.
And 4, step 4: the configuration client in the application monitors the local connection, does not need the remote server to periodically scan and judge whether the configuration data notification information needs to be updated, and only needs to passively wait for the distributed scheduler to push the update notification.
And 5: the configuration management center updates the configuration information on line, firstly writes the updated configuration information into an independent memory storage module of the scheduler, and simultaneously pushes the configuration version and configuration data notification information of the configuration update to a connection monitored by the configuration client application through the distributed scheduler.
Step 6: after receiving the update notification, the configuration client including the application instance performs localized cache configuration comparison, and provides information in the notification, such as a localized comparison version of the MD5 key. And if the configuration is judged to be updated, the configuration data information is remotely acquired from the unified configuration storage management module. At this time, the configuration management may adopt a cluster implementation manner such as a distributed file system fastdfs, redis, and the like, so as to improve the configuration acquisition performance.
And 7: if the localized configuration is judged to be changed through MD5 feature extraction, the configuration client side directly acquires the latest configuration data from the configuration data memory storage unit of the distributed scheduler, and unification of configuration update notification and configuration data flow is achieved.
And 8: after the latest configuration is acquired from the configuration independent storage module, the configuration object in the application is locally updated, and meanwhile, the latest configuration data is switched online without restarting the application.
And step 9: after the configuration is successful and the local update is successful, the update state information is sent to the distributed scheduler through the registered connection, and the configuration management console can complete configuration update monitoring display and alarm notification in real time according to the sent configuration update state information.
The method provided by the embodiment of the invention introduces a distributed scheduler from configuration management under an application containerization environment, and supports the problem of dynamic subscription and consumption configuration of a large-batch configuration consumer under the containerization environment. Meanwhile, the problems of unreliable localization of configuration data and consistency of the configuration data in a container environment are solved through separation of storage management of the configuration data.
In a third aspect, an embodiment of the present invention provides another centralized processing apparatus for application configuration in a container environment, which is applied to a device on a configuration management side, where the device on the configuration management side is provided with a configuration management console and a configuration distributed scheduler, and a configuration data storage management module is built in the distributed scheduler;
referring to fig. 6, the apparatus includes a configuration data processing module 601 and a transmitting module 602;
a configuration data processing module 601, configured to: uploading the configuration data to be updated to the configuration management console for hosting, and storing the configuration data to be updated in a configuration data storage management module;
the distributed scheduler is further configured to send a configuration data update notification message to a client, where the configuration data update notification message includes version information of configuration data to be updated;
if the configuration data storage management module 601 receives a configuration data request sent by the client, the sending module 602 returns the configuration data to be updated to the client according to the version of the configuration data in the request.
In a fourth aspect, an embodiment of the present invention provides another centralized processing apparatus for application configuration in a container environment, which is applied to a client side, and referring to fig. 7, includes:
a determining module 701, configured to, when receiving a configuration data update notification message sent by a configuration management side device by using a distributed scheduler, determine whether a current configuration data version is the same as a version of configuration data to be updated according to version information of the configuration data to be updated included in the configuration data update notification message;
a sending module 702, configured to send a configuration data request to a configuration data storage management module built in the distributed scheduler if the configuration data request is different, where the configuration data request is used to request the configuration data storage management module to return configuration data to be updated;
the updating module 703 is configured to update the local configuration data after receiving the configuration data to be updated.
Since the centralized processing device for application configuration in a container environment described in the third and fourth aspects is a device that can execute the centralized processing method for application configuration in a container environment in the embodiment of the present invention, based on the centralized processing method for application configuration in a container environment described in the embodiment of the present invention, a person skilled in the art can understand a specific implementation manner and various variations of the centralized processing device for application configuration in a container environment in the embodiment of the present invention, and therefore, how the centralized processing device for application configuration in a container environment achieves the centralized processing method for application configuration in a container environment in the embodiment of the present invention is not described in detail here. The scope of the present application is intended to be covered by the appended claims so long as those skilled in the art can implement the apparatus for implementing the centralized processing method for container configuration in the container environment of the present invention.
Fig. 8 shows a block diagram of a configuration management device according to an embodiment of the present invention.
Referring to fig. 8, the configuration management side device includes: a processor (processor)801, a memory (memory)802, a bus 803, and a data interface 804;
the processor 801 and the memory 802 communicate with each other via the bus 803. The data interface 804 is used for interacting with external devices.
The processor 801 is configured to call program instructions in the memory 802 to execute the method provided by the first aspect embodiment.
Embodiments of the present invention also disclose a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, where the computer program includes program instructions, and when the program instructions are executed by a computer, the computer is capable of executing the method provided in the foregoing first aspect embodiment.
Embodiments of the present invention further provide a non-transitory computer-readable storage medium, which stores computer instructions, where the computer instructions cause the computer to perform the method provided in the foregoing first aspect.
Fig. 9 shows a block diagram of a configuration management device according to an embodiment of the present invention.
Referring to fig. 9, the configuration management side device includes: a processor (processor)901, a memory (memory)902, a bus 903, and a data interface 904;
the processor 901 and the memory 902 complete communication with each other through the bus 903. The data interface 904 is used for interacting with external devices.
The processor 901 is configured to call program instructions in the memory 902 to execute the method provided by the first aspect embodiment.
Embodiments of the present invention also disclose a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, where the computer program includes program instructions, and when the program instructions are executed by a computer, the computer is capable of executing the method provided in the foregoing first aspect embodiment.
Embodiments of the present invention further provide a non-transitory computer-readable storage medium, which stores computer instructions, where the computer instructions cause the computer to perform the method provided in the foregoing first aspect.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
Some component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components of a gateway, proxy server, system according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.

Claims (10)

1. A centralized processing method of application configuration in a container environment is applied to a configuration management side device, and is characterized in that the configuration management side device is provided with a configuration management console and a configuration distributed scheduler, and a configuration data storage management module is arranged in the distributed scheduler;
the method comprises the following steps:
uploading the configuration data to be updated to the configuration management console for hosting, and storing the configuration data to be updated in a configuration data storage management module;
sending a configuration data updating notification message to a client by using the distributed scheduler, wherein the configuration data updating notification message comprises version information of configuration data to be updated;
and if the configuration data storage management module receives a configuration data request sent by the client, returning the configuration data to be updated to the client according to the version of the configuration data in the request.
2. The method of claim 1, further comprising:
and when receiving update state information which is sent by the client and used for explaining that the configuration data is updated, the configuration management console updates the configuration monitoring state of the client according to the update state information.
3. An application configuration centralized processing method in a container environment, applied to a client side, the method comprises the following steps:
when receiving a configuration data update notification message sent by a configuration management side device by using a distributed scheduler, judging whether the current configuration data version is the same as the version of the configuration data to be updated according to the version information of the configuration data to be updated included in the configuration data update notification message;
if the configuration data is different from the configuration data to be updated, sending a configuration data request to a configuration data storage management module built in the distributed scheduler, wherein the configuration data request is used for requesting the configuration data storage management module to return the configuration data to be updated;
and after receiving the configuration data to be updated, updating the local configuration data.
4. The method of claim 3, further comprising:
after the configuration data is updated, sending update state information to a configuration management console of the configuration management side device, where the update state information is used to indicate that the configuration data of the client is updated.
5. The centralized processing device for application configuration in a container environment is applied to a configuration management side device, and is characterized in that the configuration management side device is provided with a configuration management console and a configuration distributed scheduler, and a configuration data storage management module is arranged in the distributed scheduler;
the device comprises a configuration data processing module and a sending module;
the configuration data processing module is used for: uploading the configuration data to be updated to the configuration management console for hosting, and storing the configuration data to be updated in a configuration data storage management module;
the distributed scheduler is further configured to send a configuration data update notification message to a client, where the configuration data update notification message includes version information of configuration data to be updated;
and if the configuration data storage management module receives a configuration data request sent by the client, the sending module is used for returning the configuration data to be updated to the client according to the version of the configuration data in the request.
6. An application configuration centralized processing device in a container environment, applied to a client side, comprising:
the device comprises a judging module and a configuration management module, wherein the judging module is used for judging whether the version of the current configuration data is the same as that of the configuration data to be updated or not according to the version information of the configuration data to be updated, which is contained in a configuration data update notification message, when the configuration data update notification message sent by a configuration management side device by using a distributed scheduler is received;
a sending module, configured to send a configuration data request to a configuration data storage management module built in the distributed scheduler if the configuration data request is different from the configuration data storage management module, where the configuration data request is used to request the configuration data storage management module to return configuration data to be updated;
and the updating module is used for updating the local configuration data after receiving the configuration data to be updated.
7. A network-side device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement the steps of the method according to any of claims 1-2.
8. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1-2.
9. A network-side device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the method according to any of claims 3-4 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 3 to 4.
CN201811222298.5A 2018-10-19 2018-10-19 Centralized processing method and device for application configuration in container environment Pending CN111078238A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811222298.5A CN111078238A (en) 2018-10-19 2018-10-19 Centralized processing method and device for application configuration in container environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811222298.5A CN111078238A (en) 2018-10-19 2018-10-19 Centralized processing method and device for application configuration in container environment

Publications (1)

Publication Number Publication Date
CN111078238A true CN111078238A (en) 2020-04-28

Family

ID=70309421

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811222298.5A Pending CN111078238A (en) 2018-10-19 2018-10-19 Centralized processing method and device for application configuration in container environment

Country Status (1)

Country Link
CN (1) CN111078238A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111654532A (en) * 2020-05-08 2020-09-11 国云科技股份有限公司 Centralized management system, method and device for configuration files
CN112988329A (en) * 2021-03-22 2021-06-18 北京思特奇信息技术股份有限公司 Container configuration management method and system
CN113791816A (en) * 2021-08-04 2021-12-14 惠州Tcl云创科技有限公司 Configuration data management method and device, terminal equipment and storage medium
CN114363175A (en) * 2022-03-01 2022-04-15 北京金山云网络技术有限公司 Cluster monitoring method and device and electronic equipment
CN114924806A (en) * 2022-04-07 2022-08-19 南京慧尔视软件科技有限公司 Dynamic synchronization method, device, equipment and medium for configuration information

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104065517A (en) * 2014-07-07 2014-09-24 用友软件股份有限公司 Distributed-system software configuration management method and system
CN104092767A (en) * 2014-07-21 2014-10-08 北京邮电大学 Posting/subscribing system for adding message queue models and working method thereof
CN107391276A (en) * 2017-07-05 2017-11-24 腾讯科技(深圳)有限公司 Distributed monitor method, interception control device and system
CN107465714A (en) * 2017-01-23 2017-12-12 北京思特奇信息技术股份有限公司 A kind of configuration data dynamic update system and method based on application cluster
CN108540529A (en) * 2018-03-07 2018-09-14 江苏电力信息技术有限公司 Do not restart dynamic parameter method for refreshing under a kind of framework based on micro services

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104065517A (en) * 2014-07-07 2014-09-24 用友软件股份有限公司 Distributed-system software configuration management method and system
CN104092767A (en) * 2014-07-21 2014-10-08 北京邮电大学 Posting/subscribing system for adding message queue models and working method thereof
CN107465714A (en) * 2017-01-23 2017-12-12 北京思特奇信息技术股份有限公司 A kind of configuration data dynamic update system and method based on application cluster
CN107391276A (en) * 2017-07-05 2017-11-24 腾讯科技(深圳)有限公司 Distributed monitor method, interception control device and system
CN108540529A (en) * 2018-03-07 2018-09-14 江苏电力信息技术有限公司 Do not restart dynamic parameter method for refreshing under a kind of framework based on micro services

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111654532A (en) * 2020-05-08 2020-09-11 国云科技股份有限公司 Centralized management system, method and device for configuration files
CN111654532B (en) * 2020-05-08 2023-08-01 国云科技股份有限公司 Centralized management system, method and device for configuration files
CN112988329A (en) * 2021-03-22 2021-06-18 北京思特奇信息技术股份有限公司 Container configuration management method and system
CN113791816A (en) * 2021-08-04 2021-12-14 惠州Tcl云创科技有限公司 Configuration data management method and device, terminal equipment and storage medium
CN114363175A (en) * 2022-03-01 2022-04-15 北京金山云网络技术有限公司 Cluster monitoring method and device and electronic equipment
CN114924806A (en) * 2022-04-07 2022-08-19 南京慧尔视软件科技有限公司 Dynamic synchronization method, device, equipment and medium for configuration information
CN114924806B (en) * 2022-04-07 2024-03-26 南京慧尔视软件科技有限公司 Dynamic synchronization method, device, equipment and medium for configuration information

Similar Documents

Publication Publication Date Title
CN111078238A (en) Centralized processing method and device for application configuration in container environment
CN109976774B (en) Block link point deployment method, device, equipment and storage medium
CN102868736B (en) A kind of cloud computing Monitoring framework design basis ground motion method and cloud computing treatment facility
CN113366802B (en) State controller operating in kubrennetes system and method of operating the same
CN103237060B (en) A kind of data object acquisition, Apparatus and system
JP2005531855A (en) OPC server redirection manager
CN109783151B (en) Method and device for rule change
CN101383839A (en) Data distribution system based on data server and implementation method
CN114138500B (en) Resource scheduling system and method
CN109582329A (en) Data management and method for subscribing, device, system, electronic equipment and storage medium
CN115562757A (en) Data processing method, configuration center system, electronic device, and storage medium
CN105373563B (en) Database switching method and device
CN113419818B (en) Basic component deployment method, device, server and storage medium
CN114565502A (en) GPU resource management method, scheduling method, device, electronic equipment and storage medium
CN112559138B (en) Resource scheduling system and method
EP3712768B1 (en) Management of services in an edge computing system
CN115361382B (en) Data processing method, device, equipment and storage medium based on data group
US9288178B2 (en) Inventory updating of an internet protocol (IP) alias within a highly available computing cluster
CN108833532A (en) Service processing method, device and system based on internet of things
CN115225645A (en) Service updating method, device, system and storage medium
CN111309467A (en) Task distribution method and device, electronic equipment and storage medium
CN111338647A (en) Big data cluster management method and device
CN112714035A (en) Monitoring method and system
JP7189104B2 (en) Information processing system and control method for information processing system
CN113067869B (en) Node control method and device, node management method and device and distributed system

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