<Tentacle Home>\Files cleanup

kirk.quinbar's Avatar

kirk.quinbar

10 Oct, 2017 01:17 PM

according to the documentation, the <Tentacle Home>\Files is a cache for the most recent packages in case they are needed again. Is there anything within octopus that could keep that cleaned up? or can we just delete files on our own? we rarely will have a need to reinstall the exact same version and if we did, we are ok with having to redownload it from nuget.

thanks for any insight.

Kirk

  1. Support Staff 1 Posted by Alex Rolley on 12 Oct, 2017 04:14 AM

    Alex Rolley's Avatar

    Hi Kirk,

    Thanks for getting in touch!

    The best way to keep this directory cleaned is by using Tentacle retention policies. I would suggest reading the documentation page on retention policies so that you can get an understanding on how they work and where they are configured. Deleting these files manually is not recommended as your Octopus instance expects these files to be there, however nothing fundamental should break (mainly our delta compression and Deployment Journals will not operate correctly).

    Please let me know if there is anything else I can assist with!

    Regards,
    Alex

  2. 2 Posted by kirk.quinbar on 12 Oct, 2017 01:38 PM

    kirk.quinbar's Avatar

    unfortunately we can’t use the rentention policy for our sceneario. we are deploying wcf services which have the same name , but multiple main versions that are kept running at the same time. This support request below shows the details and describes how the current retention policies don’t leave the latest revision deploy of each main version in place. obviously then cleaning up prior main versions will break those wcf services. This is a really old request and there weren’t any changes made to how retention policies, so this is how it still behaves. I had to actually write a little console application which will cleanup deploy folders but follow versioning rules so it keeps the last deployment of each major version. We noticed recently that the Files folder was also using up more and more diskspace, which is what prompted the question as to whether we could clean that up manually.

    https://help.octopusdeploy.com/discussions/problems/14091-expand-retention-policy-to-be-version-based

    maybe this enhancement request could be looked into again to see if it’s feasible to add this kind of retention directly to octopus?
    or maybe octopus could be changed to have a setting to auto-cleanup that Files directory if you can use the rentention policies?

    Kirk Quinbar
    Senior Software Architect, Tech Advisor
    T 414.454.6153

    Zywave
    TF 855.454.6100
    F 414.454.6199
    www.zywave.com
    Join us on Twitter<http://twitter.com/zywave>, Facebook<http://www.facebook.com/Zywave>, Google+<https://plus.google.com/u/0/b/117181742152023791165/#117181742152023791165/posts> and LinkedIn<https://www.linkedin.com/company/27853/> to continue the conversation.

  3. Support Staff 3 Posted by Alex Rolley on 16 Oct, 2017 06:11 AM

    Alex Rolley's Avatar

    Hi Kirk,

    Thanks for the extra information, it is very helpful. At this stage the best approach would be to manually clean up the directory and log a feature request via our UserVoice site. This will allow us to gauge community feedback and interest.

    Please let me know if there is anything else that I can assist with,

    Regards,
    Alex

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac