Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agent Garbage Collection #63

Open
m-bock opened this issue Apr 17, 2022 · 2 comments
Open

Agent Garbage Collection #63

m-bock opened this issue Apr 17, 2022 · 2 comments

Comments

@m-bock
Copy link

m-bock commented Apr 17, 2022

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
Copy link
Member

roberth commented Apr 17, 2022

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants