Thanks for the detailed, thoughtful post about those limits. And you are right, we are just discussing them, for educational purposes only -- no one here is trying to bypass anything!
Some immediate comments:
I am not aware of any limits that can be extended by rotating service accounts, when it comes to downloading from google drive.
In other words, if one service account reaches a download limit, any other service account will all reach it at the same time. Because the limit reached belongs to the drive it itself, not to the service account.
I'm a novice re: service accounts, but I'm used to Drive's "under the table" limiting -- and I've seen some weird crap regarding that, eg sometimes just changing the user agent is enough to speed things up (not bypass any limits, mind you).
Other errors like rateLimitExceeded
are easily avoided by using the --fast-list
parameter.
I can't really use this here because I'm on a dirtree with over 13M files -- and it seems --fast-list
forces rclone to scan the whole tree before beginning to copy anything. So I'm forced to manage that by the traditional means of using the various --tps-*
options. But proceeding that way, this is not being a problem right now.
Here's the last "progress" output of the transfer I was forced to terminate yesterday, to try and optimize it further:
2023/12/23 08:56:54 INFO :
Transferred: 2.696 TiB / 4.901 TiB, 55%, 9.669 MiB/s, ETA 2d18h26m
Errors: 0
Checks: 180485 / 180485, 100%
Transferred: 3443 / 13491, 26%
Elapsed time: 3d8h50m1.0s
If you do the math, the above boils down to ~820GB/day, so even without any SA 'optimizations', Google was already allowing me to upload more than these 750GB. My hope is that by adding SAs to the mix, I will be able to optimize it further and meet the deadline for my account removal.
Google Service Accounts - docs.saltbox.dev uses the sa-gen utility to create service accounts - it could perhaps be tried out as an alternative to the admin.google.com way.
As can be seen the saltbox instructions were updated due to the service account restructuring at Google's side also, your mileage might vary.
Thank youi for this! I hadn't heard of saltbox and sa-gen, perhaps they will help me get over the SA creation
issues I'm now experiencing.