Cessquill

Stop Cache from Filling Up?

3 posts in this topic Last Reply

Recommended Posts

I occasionally fill up my cache.  Because appdata and docker image are there, it means it takes down all my dockers.  Not a huge deal, since you just have to stop and start the docker service, but it's an inconvenience.

 

Is there a way for the system to not fill the cache drive up completely?  Say, leave it at 5% capacity to leave some breathing room for dockers?

 

I've got a 250GB drive, 70GB of which is in use with appdata and docker image.  The rest fills up surprisingly quickly.  Especially when a docker triggers some large downloads that are unpacked and copied to the array whilst you're asleep...

 

There may be a way to do this, and I know that the mover scripts in the user scripts plugin is one option, but throwing this out there.  Of course, a larger cache drive (or second unassigned drive) would help...

Share this post


Link to post

Under Settings->Global Share settings you can set a Min Free Space value for the cache drive.    When the free space drops below this value then writes to user shares will bypass the cache and go straight to the array.

 

Note that this will not have any effect on dockers that are configured to use /mnt/cache as this is bypassing the User Share System so can still fill up the cache.

  • Upvote 1

Share this post


Link to post
Just now, itimpi said:

Under Settings->Global Share settings you can set a Min Free Space value for the cache drive.    When the free space drops below this value then writes to user shares will bypass the cache and go straight to the array.

 

Note that this will not have any effect on dockers that are configured to use /mnt/cache as this is bypassing the User Share System so can still fill up the cache.

Ahh, that sounds like it.  AFAIK, my dockers don't have direct access to the cache (other than appdata) - they all go via shares.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Copyright © 2005-2018 Lime Technology, Inc.
unRAID® is a registered trademark of Lime Technology, Inc.