100 M Class B requests for public bucket
Hi, I'm getting a big bill on my R2 bucket, because of 100M Class B operations. How can I figure out what are these operations?
I'm on a Free plan - well it's costing me $60 per month now, so not entirely free. None of the logging solutions seem to be available for me.
The DNS dashboard is showing almost nothing compared the the R2 dashboard, how is it possible?
4 Replies
Free plan doesnt really mean you wont ever be charged as there are add ons that you can enable that have billing - R2 being one of them.
Class B operations is mostly going to be "GetObject". Full list is here though: https://developers.cloudflare.com/r2/pricing/#class-b-operations
And DNS is irrelevant to any R2 metrics. You can call R2 100 million times and have 0 DNS queries.
But even if R2 access is from the DNS "mounted" endpoint? I mean it's not via rclone or similar.
Anyway, I found out that I can block this and then see what's going on, but it's really not easy.
I mean a bot probably got on a loop or similar and is giving me this crazy 200k requests per hour.
How my question is: on the free plan, how can I figure out what user agent or IP address is causing me this cost?
just a pure r2 bucket mounted on custom domain
nothing on the api, it's all from the public endpoint / DNS
OK, the Security Rules block is not making any difference, it might be from the API then
OK, rolled the API tokens, I'm curious what happens
OK, I figured out, it was definitely related to the API usage. It's my rclone process which is causing this bill.

Interestingly I have the same process backup up to a Backblaze B2 bucket with 5 million files, where it's costing almost nothing. There is something strange going on with Cloudflare <> Rclone.