So my general mantra with this stuff is keep it simple. I try to use the defaults wherever it makes sense to keep them.
rc - you are correct as that’s only used for remote control commands. If you don’t plan to use it, you can remove this option
dir-cache-time and vfs-cache-max-age-duration are two different things. dir-cache-time is how long the directory and file system will stay unless a polling interval invalidates them. I personally keep this as big as possible as the bigger the better imo. 72 hours or something along those lines helps reduce API hits that aren’t needed as nothing changed so why repoll.
all the vfs-cache commands relate back to the vfs-cache-mode that you are using. So if you are using writes, any write stays in cache (local disk) until the age expires.
drive-chunk-size is only for uploads and works with using vfs-cache-mode-writes and sends the uploads broken up in chunks. Your upload speed really doesn’t matter as it just uploads a 512M chunk over time and it takes however long your upload is. There have been a few tests on this and 32M or 64M seems to be a sweet spot for it.
poll-interval is how often rclone polls Google Drive for changes. 1 minute is the default and really should be just left alone.
as the vfs-cache-poll-interval only impacts what is in the actual vfs-cache.
fast-list does nothing on a mount so can be removed.
Your buffer-size at 1G means every file opened consumes 1GB of memory so be sure you have enough memory to handle whatever your max load is. Again, I don’t see much value in this personally so I keep this at the default.
My mount is simple:
/usr/bin/rclone mount gcrypt: /GD --allow-other --dir-cache-time 96h --drive-chunk-size 32M --log-level INFO --log-file /opt/rclone/logs/rclone.log --timeout 1h --umask 002 --rc
We talked about the cache time and I use 96 hours.
Timeout is for resuming playback in plex.
umask is to set permissions
I use remote control so I keep that.
So dir-cache is the list of files and directory’s. The vfs-cache is a cache for any files being read (from remote) or written (to remote), is that, roughly, correct? I think I need a “explain it to me like I’m 5” on this one
I’m using a Union remote (with the local drive) as the write. So the --drive-chunk-size will be how quickly it’s writing back to the local drive?
I put –poll-interval 1m, in because I was seeing delay between Radarr/Sonarr copying the file to directory and being able to browse to it (Via Explorer) and PLEX picking it up. I’ve also updated the “connect” setting on Radarr/Sonarr to tell PLEX of any downloads. But any advice on making that file visibility snappier?
p.s. What’s the purpose of your umask command?
For now I’ll update to.
–rc - Remove (don’t need)
–buffer-size 1G - Remove (Default should be fine)
–drive-chunk-size 256M - Change int to 64M
–fast-list - Remove (Does nothing)
–poll-interval 1m - remove (because I’m applying the default anyway. Is this correct??)
umask sets proper user/group/file permissions. It’s a bit of a long explanation but a solid read here:
I’m not sure if drive-chunk-size matters for local disks as those are writing to cloud remotes and how the chunking is done and if the remote supports it.
poll-interval is only for changes that occur outside of a local system so I server1 writes a file to the cloud, server2 would pick up 1 minute later. If everything happens on server1, the polling interval is really irrelevant.
I personally run everything on the same system so not relevant for me.
Sonarr/Radarr make copies of files so if it has to move the file, you have to wait for it to copy it and that takes time depending on the size of the file.
Whatever problem I had it may be a PEBKAC* issue! I was seeing the file on the local disk but not seeing it on the Union Mount for up to 20 minutes. I’ve retested now and It’s fine though. I’ve been been making changes all over the place though and it may just have been something out of sync.
Getting this error on my union… Radar is trying to import a film in but can’t.
The Rclone logs say:
2019/04/12 01:43:22 ERROR : Films/How to Train Your Dragon 3 (2019)/How to Train Your Dragon The Hidden World (2019) Bluray-720pHow to Train Your Dragon The Hidden World (2019) - [BLURAY-720P][AC3 5.1][X264]-WHITERE.mkv: File.openRW failed: cache open file failed: The system cannot find the path specified.
2019/04/12 01:43:22 ERROR : IO error: cache open file failed: The system cannot find the path specified.