hercules-ci / support

User feedback, questions and our public roadmap. help@hercules-ci.com
5 stars 1 forks source link

Agent Garbage Collection #63

Open m-bock opened 2 years ago

m-bock commented 2 years ago

What's the recommended way to handle garbage-collection on the agent side?

Currently we're doing this manually once in a while whenever we hit a "no space left on device" which is not so ideal :)

roberth commented 2 years ago

NixOS has an auto gc feature. You could use this module as an interim solution https://github.com/hercules-ci/hercules-ci-agent/blob/master/internal/nix/gc.nix I plan to look into the problems with Nix autogc (not NixOS) and/or disk space monitoring and gc invocation by the agent itself.

quinn-dougherty commented 2 years ago

Ideally we'd have a flag in services.hercules-ci-agent.settings.gc