Commit 749370c5 authored by Nick Gaskill's avatar Nick Gaskill

Merge branch 'trizzi-master-patch-41566' into 'master'

Add TTL policies to docs for dep proxy

See merge request gitlab-org/gitlab!76586
parents eb91d0ab aa8a758c
...@@ -204,7 +204,7 @@ on the GitLab server. The next time you pull the same image, GitLab gets the lat ...@@ -204,7 +204,7 @@ on the GitLab server. The next time you pull the same image, GitLab gets the lat
information about the image from Docker Hub, but serves the existing blobs information about the image from Docker Hub, but serves the existing blobs
from the GitLab server. from the GitLab server.
## Clear the Dependency Proxy cache ## Reduce storage usage
Blobs are kept forever on the GitLab server, and there is no hard limit on how much data can be Blobs are kept forever on the GitLab server, and there is no hard limit on how much data can be
stored. stored.
...@@ -219,6 +219,16 @@ If you clear the cache, the next time a pipeline runs it must pull an image or t ...@@ -219,6 +219,16 @@ If you clear the cache, the next time a pipeline runs it must pull an image or t
### Cleanup policies ### Cleanup policies
#### Enable cleanup policies from within GitLab
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/340777) in GitLab 14.6
You can enable an automatic time-to-live (TTL) policy for the Dependency Proxy from the user
interface. To do this, navigate to your group's **Settings > Packages & Registries > Dependency Proxy**
and enable the setting to automatically clear items from the cache after 90 days.
#### Enable cleanup policies with GraphQL
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/294187) in GitLab 14.4. > [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/294187) in GitLab 14.4.
The cleanup policy is a scheduled job you can use to clear cached images that are no longer used, The cleanup policy is a scheduled job you can use to clear cached images that are no longer used,
...@@ -249,8 +259,7 @@ mutation { ...@@ -249,8 +259,7 @@ mutation {
``` ```
See the [Getting started with GraphQL](../../../api/graphql/getting_started.md) See the [Getting started with GraphQL](../../../api/graphql/getting_started.md)
guide to learn how to make GraphQL queries. Support for enabling and configuring cleanup policies in guide to learn how to make GraphQL queries.
the UI is tracked in [this issue](https://gitlab.com/gitlab-org/gitlab/-/issues/340777).
When the policy is initially enabled, the default TTL setting is 90 days. Once enabled, stale When the policy is initially enabled, the default TTL setting is 90 days. Once enabled, stale
dependency proxy files are queued for deletion each day. Deletion may not occur right away due to dependency proxy files are queued for deletion each day. Deletion may not occur right away due to
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment