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

Allow min disk before clean to be customized #639

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

arturopie
Copy link

@arturopie arturopie commented Oct 3, 2019

Allows the min disk threshold before docker cleanup as an CloudFormation parameter. It can be a unit (e.g. 120.3M, 1.5GB)

Thanks @lox for starting the work on this. I'll try to finish it with this PR.

I'm also adding unit tests. If you are ok with me adding unit tests with shunit2, I can create another PR for setting up a Dockerfile for running all unit tests.

This is a draft since I'm going through the comments from the original PR (#623)

Closes #465.

@arturopie arturopie force-pushed the allow-min-disk-before-clean-to-be-customized branch from b5ff3da to 0ae78f3 Compare October 3, 2019 02:16
@arturopie arturopie marked this pull request as ready for review October 6, 2019 15:04
@arturopie
Copy link
Author

@lox I haven't manually tested these changes, and I don't have access to this repo's CI so I'm not sure about its coverage. How much manual testing does this PR need?

@lox
Copy link
Contributor

lox commented Oct 6, 2019

Really appreciate the help @arturopie! I'll review today.

@lox
Copy link
Contributor

lox commented Oct 6, 2019

@arturopie argh, of course awk maths is limited to 32-bit ints 😭

@arturopie arturopie marked this pull request as ready for review October 6, 2019 23:51
@arturopie
Copy link
Author

@lox @plasticine the CI is failing, but I have no visibility of it. Can you let me know what's the failure?

@lox
Copy link
Contributor

lox commented Oct 7, 2019

@arturopie it's a linting error, I'm working on fixes in #623, nearly there.

@keithduncan keithduncan added the agent health Relating to whether the agent is or should pull additional work label Aug 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agent health Relating to whether the agent is or should pull additional work custom-configuration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide a way of customizing DOCKER_PRUNE_UNTIL, DISK_MIN_AVAILABLE, and DISK_MIN_INODES for the cron job
3 participants