Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
aa8a758c
Commit
aa8a758c
authored
Dec 10, 2021
by
Tim Rizzi
Committed by
Nick Gaskill
Dec 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add TTL policies to docs for dep proxy
parent
eb91d0ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
doc/user/packages/dependency_proxy/index.md
doc/user/packages/dependency_proxy/index.md
+12
-3
No files found.
doc/user/packages/dependency_proxy/index.md
View file @
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 cach
e
##
Reduce storage usag
e
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment