How many Plex streams I can run simultanously with using rclone+cache but without getting API banned?

Google drive , windows 10

Cache config:

[plex]
type = cache
remote = drive:
Chunk_total_size = 55G
db_path = Z:\Cache
chunk_size = 20M

Service:
mount plex: X: --size-only --allow-other --config "C:\Users\Szerver.config\rclone\rclone.conf" --log-level INFO --log-file Z:\Log --tpslimit 10 --buffer-size 500M

All movie 720p mkv

I stream 3-4 at a time and have never been api banned. 1080p/4K streams.

You don't get API banned using rclone. Your bandwidth would run out before you hit an API issue.

Sometimes 5-8 stream (friends, family)

1/1gbit optica internet
Sometimes 5-8 stream, neither?

Assuming that the setup is working as it should, unnecessary advanced scanning that is not suitable to cloud is disabled, and that there isn't any weird issue of rapidly opening and closing files going on...

Then API will basically be a non issue.
With default settings you will need 1 API call to request a 128MB chunk to read. This could be set even higher if needed, but even on a very high bitrate stream this means API calls will be quite infrequent to serve one viewer.

You can (with default quota) make 1000 requests pr 100 seconds, or 10/sec on average during sustained load in other words. That should be theoretically sufficient to serve dozens of users. You will likely be bandwidth limited before this becomes an issue.
You effectively have no cap on the amount of requests pr day. You can do 10/sec 24/7 for 864 000‬ API calls in a day. 10TB download/day , 750GB upload/day.

API limits mostly come into play when dealing with accessing loads of files, which for Plex mostly means some of the more in-depth scans that actually open each file to make thumbnails, featch stream-data ect. These should therefore not be run automatically but only manually triggered (and preferably not often) if you have a large library. It's the sort of thing you do on a maintenance day when the system will not be used much :slight_smile:

If you still are not convinced, you can go take a look at the API yourself:
https://console.developers.google.com/apis/api/drive.googleapis.com
On that page you will get a nice graph and statistics about API calls, the percentage of errors (some small % is normal) and more.

Let me also clarify you can not get "banned" from the API from over-requesting. You can only run into the 1000 pr 100sec quota. If you spam too many requests you will just get a 403 error back and rclone will have to re-request in a second or two later (ie. it deals with it automatically).

My rclone config

[drive]
type = drive
client_id =
client_secret =
scope = drive
token =
root_folder_id =
team_drive =

[cache]
type = cache
remote = drive:
chunk_size = 20M
chunk_total_size = 80G
db_path = Z:\Cache

[plex]
type = crypt
remote = drive:/
filename_encryption = standard
directory_name_encryption = true
password =
password2 =

Plex settings


I can not comment on spesific settings inside Plex because I am not a regular user of it myself yet.
Other people here can surely help with that more than me.

But it is pretty hard in any case to read if you display it in your native language. If you want to get feedback on your settings via images you may want to consider switching the GUI to english temporarily when you take the screenshot.

As I said, I won't be able to help much in this regard, but there are plenty of other people here with plex experience.

Oh sorry

As I said, I don't have the experience to say for sure - but based on what I know those settings look reasonable to me at least. It looks like you have disabled all of the really obvious problems (mostly periodic full metadata scans). Just keep an eye on your API graph if you feel like performance is suddenly bad. That will usually reveal any problems coming from settings.

how to interpret it?

(Now i copy my movies)

Well you see here that you only peak at about 2 - 2,5 requests pr. second, so that is only a small part of your allowance. As long as it doesn't go very close to 10/sec then you don't have a problem with the API limit.

But you do have some issues there on "Errors by API method" that look like they are too high. When errors to go 100% rclone is struggling to do something because requests are erroring for some reason.
What method is the green and blue color? (scroll down to see)

750GB+ upload today

Ah, well in that case it would be perfectly normal to see 100% error on drive.put type calls. Other operations should continue to work normally though. You will have to wait until tomorrow to upload more. The quota will reset sometime over night.

But otherwise you should not see may errors normally. 1-2% is ok and normal, but if you see much more you should try to see what is wrong. Seeing what type of operation fails is a very good clue to finding problems :slight_smile:

Thank you my friend!! :slight_smile:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.