kelinger / OmniStream

Deployment and management tools for an entire streaming platform that can reside on a server (local, remote, hosted, VPS) with media files stored on cloud services like Google Drive or Dropbox.
MIT License
31 stars 9 forks source link

Rclone cache size #17

Closed mahogl closed 2 years ago

mahogl commented 2 years ago

Hi again,

Quick question is there a way i can adjust the vfs-cache-max-size in the configuration? I can`t find any reference to where it it is configured. My server is running with at 233GB SSD drive, and it can be a bit tight there sometimes when a lot of files are downloading at the same time.

Best regards, Marius

kelinger commented 2 years ago

Yes; we didn't document this because it can get you into trouble if you don't know what you're doing but we did add the ability to override the defaults for users like you. First, take down OmniStream completely:

omni down

Then go into your configs for OmniMount omni configs cd omnimount

Create a file called "vfs.conf" with your favorite editor (eg, vi, nano) nano vfs.conf

Finally, add any or all of the following variables and set them as you wish. I've included the defaults here that OmniStream uses if they are not defined. Note that there isn't a lot of error checking here so if you tell it to create a 68 TB cache, it will certainly try but don't expect miraculous results.

VFSMAX=100G
VFSAGE=48h
VFSPOLL=5m
VFSREAD=2G
VFSCACHE=yes

The last parameter can be used to disable caching altogether.

When finished, you can bring OmniStream back up:

omni up

and it should be using your new parameters.

--Ken

mahogl commented 2 years ago

Perfect! Thank you, for the quick response :)

kelinger commented 2 years ago

No problem! Responses are easy when the work has already been done!