Recommended Dropbox (Formally Google Drive) and Plex Mount Settings

Hello @Animosity022 , I have been googling this for a week now. I can't find where to get " JWT_SHARED_KEY=RANDOMSHAREDKEY ". Do you mind helping a brother out. Thank you.
Screenshot 2022-07-18 211319

After following your github homescripts. I got to this with no services showing.

That's nothing to do with rclone.

That's just a random key for Caddy and for my configuration.

                  crypto key sign-verify {env.JWT_SHARED_KEY}

Introduction | Caddy Security (authp.github.io) is what I use.

thank you. I really appreciate the help.

Hi,

Can you expand on the BTRFS over EXT4/XFS performance improvement?
I'm using ext4 and want to know if there is some 'free' performance available

I found it has a nice improvement for my plex database as it handles the small files much better.

My main testing came from my backups as they would take 30-40 minutes and run in a 4-5 minutes now.

I use BTRFS for all my stuff currently.

I’d test and see how it works for you.

That improvement extends to reading small files on the cloud or only local/cached files?

I'll test it this weekend, I have one scenario in which reading multiple small 5 to 10mb files can get painfully slow for some apps

It's just for local things so the plex data location is really where you see it.

For the cache directory, I can't really notice much difference.

Hey Animosity002,

I've had two minds about migrating to dropbox, but I've heard people saying it's difficult to get storage as you have to contact them via chat and provide a reasonable explanation behind the increase. I'm just curious to know if this is true since you're using their service if not how do you go about requesting storage and how difficult is it? I assume this is Dropbox Business Advanced?

I've had 0 issues every asking for space as every time it takes a matter of minutes, never provided any reason nor had any trouble.

My last ask they just gave me a larger chunk as well.

I'm not keeping PBs of data though either so who knows as folks that might be using insane amounts might hit issues as I can only speak from my experience.

It has to be Advanced or Enterprise as those are the only unlimited plans.

1 Like

@Animosity022 First of all, thank you for sharing your setup.
I have a few questions that I am currently looking for answers to. could you maybe help me with that?
Everything I write now refers to Emby, not Plex and Google Drive not Dropbox. I'm using Plexdrive at the moment but want to optimize my setup so i will try to use rclone.

  1. I had some problems with your setup. Sometimes media starts extremely fast and sometimes it takes a long time to load. I then have to quit and try again. Plexdrive caches each file first. Can Rclone also do this, meaning that all files are cached once as a folder structure?

  2. Whenever I started something and then changed the playback quality, nothing happened. I then had to end the stream and reload it, then it worked. Any idea why?

  3. If I've jumped a large part, then sometimes the stream has also died down. Same problem as point 2.?

  4. I see that when I start something, rclone loads a lot at once, sometimes up to 30 MB/s per stream. To fix this problem in Plexdrive there are the following variables: --chunk-check-threads=16 --chunk-load-threads=16 --chunk-load-ahead=2 --max-chunks=128. Is there something similar in Rclone? You can see the exact problem here, Plexdrive was a bit bigger then than it is here now.

  5. When I compared Dropbox to Google Drive back then, Dropbox was very slow for me. (10 Gbits/s Server) Google Drive 35 MB/s Upload, up to 180 MB/s Download. Dropbox between 15-25 MB/s Upload and download. However, I have often read here that it should be exactly the opposite. What is your current experience like? What values ​​have you achieved?

Thank you in advance for an answer.

Best to start a new post as that doesn't relate to me and use the Help and Support template since I don't use Google Drive nor PlexDrive so 1,2,3,4 aren't related.

5 - I have no issues streaming so as I'm not going for max transfer speed since I'm only streaming. That being said, I max out my gigabit on downloads and have no issues with Dropbox.

is there only one stream running at the same time or can there be several in your environment?

Several - I'm not a huge user overall so ~3-5 is more average and 7-9 at peak times.

OK. how did you migrate your media to dropbox? I'm just thinking, I have 65TB of data. I think that's a bit much.

rclone move drive: dropbox: and waited.

I used your setting and have a great success.
My server is running since 3 months with very good performance but I noticed one small problem, but I guess it isn't rclone related more to dropbox itself.

Renaming many files or moving takes a long time.

Did you notice the same behavior?

I get about 1-2 files per second. I wonder if there is something like batch move or batch rename like the batch uploader.

I can't say I've noticed that too much as I really don't do that much of my workflow that I sit and watch.

At one point, I renamed every Movie/TV show to clean thing ups and I'd say your timings are probably on par with what I recall.

Everything else happens generally behind the scenes so I really do a more hand off approach.

Is there a particular issue that creates a problem for you with that delay?

No not really.
I just renamed like you my shows and movies.

I added like season name to the season folder like Season 1 [The Beginner Arc]

I took for me over 2-3 days to rename and move 150k files.

Probably going to test a setup where each letter like A B C, has it own application. Wonder if the performance will improve under heavy loads.

Otherwise the Dropbox API is solid. At the moment I use --tpslimit 32 and haven't noticed any error on my side.

Scan is pretty fast and playback usually starts around 2-4 seconds.

For transcoding it usually needs a bit longer, that makes sense, since it needs some file to start the transcoding.

I also use chunk-size of 10M.

I tend to use the saying at work a lot "don't let perfect be the enemy of the good" as it tends to apply to a lot of things.

In this case, you did the same as me and did a one time activity. Could we both make it better with more investigation? Probably. I just didn't see the time to do that being worth it as I was going for the easiest way and I just let mine run.

All my devices are direct play for everything so I never transcode and even a 1-2 seconds, that's good enough for me and I don't worry.

In my use case, most of my content is being direct play.

From time to time the audio needs to be transcoded, because DTS isn't supported on LG TV's. There is some strange bug to this, but this is off topic. :slight_smile:

I have family members with tons of different clients, from iPhone to different Android phones over iMacs to Linux machines.

Desktop operate system all use the client app of Plex, so they stream all content and PGS subs.

My media consist mostly of BluRay Rips. Some went through h264 encode while the last 4 years i used h265.
Original source is stored as a backup. Maybe going to switch to AV1 if the quality and file size is good enough. Support will get better over time, so future proof codec at the moment atleast. Back to the topic. :slight_smile:


Regarding TPS.
I did test an rclone lsl mount: --tpslimit X run with 3 different values and stopped time.
My test dropbox has the following setup:
8.5 TB of Shows with season folders.
1.5 TB of Movies
All have local assets like, season poster, thumbnails etc.
File count 30k+

Here are the results:
--tpslimit 12 = Took around 2min to complete the run.
--tpslimit 32 = Took around 45secs to complete the run.
--tpslimit 100 = Took around 45 secs to complete the run.

From my testing, the tpslimit of dropbox is around 28?
Even with --tpslimit 100 i haven't recieved any errors. I use my own app client id.


Regarding read-chunk-size.
Well. The idea is, so Plex scans new files or file changes faster, since it's hopefully sees all important data in the first 10MB. I noticed faster scans overall and a bit faster playback.
The good thing, read-chunk-size is increasing the size so to set it low won't cause any issue for a complete playback.
As above, havent't recievend any errors

My idea with an app per letter... Well, if i have time, i will test that, since i need to create a lot apps xD
56 to be precise.

Folders
  1. #
  2. 0-9
  3. A
  4. B
  5. C
  6. D
  7. E
  8. F
  9. G
  10. H
  11. I
  12. J
  13. K
  14. L
  15. M
  16. N
  17. O
  18. P
  19. Q
  20. R
  21. S
  22. T
  23. U
  24. V
  25. W
  26. X
  27. Y
  28. Z

Now for two libarys times two = 56.

Dropbox seems to have a tpslimit but isn't giving an error for rclone atleast.

This is my current status to my research.