Comments (4)
Take a look at https://github.com/ndmitchell/bake/blob/master/src/Development/Bake/Core/GC.hs#L20, which exports a function garbageCollect
, and explains its arguments. Running that every 20 minutes in a loop seems reasonable. I don't call bake gc
anymore, just garbageCollect
directly, but looking at the command line arguments should give you a clue what bake gc
does, once you know garbageCollect
.
As an example, garbageCollect (20*1024*1024*1024) 0.20 (5*60*60) ["."]
will make sure there is 20Gb free, there is 20% of the drive free, and it will only delete things over 5 hours old.
from bake.
OK. I actually looked at it but was expecting to be able to run it as an external command so that I can schedule it in a cron for example. Given that I run server and client in a docker container, I was having trouble understanding how bake gc
could work without connecting to server... There seemed to be missing a --server
argument which bake client
uses.
So IIRC I should put it somewhere in my server, e.g. like a thread or something and not try to use it as an external command?
from bake.
bake gc
works on the client or the server - it will GC whichever disk you run it on - we currently do both server and client. Running it as a thread in your server is a good approach.
from bake.
I'll leave this issue to document how to do it - the information from this ticket should be duplicated somewhere.
from bake.
Related Issues (20)
- Support much bigger files HOT 1
- Notifications on clients coming/going are missing HOT 1
- Include patch author in the emails HOT 1
- Client crashes due to error 500 when finishing HOT 15
- Bake client process is too CPU heavy HOT 1
- Don't send emails until after updating the state
- Merged summary issues are in the wrong order
- Code is built twice HOT 6
- Build output disappears HOT 3
- How to run tests in parallel with multiple clients? HOT 13
- Add -K1K to the test suite
- GC should not remove data from latest incremental build
- Using 'Retry' in admin view adds a quote to patch number preventing it to be merged HOT 2
- Bring up clients as needed? (assuming clients are virtualized) HOT 7
- Problems building on ghc-7.8.4 HOT 6
- Document all functions HOT 4
- Build failure with extra-1.5.1 HOT 1
- Support multiple Git repositories from a single server? HOT 1
- bake-0.5 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bake.