-
Notifications
You must be signed in to change notification settings - Fork 99
Add machine policy - package cache retention policy details #2736
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
To configure quantity to keep, create a custom [Machine Policy](/docs/infrastructure/deployment-targets/machine-policies) and set the `Package Cache` policy to `Keep a limited number`. This will allow you to specify a number of versions to keep per package in the cache. By default this number of versions will be kept for all packages in the cache. | ||
To restrict the number of packages to keep, select `From the most recently used packages`, and enter your preferred number of packages to keep. Octopus will ensure that only the least recently used packages and versions are removed. | ||
|
||
Targets configured with this policy use the quantity to keep policy for retention. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Targets configured with this policy use the quantity to keep policy for retention.
This line might not be relevant anymore since we simplified the explanation
@@ -50,8 +50,17 @@ Note that if you use the [Custom Installation Directory](/docs/projects/steps/co | |||
|
|||
#### Packages | |||
|
|||
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about keeping the callout but only specifying that configurable package cache retention will be rolling out to Octopus Cloud customers first, and then available to Octopus Server customers in Q4 2025?
…eploy#2736) * Add machine policy - package cache retention policy details * Remove toggle * Remove extra header * Add feature availability note
[SC-111979]
Relates to: OctopusDeploy/Issues#9421