-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
清理配置发布历史功能的优化建议 #5260
Comments
apollo/apollo-biz/src/main/java/com/ctrip/framework/apollo/biz/service/ReleaseHistoryService.java Line 197 in 7ce173e
Should the method |
@klboke 你有什么建议吗? |
当时设计时,考虑了类似的场景问题。考虑到在加一个时间的策略,会让清理策略变复杂,且即使【保留数量】和【保留时间】结合后,还是会产生某些 APP 在短时间内触发多次发布的情况,没法全局用一条规则来解决问题。所以在类似的场景,设计了使用 APP 级别的设置来单独处理,如:
|
实际运维中会存在一些
|
说一下实际实践中的体会
|
我觉得最终语义是保留多少个版本就好了,追溯太后的版本没有意义,当前回滚的实际场景是通过历史发版记录做对比后来回滚的,人肉不可能看几百个后的版本的 |
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions. |
你的特性请求和某个问题有关吗?请描述
清理Release 和 Releasehistory表的功能,
但是此功能只能配置release历史版本数量,并不能按照Release发布时间作为条件进行保留,无法应对以下场景:
apollo.release-history.retention.size=50
也只能回滚到2天前的配置清理数据时,需要考虑
是否可以新增
最终逻辑如下
apollo.release-history.retention.size
则不清理apollo.release-history.retention.days
之内的,则不清理,时间在此之前的则清理总结就是:超过
apollo.release-history.retention.size
数量且发布时间在apollo.release-history.retention.days
之前的才会清理清晰简洁地描述一下你希望的解决方案
清晰简洁地描述一下这个特性的备选方案
其它背景
在这里添加和这个特性请求有关的背景说明、截图
The text was updated successfully, but these errors were encountered: