VCS Changes cleanup data on disk and database
Hi,
We currently have a license for 100 agents, and we have two issues with the clean up of changes by TeamCity v10.0.4 (build 42538)
One, the size of the changes directory under TeamCityData\system\changes is more than 1.3 TB now, and there is no way to clean this up from the configuration, as far as I could see.
Second, we allow for a lot of personal builds to allow for pre-submit checks before committing to Git (and also to trigger automation on private bins). Now this means that the personal_vcs_change table is huge. There is no configuration to allow for cleaning this as well, as far as I can see.
Is there any way that we can get this clean-up done or any option in the updated releases that we can see to upgrade to?
Please let me know in case of any information, and/or data is required. I can get our IT department provide this.
Please sign in to leave a comment.
Hi Nitin,
Personal builds are also affected by the normal clean up rules, but the rules are applied separately from the regular builds, more information here: https://confluence.jetbrains.com/display/TCD10/Clean-Up#Clean-Up-Clean-upofPersonalBuilds
The \system\changes folder contains data from the personal builds, so actually both options should be impacted by the clean up rules.
Both the table and the folders can be cleaned up manually as well, taking into account that the information will be obviously lost for teamcity.
Please check that the projects related to the table and folders have the clean up rules set up properly. If they are and still aren't getting cleaned, please report back for review.
Hi Denis,
Thank you for your response. Actually we have clean-up rules setup as:
Clean Artifacts: Older than 5 days since last build
Clean History: Older than 5 days since last build
Clean Everything: Older than 30 days since last build
Dependencies: Use Default
(Note: Some projects have override rules, which I do not think should be an issue here)
Now what happens is that the clean up does happen and I do not see these things in the UI. However, I still see old personal changes in the \system\changes directory. It looks like not all of them are getting deleted and some are still persisted from long (I see a change as long back as 2016).
I am going to open an issue with these details, so that the support can discuss with the IT team
Thanks,