MCPcopy
hub / github.com/knightliao/disconf

github.com/knightliao/disconf @2.6.36 sqlite

repository ↗ · DeepWiki ↗ · release 2.6.36 ↗
2,391 symbols 6,239 edges 432 files 999 documented · 42%
README

Disconf Build Status Coverage Status

Distributed Configuration Management Platform(分布式配置管理平台)

专注于各种「分布式系统配置管理」的「通用组件」和「通用平台」, 提供统一的「配置管理服务」

包括 百度滴滴出行银联网易拉勾网苏宁易购顺丰科技 等知名互联网公司正在使用!

「disconf」在「2015 年度新增开源软件排名 TOP 100(OSC开源中国提供)」中排名第16强。

主要目标:

  • 部署极其简单:同一个上线包,无须改动配置,即可在 多个环境中(RD/QA/PRODUCTION) 上线
  • 部署动态化:更改配置,无需重新打包或重启,即可 实时生效
  • 统一管理:提供web平台,统一管理 多个环境(RD/QA/PRODUCTION)、多个产品 的所有配置
  • 核心目标:一个jar包,到处运行

demos && 文档 && 协作

  • demos: https://github.com/knightliao/disconf-demos-java
  • wiki: https://github.com/knightliao/disconf/wiki
  • 文档: http://disconf.readthedocs.io
  • 协作开发: 在 master 分支上提pull request
  • 提问题: https://github.com/knightliao/disconf/issues 提issue

版本

  • dev(dev branch): 2.6.36
  • master(latest && cooperate && contribute branch):2.6.36
  • stable(release && stable branch): 2.6.35
  • 在Maven Central Repository里查看 com.baidu.disconf

功能特点

  • 支持配置(配置项+配置文件)的分布式化管理
  • 配置发布统一化
    • 配置发布、更新统一化:
      • 同一个上线包 无须改动配置 即可在 多个环境中(RD/QA/PRODUCTION) 上线
      • 配置存储在云端系统,用户统一管理 多个环境(RD/QA/PRODUCTION)、多个平台 的所有配置
    • 配置更新自动化:用户在平台更新配置,使用该配置的系统会自动发现该情况,并应用新配置。特殊地,如果用户为此配置定义了回调函数类,则此函数类会被自动调用。
  • 极简的使用方式(注解式编程 或 XML无代码侵入模式):我们追求的是极简的、用户编程体验良好的编程方式。目前支持两种开发模式:基于XML配置或者基于注解,即可完成复杂的配置分布式化。

注:配置项是指某个类里的某个Field字段。

Disconf的功能特点描述图:

查看大图

其它功能特点

  • 低侵入性或无侵入性、强兼容性:
    • 低侵入性:通过极少的注解式代码撰写,即可实现分布式配置。
    • 无侵入性:通过XML简单配置,即可实现分布式配置。
    • 强兼容性:为程序添加了分布式配置注解后,开启Disconf则使用分布式配置;若关闭Disconf则使用本地配置;若开启Disconf后disconf-web不能正常Work,则Disconf使用本地配置。
  • 支持配置项多个项目共享,支持批量处理项目配置。
  • 配置监控:平台提供自校验功能(进一步提高稳定性),可以定时校验应用系统的配置是否正确。

大家都在使用disconf

他人评价

快速递技术总监:

http://ww1.sinaimg.cn/bmiddle/60c9620fjw1ergy58j978j20i302u0t2.jpg

润生活总监:

http://ww4.sinaimg.cn/bmiddle/60c9620fjw1est6ptf2dlj20ab01udfy.jpg

人脉通后端RD:

http://ww4.sinaimg.cn/bmiddle/60c9620fjw1est6pzqo68j208k05tjrm.jpg

群·联系·讨论

  • disconf技术QQ群: 239203866
  • disconf技术QQ二群: 280712860
  • 有态度无广告的搜索引擎: https://www.sov5.com
  • 高质量的微信公众号阅读: http://www.100weidu.com

Extension points exported contracts — how you extend this code

ZooKeeperOperation (Interface)
A callback object which can be used for implementing retry-able operations in the {@link org.apache.zookeeper.recipes.lo [6 …
disconf-core/src/main/java/org/apache/zookeeper/recipes/lock/ZooKeeperOperation.java
DisconfFileTypeProcessor (Interface)
文件类型处理器 @author knightliao [7 implementers]
disconf-client/src/main/java/com/baidu/disconf/client/core/filetype/DisconfFileTypeProcessor.java
Pair (Interface)
@author Darwin(Tianxin) [6 implementers]
disconf-web/src/main/java/com/baidu/unbiz/common/genericdao/operator/Pair.java
UnreliableInterface (Interface)
一个可重试可执行方法 @author liaoqiqi @version 2014-6-10 [4 implementers]
disconf-core/src/main/java/com/baidu/disconf/core/common/restful/core/UnreliableInterface.java
IDisconfSysUpdate (Interface)
当发生 配置更新 时 此回调会首先被调用 @author liaoqiqi @version 2014-5-20 [6 implementers]
disconf-client/src/main/java/com/baidu/disconf/client/common/update/IDisconfSysUpdate.java
EnvDao (Interface)
@author liaoqiqi @version 2014-6-16 [5 implementers]
disconf-web/src/main/java/com/baidu/disconf/web/service/env/dao/EnvDao.java
RestfulMgr (Interface)
Restful 抓取工具 @author liaoqiqi @version 2014-7-29 [3 implementers]
disconf-core/src/main/java/com/baidu/disconf/core/common/restful/RestfulMgr.java
IDisconfUpdate (Interface)
当配置更新 时,用户可以实现此接口,用以来实现回调函数 @author liaoqiqi @version 2014-5-20 [7 implementers]
disconf-client/src/main/java/com/baidu/disconf/client/common/update/IDisconfUpdate.java

Core symbols most depended-on inside this repo

call
called by 289
disconf-core/src/main/java/com/baidu/disconf/core/common/restful/core/UnreliableInterface.java
add
called by 189
disconf-client/src/main/java/com/baidu/disconf/client/store/inner/DisconfCenterReloadableFileStore.java
find
called by 185
disconf-web/src/main/java/com/baidu/unbiz/common/genericdao/dao/GenericDao.java
get
called by 167
disconf-web/src/main/java/com/baidu/unbiz/common/genericdao/dao/BaseDao.java
remove
called by 107
disconf-web/src/main/java/com/baidu/ub/common/commons/ThreadContext.java
size
called by 98
disconf-client/src/main/java/com/baidu/disconf/client/addons/properties/DelegatingProperties.java
toString
called by 84
disconf-web/src/main/java/com/baidu/disconf/web/service/app/bo/App.java
contains
called by 82
disconf-web/src/main/java/com/baidu/ub/common/commons/ThreadContext.java

Shape

Method 1,661
Class 334
Function 331
Interface 58
Enum 7

Languages

Java86%
TypeScript14%
Python1%

Modules by API surface

disconf-web/html/assets/js/jquery-1.11.0.js86 symbols
disconf-web/html/dep/jquery-ui-1.10.4.custom/js/jquery-1.10.2.js83 symbols
disconf-web/html/dep/jquery-ui-1.10.4.custom/js/jquery-ui-1.10.4.custom.js54 symbols
disconf-web/src/main/java/com/baidu/unbiz/common/genericdao/dao/GenericDao.java39 symbols
disconf-client/src/main/java/com/baidu/disconf/client/support/utils/StringUtil.java36 symbols
disconf-web/src/main/java/com/baidu/disconf/web/service/config/vo/ConfListVo.java32 symbols
disconf-client/src/main/java/com/baidu/disconf/client/addons/properties/ReloadingPropertyPlaceholderConfigurer.java32 symbols
disconf-client/src/main/java/com/baidu/disconf/client/common/model/DisconfCenterFile.java31 symbols
disconf-client/src/main/java/com/baidu/disconf/client/addons/properties/DelegatingProperties.java28 symbols
disconf-web/src/main/java/com/baidu/disconf/web/common/email/MailSenderInfo.java22 symbols
disconf-web/html/assets/js/jquery.uploadify.js22 symbols
disconf-client/src/main/java/com/baidu/disconf/client/scan/inner/statically/model/ScanStaticModel.java22 symbols

Dependencies from manifests, versioned

c3p0:c3p00.9.1.2 · 1×
cglib:cglib2.2.2 · 1×
ch.qos.logback:logback-classic1.0.9 · 1×
ch.qos.logback:logback-core1.0.9 · 1×
com.baidu.disconf:disconf-core
com.fasterxml.jackson.core:jackson-core2.6.0 · 1×
com.google.guava:guava19.0-rc2 · 1×
com.google.protobuf:protobuf-java2.5.0 · 1×

Datastores touched

(mysql)Database · 1 repos
disconfDatabase · 1 repos

For agents

$ claude mcp add disconf \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact