Premise:
In general, the resource directory for Web projects typically configures a heap of properties profiles or txt profiles, such as JDBC, Mail, memcached, Redis, and the property profiles required for business, and so on.
However, in a clustered environment, configuration changes can cause two problems:
1, need to modify the project configuration file under each cluster node, even need to recompile packaging;
2, need to restart the server;
3, rd/qa/production, each environment usually need to maintain a different configuration;
This paper is mainly to solve the above problems, in the distributed environment, unified management project configuration file;
Introduction: Xxl-cfg
Distributed Configuration Management platform: A complete unified solution of distributed configuration based on zookeeper.
Main objectives:
1, simplified deployment: The same on-line package, no need to change the configuration, you can in a number of environments (research and development rd/test qa/Line production) on-line.
2, dynamic Deployment: Change the configuration, no need to repack or restart, can be effective in real time.
3, unified Management: Provide a web platform, unified management of multiple environments (rd/qa/production), all configurations of multiple products.
Use the Tutorial:
The first step: the Project Server with address configuration ZK address, support cluster;
The first step: introduce the client side jar, all the configuration items are obtained through this client-provided method, the query method is local cache, do not worry about ZK pressure;
Part II: All over;
Project Progress:
The first version of coding has ended, temporary code hosting git private library, self-test and refinement, managed to git Common library;
Some of the following monitor are included:
Page1: Login Box
Page2: Configuration Action page
Page3: Project log (after configuration update, sync to all cluster projects)
Distributed Configuration management platform--xxl-cfg (written in spare time, perfect)