|
1 | 1 | --- |
2 | 2 | title: Limits |
3 | 3 | pcx_content_type: concept |
4 | | - |
5 | 4 | --- |
6 | 5 |
|
7 | | -import { Render } from "~/components" |
8 | | - |
9 | | -## Rate limiting on managed public buckets through `r2.dev` |
10 | | - |
11 | | -Managed public bucket access through an `r2.dev` subdomain is not intended for production usage and has a rate limit applied to it. If you exceed the rate limit, requests through your `r2.dev` subdomain will be temporarily throttled and you will receive a `429 Too Many Requests` response. For production use cases, consider linking a [custom domain](/r2/buckets/public-buckets/#custom-domains) to your bucket. |
12 | | - |
13 | | -## Account plan limits |
14 | | - |
15 | | - |
16 | | - |
17 | | -| Feature | Limit | |
18 | | -| --------------------------------- | ---------------------------- | |
19 | | -| Bucket | 1000 buckets per account | |
20 | | -| Data storage per bucket | Unlimited | |
21 | | -| Object key length | 1,024 bytes | |
22 | | -| Object metadata size | 8,192 bytes | |
23 | | -| Object size | 5 TiB per object<sup>1</sup> | |
24 | | -| Maximum upload size<sup>3</sup> | 5 GiB<sup>2</sup> | |
25 | | -| Maximum upload parts | 10,000 | |
26 | | -| Maximum custom domains per bucket | 50 | |
27 | | - |
28 | | - |
29 | | - |
30 | | -<sup>1</sup> The object size limit is 5 GiB less than 5 TiB, so 4.995 TiB.<br/> <sup>2</sup> The max upload size is 5 MiB less than 5 GiB, so 4.995 GiB.<br/> <sup>3</sup> Max upload size applies to uploading a file via one request, uploading a part of a multipart upload, or copying into a part of a multipart upload. If you have a Worker, its inbound request size is |
31 | | -constrained by [Workers request limits](/workers/platform/limits#request-limits). The max upload size limit does not apply to subrequests.<br/> |
32 | | -Review the [Examples](/r2/examples/) on how to use the SDKs.<br/> |
| 6 | +import { Render } from "~/components"; |
| 7 | + |
| 8 | +| Feature | Limit | |
| 9 | +| ------------------------------------------------------------------- | ---------------------------- | |
| 10 | +| Data storage per bucket | Unlimited | |
| 11 | +| Maximum number of buckets per account | 1,000,000 | |
| 12 | +| Maximum rate of bucket management operations per bucket<sup>1</sup> | 50 per second | |
| 13 | +| Number of custom domains per bucket | 50 | |
| 14 | +| Object key length | 1,024 bytes | |
| 15 | +| Object metadata size | 8,192 bytes | |
| 16 | +| Object size | 5 TiB per object<sup>2</sup> | |
| 17 | +| Maximum upload size<sup>4</sup> | 5 GiB<sup>3</sup> | |
| 18 | +| Maximum upload parts | 10,000 | |
| 19 | + |
| 20 | +<sup>1</sup> Bucket management operations include creating, deleting, listing, |
| 21 | +and configuring buckets. |
| 22 | +<br /> <sup>2</sup> The object size limit is 5 GiB less than 5 TiB, so 4.995 |
| 23 | +TiB. |
| 24 | +<br /> <sup>2</sup> The max upload size is 5 MiB less than 5 GiB, so 4.995 GiB. |
| 25 | +<br /> <sup>4</sup> Max upload size applies to uploading a file via one request, |
| 26 | +uploading a part of a multipart upload, or copying into a part of a multipart |
| 27 | +upload. If you have a Worker, its inbound request size is constrained by |
| 28 | +[Workers request limits](/workers/platform/limits#request-limits). The max |
| 29 | +upload size limit does not apply to subrequests. |
| 30 | +<br /> |
33 | 31 |
|
34 | 32 | Limits specified in MiB (mebibyte), GiB (gibibyte), or TiB (tebibyte) are storage units of measurement based on base-2. 1 GiB (gibibyte) is equivalent to 2<sup>30</sup> bytes (or 1024<sup>3</sup> bytes). This is distinct from 1 GB (gigabyte), which is 10<sup>9</sup> bytes (or 1000<sup>3</sup> bytes). |
35 | 33 |
|
36 | 34 | <Render file="limits_increase" product="workers" /> |
| 35 | + |
| 36 | +## Rate limiting on managed public buckets through `r2.dev` |
| 37 | + |
| 38 | +Managed public bucket access through an `r2.dev` subdomain is not intended for production usage and has a rate limit applied to it. If you exceed the rate limit, requests through your `r2.dev` subdomain will be temporarily throttled and you will receive a `429 Too Many Requests` response. For production use cases, consider linking a [custom domain](/r2/buckets/public-buckets/#custom-domains) to your bucket. |
0 commit comments