CN112187923A - Government affair cloud platform micro-service configuration method - Google Patents
Government affair cloud platform micro-service configuration method Download PDFInfo
- Publication number
- CN112187923A CN112187923A CN202011042415.7A CN202011042415A CN112187923A CN 112187923 A CN112187923 A CN 112187923A CN 202011042415 A CN202011042415 A CN 202011042415A CN 112187923 A CN112187923 A CN 112187923A
- Authority
- CN
- China
- Prior art keywords
- configuration
- service
- client
- center
- micro
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/51—Discovery or management thereof, e.g. service location protocol [SLP] or web services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/50—Network service management, e.g. ensuring proper service fulfilment according to agreements
- H04L41/5041—Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention particularly relates to a government affair cloud platform micro-service configuration method. The government affair cloud platform micro-service configuration method centrally manages all configurations, parameters and switches in the service, provides centralized external configuration support and is divided into a client and a server; the server is a micro-service configuration center, is an independent micro-service application and is used for managing configuration and providing an interface for acquiring configuration for the client; the client side is each micro-service application, configuration content is obtained from a far end through a specified configuration center address, and configuration information is loaded into an application context when the client side is started. The government affair cloud platform micro-service configuration method supports centralized external configuration, enables all services to synchronize latest configuration information in real time, simultaneously performs multi-level storage on configuration data, has high disaster tolerance, ensures the real-time performance and high performance of configuration in multiple environments, and can rapidly degrade and recover the configuration service when the configuration service fails.
Description
Technical Field
The invention relates to the technical field of electronic government affair safety supervision, in particular to a government affair cloud platform micro-service configuration method.
Background
Under the current trend of cloud of numerous public businesses, government affair clouds and cloud services are greatly developed, and as the cloud steps of departments are accelerated, the cloud services of the government affair clouds are increased, wherein services based on new architecture technology micro service architectures are more and more.
Regarding the configuration of the micro-service, most of the micro-services individually write a configuration file, such as "config. When a configuration is needed in the microservice code logic, it is read from this configuration file. This is simple, but if the parameters need to be modified, it is very inflexible and even requires a restart of the running service to be effective.
Since the configuration file is placed in the service, there may be multiple contexts for the service, such as: test environment, pre-release environment, production environment. The configuration parameters used in each environment are theoretically different, so different parameters need to be configured in the configuration file according to different environments. Moreover, at present, the configurations are manually maintained, so that errors are easily caused by errors of developers when services are released.
When a plurality of logic modules are independently deployed in a micro service and the configuration contents used by each module are different, a configuration file is conventionally placed in each module, and even the configuration file formats of different modules are different. The long-term adoption of the method inevitably leads to the over-dispersed and disordered configuration files and difficult management.
In addition, because of the adoption of the static configuration file mode, after the configuration is modified, a record is not easy to form, and a modifier, the modification time and the content before modification cannot be traced. The content before modification cannot be traced back, and when configuration is wrong, the service cannot roll back the configuration.
Aiming at the problems, the invention provides a government affair cloud platform micro-service configuration method.
Disclosure of Invention
In order to make up for the defects of the prior art, the invention provides a simple and efficient government affair cloud platform micro-service configuration method.
The invention is realized by the following technical scheme:
a government affair cloud platform micro-service configuration method is characterized in that: all configuration, parameters and switches in the service are centrally managed in a unified way, centralized external configuration support is provided, and the centralized external configuration support is divided into a client and a server;
the server is a micro-service configuration center, is an independent micro-service application and is used for managing configuration and providing an interface for acquiring configuration for the client;
the client side is each micro-service application, configuration content is obtained from a far end through a specified configuration center address, and configuration information is loaded into an application context when the client side is started.
The server side is used as a micro service configuration center, and the configuration management process comprises the following steps:
firstly, an administrator manages users through a management platform, creates users according to user attribute information, updates the users, deletes the users, distributes service authority to the users and modifies user passwords;
secondly, a common user self-defines and manages environment information through environment management of a management platform and switches different configuration center environments through a menu;
thirdly, the common user manages operation and maintenance service through the service of the management platform, and performs authority control and configuration isolation by taking service as dimensionality;
fourthly, the common user checks and operates the configuration data under the service through the configuration management of the management platform and pushes the configuration data to the client;
when the configuration has history change operation, the history change record of the configuration is checked, the configuration is re-edited and the configuration is rolled back to the history version.
In the first step, all user information of the micro-service configuration center is checked and managed through the management platform, and the method specifically comprises the following steps:
(1) preparing user attribute information including authority, user name and password;
the administrator has all the authorities of the configuration center, including user management, environment management, project management and configuration management; the common user only allows to operate the configuration under the project with the own authority;
(2) creating users according to the prepared user attribute information, and supporting updating and deleting the users;
(3) the authority is distributed to the environment and the service, the authority is fine grained to the environment and the service, and the user can check and operate all the configuration data under the environment service after the user has the environment and the service authority;
(4) and the user password is modified, and the login passwords of other users can be modified by the administrator user through the user information editing function.
In the second step, self-defining and managing environment information are managed through the environment of the management platform, and the method specifically comprises the following steps:
(1) preparing environment information: each environment has a maintained environment variable (Env) as an environment flag;
(2) creating an environment according to the prepared environment information, and supporting updating and deleting the environment;
(3) the menu at the top of the configuration center shows the environment of the configuration center which is operated currently, and different environments of the configuration center are switched through the menu, so that configuration data in different environments are managed.
In the third step, the service attribute description includes an AppName (each service has a unique AppName as a service identifier and a uniform prefix configured under the service) and a project name.
In the fourth step, the configuration data under the service can be viewed and operated through the configuration management of the management platform, which specifically comprises the following steps:
(1) preparing configuration attribute information, including Key (configured KEY, AppName prefix of the service to which the Key belongs will be automatically added during creation, and generating final Key, configuration can be obtained by using the final Key through a client, description (description information of the configuration) and Value (configured Value);
(2) establishing configuration for the selected service according to the prepared configuration information, and supporting updating and deleting the configuration;
(3) the configuration is obtained through the client and dynamic pushing and updating are supported;
(4) when the configuration has history change operation, the configuration is supported to be checked, the history change record of the configuration comprises the operation time, the operator and the set configuration value, and the configuration is re-edited according to the history data and is rolled back to the history version.
In order to improve disaster tolerance, when the micro-service configuration center stores configuration data in a multi-stage manner, the configuration data are divided into the following five layers:
(1) database (Data Base, DB): the complete configuration data is stored in the database, so that the backup and the migration of the configuration data are greatly facilitated;
(2) configuring a central disk: the configuration center maintains a copy of mirror image data in each cluster node disk of the configuration center and synchronously updates the mirror image data in real time;
(3) client-mirror file: the client application accessed to the configuration center automatically generates a mirror image file for the used configuration, and degrades the practical mirror image file when the remote configuration center fails;
(4) client local cache (Client-LocalCache): accessing a client service of a configuration center, preferentially using configuration data in a local cache memory, improving the performance and reducing the pressure on a bottom configuration service;
(5) client-interface (Client-Api): and finally, the configuration data is loaded by a user specifically to complete the service by exposing the configuration data to an Application Program Interface (API) of the service.
The micro-service configuration center can rapidly perform configuration service degradation and restoration when a configuration service fails, and the configuration service degradation and restoration are divided into the following three conditions:
(1) when the configuration center is down or the database is down, the service system is not affected, and the service system acquires configuration data from the configuration center disk and the client mirror image file;
(2) when the configuration center and the database are down at the same time and the image file of the client is deleted, manually creating a configuration image file and uploading the configuration image file to a specified position of the application of the client.
The client is used as a user of configuration, and the process of loading configuration information comprises the following steps:
(1) the client side obtains the configuration information through a line of codes through a client side SDK (Software Development Kit) provided by a micro-service configuration center, so that the real-time performance and the high performance of the configuration are ensured;
(2) the client reduces the dependence on the configuration center cluster through a local cache (LocalCache), monitors configuration change when configuration is loaded for the first time, and writes or updates the cache when the bottom layer asynchronous periodic synchronous configuration is carried out;
(3) a client periodically synchronizes configuration data in a local cache (Localcache) through a local snapshot File of configuration data of a Mirror image File (Mirror-File) layer and writes the configuration data into the Mirror image File (Mirror-File); when the data cannot be acquired from the configuration center, such as the shutdown of the configuration center, the configuration data in the Mirror image File (Mirror-File) is used;
(4) the client encapsulates the Remote client of the configuration center through Remote control (Remote) and is used for loading Remote configuration and monitoring configuration change in real time;
(5) the client periodically caches the configuration data in the local snapshot file after acquiring the configuration data from the configuration center through the configuration snapshot function, and if the configuration acquisition from the configuration center fails, the configuration data in the local snapshot file is used.
The invention has the beneficial effects that: the government affair cloud platform micro-service configuration method supports centralized external configuration, enables all services to synchronize latest configuration information in real time, simultaneously performs multi-level storage on configuration data, has high disaster tolerance, ensures the real-time performance and high performance of configuration in multiple environments, and can rapidly degrade and recover the configuration service when the configuration service fails.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic diagram of a government affair cloud platform micro-service configuration method.
Fig. 2 is a schematic diagram of a government affair cloud platform micro-service configuration center architecture according to the present invention.
Fig. 3 is a schematic diagram of a client architecture of the government cloud platform according to the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the embodiment of the present invention. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. 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.
The government affair cloud platform micro-service configuration method centrally manages all configurations, parameters and switches in the service, provides centralized external configuration support and is divided into a client and a server;
the server is a micro-service configuration center, is an independent micro-service application and is used for managing configuration and providing an interface for acquiring configuration for the client;
the client side is each micro-service application, configuration content is obtained from a far end through a specified configuration center address, and configuration information is loaded into an application context when the client side is started.
When each service needs to obtain configuration, the configuration is pulled from an interface of a micro-service configuration center; when various parameters in the micro-service configuration center are updated, each service is informed to synchronize the latest information in real time so as to dynamically update the latest information.
The server side is used as a micro service configuration center, and the configuration management process comprises the following steps:
firstly, an administrator manages users through a management platform, creates users according to user attribute information, updates the users, deletes the users, distributes service authority to the users and modifies user passwords;
secondly, a common user self-defines and manages environment information through environment management of a management platform and switches different configuration center environments through a menu;
thirdly, the common user manages operation and maintenance service through the service of the management platform, and performs authority control and configuration isolation by taking service as dimensionality;
fourthly, the common user checks and operates the configuration data under the service through the configuration management of the management platform and pushes the configuration data to the client;
when the configuration has history change operation, the history change record of the configuration is checked, the configuration is re-edited and the configuration is rolled back to the history version.
In the first step, all user information of the micro-service configuration center is checked and managed through the management platform, and the method specifically comprises the following steps:
(1) preparing user attribute information including authority, user name and password;
the administrator has all the authorities of the configuration center, including user management, environment management, project management and configuration management; the common user only allows to operate the configuration under the project with the own authority;
(2) creating users according to the prepared user attribute information, and supporting updating and deleting the users;
(3) the authority is distributed to the environment and the service, the authority is fine grained to the environment and the service, and the user can check and operate all the configuration data under the environment service after the user has the environment and the service authority;
(4) and the user password is modified, and the login passwords of other users can be modified by the administrator user through the user information editing function.
In the second step, self-defining and managing environment information are managed through the environment of the management platform, and the method specifically comprises the following steps:
(1) preparing environment information: each environment has a maintained environment variable (Env) as an environment flag;
(2) creating an environment according to the prepared environment information, and supporting updating and deleting the environment;
(3) the menu at the top of the configuration center shows the environment of the configuration center which is operated currently, and different environments of the configuration center are switched through the menu, so that configuration data in different environments are managed.
In the third step, the service attribute description includes an AppName (each service has a unique AppName as a service identifier and a uniform prefix configured under the service) and a project name.
In the fourth step, the configuration data under the service can be viewed and operated through the configuration management of the management platform, which specifically comprises the following steps:
(1) preparing configuration attribute information, including Key (configured KEY, AppName prefix of the service to which the Key belongs will be automatically added during creation, and generating final Key, configuration can be obtained by using the final Key through a client, description (description information of the configuration) and Value (configured Value);
(2) establishing configuration for the selected service according to the prepared configuration information, and supporting updating and deleting the configuration;
(3) the configuration is obtained through the client and dynamic pushing and updating are supported;
(4) when the configuration has history change operation, the configuration is supported to be checked, the history change record of the configuration comprises the operation time, the operator and the set configuration value, and the configuration is re-edited according to the history data and is rolled back to the history version.
The micro-service configuration center provides Http Restful service and multi-language support.
Restful is a design style and development mode of network applications, and based on Http, Xml format definition or Json format definition can be used. Restful is suitable for a scene that a mobile internet manufacturer serves as a service enabling interface, the function that a third party OTT calls mobile network resources is achieved, and the action type is to add, change and delete the called resources.
Furthermore, if the Java language application is adopted, the configuration center can be conveniently and quickly accessed and used directly in a mode of depending on the provided Client package; the non-JAVA language can obtain the configuration by means of the Http service of the micro service configuration center provided by HC-CONF, and the configuration update is sensed in real time, so that the multi-language support is realized. The 'Http service of the micro-service configuration center' provided by the micro-service configuration center only reads the disk configuration data, so that the performance is extremely high, and the configuration center supports infinite horizontal extension through a cluster.
The microservice configuration center provides multi-environment support.
A single configuration center cluster supports multiple self-defined environments, manages configuration data of the multiple environments, and isolates the environments from one another.
When the virtual machine resources are in short supply and the system scale is small, it is recommended to deploy a single configuration center cluster, such as a micro service configuration center cluster, and different environment configuration data are isolated by defining multiple sets of environments, such as dev, test, ppe and product.
When the virtual machine resources are sufficient and the system scale is large, it is recommended to deploy a plurality of microservice configuration center clusters, such as "microservice configuration center cluster a", defining environments "ppe, product"; the method has the advantages that the mutual influence of a plurality of clusters can be avoided.
In order to improve disaster tolerance, when the micro-service configuration center stores configuration data in a multi-stage manner, the configuration data are divided into the following five layers:
(1) database (Data Base, DB): the complete configuration data is stored in the database, so that the backup and the migration of the configuration data are greatly facilitated;
(2) configuring a central disk: the configuration center maintains a copy of mirror image data in each cluster node disk of the configuration center and synchronously updates the mirror image data in real time;
(3) client-mirror file: the client application accessed to the configuration center automatically generates a mirror image file for the used configuration, and degrades the practical mirror image file when the remote configuration center fails;
(4) client local cache (Client-LocalCache): accessing a client service of a configuration center, preferentially using configuration data in a local cache memory, improving the performance and reducing the pressure on a bottom configuration service;
(5) client-interface (Client-Api): and finally, the configuration data is loaded by a user specifically to complete the service by exposing the configuration data to an Application Program Interface (API) of the service.
The micro-service configuration center can rapidly perform configuration service degradation and restoration when a configuration service fails, and the configuration service degradation and restoration are divided into the following three conditions:
(1) when the configuration center is down or the database is down, the service system is not affected, and the service system acquires configuration data from the configuration center disk and the client mirror image file;
(2) when the configuration center and the database are down at the same time and the image file of the client is deleted, manually creating a configuration image file and uploading the configuration image file to a specified position of the application of the client.
Due to the characteristic of peer-to-peer relation of cluster of the configuration center, each node of the cluster provides idempotent configuration service, so that when the cluster is deployed in different places across the machine rooms, the nodes only need to request the configuration center of the machine room, and the different places can live more.
Such as cloud center A, B, for example, to deploy microservice configuration center cluster nodes, respectively. Namely, the cloud center a deploys two micro-service configuration center service nodes a1 and a2, and the cloud center B deploys two micro-service configuration center service nodes B1 and B2, so that applications in each cloud center only need to request the micro-service configuration center nodes deployed in the cloud center, and do not need to be invoked across the cloud centers. Namely, micro-service application requests a1 and a2 in cloud center a acquire configuration, and micro-service application requests B1 and B2 in cloud center B acquire configuration.
The cross-machine-room deployment mode realizes the 'multi-place and multi-activity' of the configuration service, and has the following three advantages:
(1) the configuration service loads faster: the configuration request is made in the cloud center;
(2) the configuration service is more stable: the configuration request does not need to cross a cloud center, does not need to consider complex network conditions, and is more stable;
(3) disaster tolerance: even if all micro-service configuration centers in one cloud center are down, the application loading service in the cloud center is only influenced, and other cloud centers are not influenced.
The client is used as a user of configuration, and the process of loading configuration information comprises the following steps:
(1) the client side obtains the configuration information through a line of codes through a client side SDK (Software Development Kit) provided by a micro-service configuration center, so that the real-time performance and the high performance of the configuration are ensured;
(2) the client reduces the dependence on the configuration center cluster through a local cache (LocalCache), monitors configuration change when configuration is loaded for the first time, and writes or updates the cache when the bottom layer asynchronous periodic synchronous configuration is carried out;
(3) a client periodically synchronizes configuration data in a local cache (Localcache) through a local snapshot File of configuration data of a Mirror image File (Mirror-File) layer and writes the configuration data into the Mirror image File (Mirror-File); when the data cannot be acquired from the configuration center, such as the shutdown of the configuration center, the configuration data in the Mirror image File (Mirror-File) is used;
(4) the client encapsulates the Remote client of the configuration center through Remote control (Remote) and is used for loading Remote configuration and monitoring configuration change in real time;
(5) the client periodically caches the configuration data in the local snapshot file after acquiring the configuration data from the configuration center through the configuration snapshot function, and if the configuration acquisition from the configuration center fails, the configuration data in the local snapshot file is used.
The above-described embodiment is only one specific embodiment of the present invention, and general changes and substitutions by those skilled in the art within the technical scope of the present invention are included in the protection scope of the present invention.
Claims (9)
1. A government affair cloud platform micro-service configuration method is characterized in that: all configuration, parameters and switches in the service are centrally managed in a unified way, centralized external configuration support is provided, and the centralized external configuration support is divided into a client and a server;
the server is a micro-service configuration center, is an independent micro-service application and is used for managing configuration and providing an interface for acquiring configuration for the client;
the client side is each micro-service application, configuration content is obtained from a far end through a specified configuration center address, and configuration information is loaded into an application context when the client side is started.
2. The government affair cloud platform micro-service configuration method according to claim 1, wherein: the server side is used as a micro service configuration center, and the configuration management process comprises the following steps:
firstly, an administrator manages users through a management platform, creates users according to user attribute information, updates the users, deletes the users, distributes service authority to the users and modifies user passwords;
secondly, a common user self-defines and manages environment information through environment management of a management platform and switches different configuration center environments through a menu;
thirdly, the common user manages operation and maintenance service through the service of the management platform, and performs authority control and configuration isolation by taking service as dimensionality;
fourthly, the common user checks and operates the configuration data under the service through the configuration management of the management platform and pushes the configuration data to the client;
when the configuration has history change operation, the history change record of the configuration is checked, the configuration is re-edited and the configuration is rolled back to the history version.
3. The government affair cloud platform micro-service configuration method according to claim 2, wherein: in the first step, all user information of the micro-service configuration center is checked and managed through the management platform, and the method specifically comprises the following steps:
(1) preparing user attribute information including authority, user name and password;
the administrator has all the authorities of the configuration center, including user management, environment management, project management and configuration management; the common user only allows to operate the configuration under the project with the own authority;
(2) creating users according to the prepared user attribute information, and supporting updating and deleting the users;
(3) the authority is distributed to the environment and the service, the authority is fine grained to the environment and the service, and the user can check and operate all the configuration data under the environment service after the user has the environment and the service authority;
(4) and the user password is modified, and the login passwords of other users can be modified by the administrator user through the user information editing function.
4. The government affair cloud platform micro-service configuration method according to claim 2, wherein: in the second step, self-defining and managing environment information are managed through the environment of the management platform, and the method specifically comprises the following steps:
(1) preparing environment information: each environment has a maintained environment variable Env as an environment mark;
(2) creating an environment according to the prepared environment information, and supporting updating and deleting the environment;
(3) the menu at the top of the configuration center shows the environment of the configuration center which is operated currently, and different environments of the configuration center are switched through the menu, so that configuration data in different environments are managed.
5. The government affair cloud platform micro-service configuration method according to claim 2, wherein: in the third step, the service attribute description includes the AppName and the item name.
6. The government affair cloud platform micro-service configuration method according to claim 2, wherein: in the fourth step, the configuration data under the service can be viewed and operated through the configuration management of the management platform, which specifically comprises the following steps:
(1) preparing configuration attribute information including Key, description and Value;
(2) establishing configuration for the selected service according to the prepared configuration information, and supporting updating and deleting the configuration;
(3) the configuration is obtained through the client and dynamic pushing and updating are supported;
(4) when the configuration has history change operation, the configuration is supported to be checked, the history change record of the configuration comprises the operation time, the operator and the set configuration value, and the configuration is re-edited according to the history data and is rolled back to the history version.
7. A government affair cloud platform micro service configuration method according to claim 1 or 2, wherein: in order to improve disaster tolerance, when the micro-service configuration center stores configuration data in a multi-stage manner, the configuration data are divided into the following five layers:
(1) a database DB: the complete configuration data is stored in the database, so that the backup and the migration of the configuration data are greatly facilitated;
(2) configuring a central disk: the configuration center maintains a copy of mirror image data in each cluster node disk of the configuration center and synchronously updates the mirror image data in real time;
(3) client-mirror file: the client application accessed to the configuration center automatically generates a mirror image file for the used configuration, and degrades the practical mirror image file when the remote configuration center fails;
(4) local caching at a client: accessing a client service of a configuration center, preferentially using configuration data in a local cache memory, improving the performance and reducing the pressure on a bottom configuration service;
(5) a client interface: and finally, the API exposed to the service is used, and the user can finish the service by specifically loading the configuration data.
8. The government cloud platform micro-service configuration method according to claim 7, wherein: the micro-service configuration center can rapidly perform configuration service degradation and restoration when a configuration service fails, and the configuration service degradation and restoration are divided into the following three conditions:
(1) when the configuration center is down or the database is down, the service system is not affected, and the service system acquires configuration data from the configuration center disk and the client mirror image file;
(2) when the configuration center and the database are down at the same time and the image file of the client is deleted, manually creating a configuration image file and uploading the configuration image file to a specified position of the application of the client.
9. The government affair cloud platform micro-service configuration method according to claim 1, wherein: the client is used as a user of configuration, and the process of loading configuration information comprises the following steps:
(1) the client side obtains the configuration information through a line of codes through a client side SDK (Software Development Kit) provided by a micro-service configuration center, so that the real-time performance and the high performance of the configuration are ensured;
(2) the client reduces the dependence on the configuration center cluster through the local cache, monitors configuration change when the configuration is loaded for the first time, and writes or updates the cache when the bottom layer asynchronous periodic synchronous configuration is carried out;
(3) the client side periodically synchronizes the configuration data in the local cache through the local snapshot file of the configuration data of the mirror image file layer and writes the configuration data into the mirror image file; when the configuration data cannot be acquired from the configuration center, the configuration data in the image file is used;
(4) the client encapsulates the remote client of the configuration center through remote control and is used for loading remote configuration and monitoring configuration change in real time;
(5) the client periodically caches the configuration data in the local snapshot file after acquiring the configuration data from the configuration center through the configuration snapshot function, and if the configuration acquisition from the configuration center fails, the configuration data in the local snapshot file is used.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011042415.7A CN112187923A (en) | 2020-09-28 | 2020-09-28 | Government affair cloud platform micro-service configuration method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011042415.7A CN112187923A (en) | 2020-09-28 | 2020-09-28 | Government affair cloud platform micro-service configuration method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112187923A true CN112187923A (en) | 2021-01-05 |
Family
ID=73945428
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011042415.7A Pending CN112187923A (en) | 2020-09-28 | 2020-09-28 | Government affair cloud platform micro-service configuration method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112187923A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112882738A (en) * | 2021-03-22 | 2021-06-01 | 亿企赢网络科技有限公司 | Configuration information updating method and device under micro-service architecture and electronic equipment |
CN112988329A (en) * | 2021-03-22 | 2021-06-18 | 北京思特奇信息技术股份有限公司 | Container configuration management method and system |
CN113032050A (en) * | 2021-04-21 | 2021-06-25 | 中国平安财产保险股份有限公司 | Configuration center access method, system, electronic device and storage medium |
CN113034326A (en) * | 2021-03-09 | 2021-06-25 | 广东金赋科技股份有限公司 | Management platform based on government affair service system |
CN113485759A (en) * | 2021-06-28 | 2021-10-08 | 上海华兴数字科技有限公司 | Micro-service configuration information management system, method, electronic device and storage medium |
CN114895943A (en) * | 2022-05-30 | 2022-08-12 | 山东浪潮科学研究院有限公司 | Method and device for realizing incremental distribution and automatic upgrade of application configuration |
CN117251173A (en) * | 2023-11-15 | 2023-12-19 | 深圳万物安全科技有限公司 | Method for configuring micro-service items, device and medium for configuring micro-service items |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106815012A (en) * | 2016-12-14 | 2017-06-09 | 深圳中顺易金融服务有限公司 | Decentralized configuration Explore of Unified Management Ideas and system based on Zookeeper |
CN109995586A (en) * | 2019-03-25 | 2019-07-09 | 江苏电力信息技术有限公司 | Refresh model with dynamic configuration parameters based on the unified configuration under micro services framework |
CN110809017A (en) * | 2019-08-16 | 2020-02-18 | 云南电网有限责任公司玉溪供电局 | Data analysis application platform system based on cloud platform and micro-service framework |
-
2020
- 2020-09-28 CN CN202011042415.7A patent/CN112187923A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106815012A (en) * | 2016-12-14 | 2017-06-09 | 深圳中顺易金融服务有限公司 | Decentralized configuration Explore of Unified Management Ideas and system based on Zookeeper |
CN109995586A (en) * | 2019-03-25 | 2019-07-09 | 江苏电力信息技术有限公司 | Refresh model with dynamic configuration parameters based on the unified configuration under micro services framework |
CN110809017A (en) * | 2019-08-16 | 2020-02-18 | 云南电网有限责任公司玉溪供电局 | Data analysis application platform system based on cloud platform and micro-service framework |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113034326A (en) * | 2021-03-09 | 2021-06-25 | 广东金赋科技股份有限公司 | Management platform based on government affair service system |
CN113034326B (en) * | 2021-03-09 | 2023-12-15 | 广东金赋科技股份有限公司 | Management platform based on government affair service system |
CN112882738A (en) * | 2021-03-22 | 2021-06-01 | 亿企赢网络科技有限公司 | Configuration information updating method and device under micro-service architecture and electronic equipment |
CN112988329A (en) * | 2021-03-22 | 2021-06-18 | 北京思特奇信息技术股份有限公司 | Container configuration management method and system |
CN113032050A (en) * | 2021-04-21 | 2021-06-25 | 中国平安财产保险股份有限公司 | Configuration center access method, system, electronic device and storage medium |
CN113485759A (en) * | 2021-06-28 | 2021-10-08 | 上海华兴数字科技有限公司 | Micro-service configuration information management system, method, electronic device and storage medium |
CN114895943A (en) * | 2022-05-30 | 2022-08-12 | 山东浪潮科学研究院有限公司 | Method and device for realizing incremental distribution and automatic upgrade of application configuration |
CN114895943B (en) * | 2022-05-30 | 2024-05-28 | 山东浪潮科学研究院有限公司 | Method and device for realizing incremental distribution and automatic upgrading of application configuration |
CN117251173A (en) * | 2023-11-15 | 2023-12-19 | 深圳万物安全科技有限公司 | Method for configuring micro-service items, device and medium for configuring micro-service items |
CN117251173B (en) * | 2023-11-15 | 2024-03-08 | 深圳万物安全科技有限公司 | Micro-service item configuration method, micro-service item configuration device and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112187923A (en) | Government affair cloud platform micro-service configuration method | |
CN108809722B (en) | Method, device and storage medium for deploying Kubernetes cluster | |
CN109491776B (en) | Task arranging method and system | |
CN107515776B (en) | Method for upgrading service continuously, node to be upgraded and readable storage medium | |
WO2024077885A1 (en) | Management method, apparatus and device for container cluster, and non-volatile readable storage medium | |
CN109995594A (en) | Block chain network method for managing resource, device and block catenary system | |
CN112417051A (en) | Container arrangement engine resource management method and device, readable medium and electronic equipment | |
CN111064626B (en) | Configuration updating method, device, server and readable storage medium | |
CN112882738A (en) | Configuration information updating method and device under micro-service architecture and electronic equipment | |
JP2023520847A (en) | Image file generation method, device and computer program | |
CN111897551B (en) | Platform and method for rapidly cloning software environment in cloud environment | |
CN113849266A (en) | Service deployment method and device for multiple Kubernetes clusters | |
CN109840094B (en) | Database deployment method and device and storage equipment | |
CN115190103A (en) | Service grid-based service domain name resolution method, device and equipment | |
CN113660315B (en) | Cloud computing service providing method, device, equipment and readable storage medium | |
CN111459619A (en) | Method and device for realizing service based on cloud platform | |
CN109117152B (en) | Service generation system and method | |
CN113238731B (en) | Ebed development platform | |
CN108595616B (en) | Unified namespace management method for distributed file system | |
CN114157658A (en) | Mirror image warehouse deployment method and device, electronic equipment and computer readable medium | |
CN113077260A (en) | Data access method and device based on block chain and electronic equipment | |
CN115037757B (en) | Multi-cluster service management system | |
CN114077435A (en) | Electronic deposit certificate system and method based on containerization rapid deployment | |
CN116760913A (en) | Method and system for issuing k8s cluster protocol conversion platform configuration | |
CN117014175A (en) | Permission processing method and device of cloud system, electronic equipment and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210105 |