Skip to content

Commit 506351d

Browse files
Update Tentacle file and package retention (#2616)
* Update Tentacle file and package retention * Spelling * Remoive space within link and update modified date --------- Co-authored-by: Steve Fenton <99181436+steve-fenton-octopus@users.noreply.github.com>
1 parent b571a91 commit 506351d

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

  • src/pages/docs/administration/retention-policies

src/pages/docs/administration/retention-policies/index.mdx

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: src/layouts/Default.astro
33
pubDate: 2023-01-01
4-
modDate: 2024-08-02
4+
modDate: 2025-01-28
55
title: Retention policies
66
icon: fa-solid fa-broom
77
description: Retention policies allow you to specify the releases, packages and files you want to keep as well as the ones you want cleaned up.
@@ -36,12 +36,23 @@ Octopus will never remove the latest release or the release previous to the late
3636

3737
### Tentacle files \{#targets-whats-deleted}
3838

39-
The Tentacle settings delete **packages**, and **files and folders** extracted from packages on the Tentacle machine that is being deployed to. Note that if you use the [Custom Installation Directory ](/docs/projects/steps/configuration-features/custom-installation-directory) feature, we will never delete from that directory during retention policies as it's assumed this directory has a working release in it. This can be purged during deployment in the project step settings.
40-
4139
:::div{.hint}
4240
We talk about Tentacles here, but the same process and logic applies to [SSH Targets](/docs/infrastructure/deployment-targets/linux/ssh-target) also.
4341
:::
4442

43+
#### Deployed files
44+
45+
Retention policies are applied to target Tentacle machines via the Retention Policy set in the Lifecycle. They clean up the files (and folders) that are deployed, e.g., the contents of a package extracted to a folder. They are run as the last step in the deployment. Retention Policies are applied to Environment/Project/Tenant/Step/Machine combinations. For example, the last three releases to the machine for the given step of a project deployed to environment/tenant will be kept.
46+
Workers also clean up any files and folders older than 90 days.
47+
48+
Note that if you use the [Custom Installation Directory](/docs/projects/steps/configuration-features/custom-installation-directory) feature, we will never delete from that directory during retention policies as it's assumed this directory has a working release in it. This can be purged during deployment in the project step settings.
49+
50+
51+
#### Packages
52+
53+
Packages that are transferred during the deployment are managed based on free disk space. For each deployment, prior to acquiring the package, the free disk space is checked and if less than 20% it will delete the “least used” package(s) from the Tentacle file store location. Packages that gets removed will be reacquired if needed for another deployment.
54+
The disk space calculation for both targets and workers looks at the entire disk, however Octopus only cleans up in the file store.
55+
4556
### Built-in repository \{#built-in-repo-whats-deleted}
4657

4758
A retention policy can be applied to packages in the built-in Octopus package repository. By default, the policy is set to keep all packages indefinitely. This policy is *separate* from the [release retention policy](#releases-whats-deleted) described above.

0 commit comments

Comments
 (0)