Skip to content

download leftovers in /tmp consume disc space #122

Description

@niziak

Hello.
We are using lava-gitlab-runner in Docker container. After some time of usage I noticed that free disc space was exhausted due to lots of old artifacts in /tmp folder:

1.5G	./.tmphgGVfA/1295647/artifacts
1.5G	./.tmphgGVfA/1295646/artifacts
1.5G	./.tmphgGVfA/1295648/artifacts
4.3G	./.tmphgGVfA
2.5G	./.tmpMBeEzt/1323217/artifacts
1.5G	./.tmpMBeEzt/1323236/artifacts
2.5G	./.tmpMBeEzt/1323238/artifacts
2.8G	./.tmpMBeEzt/1323215/artifacts
9.2G	./.tmpMBeEzt
14G	.
14G	total

I assume that files are using for cache according to used method.download and it is OK to have temporary cache.
Current status is:

  • tmp usage is not limited
  • if container is restarted, new random /tmp/tmp... subfolder is created and old artifacts still occupy space.

It would be nice to have option to setup cache directory and its maximum size.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions