Skip to content
Snippets Groups Projects
Commit 2a24fbc7 authored by Alex Hanselka's avatar Alex Hanselka
Browse files

Merge remote-tracking branch 'dev/master'

* dev/master:
  Update runners_cache_disk_space.md
  Recording rule for gitlab-pages status codes
parents 87ab1c65 e5a61bc6
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -6,24 +6,24 @@ Free disk space on runners cache node is less than 20%.
 
SSH to the `runners-cache-1.gitlab.com`. You can check available space by executing `df -h | grep /dev/vda1`.
Check which directory is consuming the largest space by executing `du -h -d 1 /opt`, most of the cases it will
be either `/opt/minio` or `/opt/registry`.
be either `/opt/gitlab/minio` or `/opt/gitlab/registry`.
 
## Fixing `/opt/minio`
## Fixing `/opt/gitlab/minio`
 
On host there is cron job which every hour deletes files from cache which is more than 4 days old.
But you can delete files from cache which is more three days old by running following command
 
```
sudo find /opt/minio/runner/runner/ -mindepth 3 -maxdepth 6 -ctime -3 -exec rm -rf {} \;
sudo find /opt/gitlab/minio/runner/runner/ -mindepth 3 -maxdepth 6 -ctime -3 -exec rm -rf {} \;
```
 
Or more than two days old
 
```
sudo find /opt/minio/runner/runner/ -mindepth 3 -maxdepth 6 -ctime -2 -exec rm -rf {} \;
sudo find /opt/gitlab/minio/runner/runner/ -mindepth 3 -maxdepth 6 -ctime -2 -exec rm -rf {} \;
```
 
## Fixing `/opt/registry`
## Fixing `/opt/gitlab/registry`
 
First, stop the registry container
 
Loading
Loading
@@ -31,10 +31,10 @@ First, stop the registry container
sudo docker stop registry
```
 
then remove everything in `/opt/registry`
then remove everything in `/opt/gitlab/registry`
 
```
sudo rm -r /opt/registry/*
sudo rm -r /opt/gitlab/registry/*
```
 
and finally start the registry container again
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment