Skip to content
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

Release表清理策略 #3208

Closed
MilkSDF opened this issue Jul 28, 2020 · 11 comments · Fixed by #4813
Closed

Release表清理策略 #3208

MilkSDF opened this issue Jul 28, 2020 · 11 comments · Fixed by #4813
Labels
feature request Categorizes issue as related to a new feature.

Comments

@MilkSDF
Copy link

MilkSDF commented Jul 28, 2020

apollo数据库里Release表非常大,咨询下是否有清理数据的策略。之前删除某个时间点前的数据,好像需要应用重新发布。

@nobodyiam
Copy link
Member

release表存放的是应用配置的历史版本,涉及到回滚、审计等因素,所以目前还无法做自动清理,可以根据自己公司的需求(比如对某个应用保留多久的配置版本)实现一下清理策略?

@MilkSDF
Copy link
Author

MilkSDF commented Aug 12, 2020

3Q

@jadedrip
Copy link

不回滚的话,Release 表可以清空吗?

@nobodyiam
Copy link
Member

@jadedrip 如果不回滚的话,可以针对每个app+cluster+namespace的组合保留最近一条记录

@stale
Copy link

stale bot commented Nov 10, 2020

This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed in 14 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 10, 2020
@stale
Copy link

stale bot commented Nov 24, 2020

This issue has been automatically closed because it has not had activity in the last 14 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted". Thank you for your contributions.

@stale stale bot closed this as completed Nov 24, 2020
@Anilople Anilople reopened this Apr 26, 2022
@stale stale bot removed the stale label Apr 26, 2022
@stale
Copy link

stale bot commented Jun 6, 2022

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.

@stale stale bot added the stale label Jun 6, 2022
@nobodyiam nobodyiam added the feature request Categorizes issue as related to a new feature. label Jun 7, 2022
@stale stale bot removed the stale label Jun 7, 2022
@nobodyiam
Copy link
Member

@youngzil
Copy link
Contributor

assigned to student 吴铭侃, see https://summer-ospp.ac.cn/#/org/orgdetail/c4cc2271-6627-4965-a5ec-37d5ac3c0ad8/

麻烦问下,目前这个清理有方案吗 或者 具体计划吗?目前是一个什么状况?

@nobodyiam
Copy link
Member

Unfortunately, the student didn't complete this task so this feature is still open.

@chunlaiqingke
Copy link

我们自己实现的方案是使用mysql的表分区,做2个分区,然后做一个页面手动腾数据和清理数据,用分区表是为了truncate,分区之间腾数据的时候不用停机,把最新的一条release腾到新分区,结束之后把老的分区truncat掉,下次需要清的时候,再往回倒腾就行,就像2个servivor一样

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Categorizes issue as related to a new feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants