You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/docs/content/guides/platform/billing-faq.mdx
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,9 +64,11 @@ If you upgrade your project to a larger instance for 10 hours and then downgrade
64
64
65
65
Read more about [Compute usage](/docs/guides/platform/manage-your-usage/compute).
66
66
67
-
#### What is unified egress and how is it billed?
67
+
#### What is egress and how is it billed?
68
68
69
-
Unified egress refers to the total egress quota available to each organization. This quota can be utilized for various purposes such as Storage, Realtime, Auth, Functions, Supavisor, Log Drains and Database. Each plan includes a specific egress quota, and any additional usage beyond that quota is billed accordingly.
69
+
Egress refers to the total bandwidth (network traffic) quota available to each organization. This quota can be utilized for various purposes such as Storage, Realtime, Auth, Functions, Supavisor, Log Drains and Database. Each plan includes a specific egress quota, and any additional usage beyond that quota is billed accordingly.
70
+
71
+
We differentiate between cached (served via our CDN from cache hits) and uncached egress and give quotas for each type and have varying pricing (cached egress is cheaper).
70
72
71
73
Read more about [Egress usage](/docs/guides/platform/manage-your-usage/egress).
Copy file name to clipboardExpand all lines: apps/docs/content/guides/platform/manage-your-usage/egress.mdx
+30-14Lines changed: 30 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,25 +55,29 @@ Data pushed to the connected log drain.
55
55
56
56
**Example:** You set up a log drain, each log sent to the log drain is considered egress. You can toggle the GZIP option to reduce egress, in case your provider supports it.
57
57
58
+
### Cached Egress
59
+
60
+
Cached and uncached egress have independent quotas and independent pricing. Cached egress is egress that is served from our CDN via cache hits. Cached egress is typically incurred for storage through our [Smart CDN](/docs/guides/storage/cdn/smart-cdn).
61
+
58
62
## How charges are calculated
59
63
60
64
Egress is charged by gigabyte. Charges apply only for usage exceeding your subscription plan's quota. This quota is called the Unified Egress Quota because it can be used across all services (Database, Auth, Storage etc.).
61
65
62
66
### Usage on your invoice
63
67
64
-
Usage is shown as "Egress GB" on your invoice.
68
+
Usage is shown as "Egress GB" and "Cached Egress GB" on your invoice.
65
69
66
70
## Pricing
67
71
68
-
<Priceprice="0.09" /> per GB per month. You are only charged for usage exceeding your subscription plan's
69
-
quota.
72
+
<Priceprice="0.09" /> per GB per month for uncached egress, <Priceprice="0.03" /> per GB per month
73
+
for cached egress. You are only charged for usage exceeding your subscription plan's quota.
70
74
71
-
| Plan |Unified Egress Quota | Over-Usage per month |
The organization's Egress usage exceeds the quota by 50 GB, incurring charges for this additional usage.
100
+
The organization's Egress usage exceeds the uncached egress quota by 50 GB and the cached egress quota by 550 GB, incurring charges for this additional usage.
@@ -118,7 +124,7 @@ You can view Egress usage on the [organization's usage page](https://supabase.co
118
124
zoomable
119
125
/>
120
126
121
-
In the Total Egress section, you can see the usage for the selected time period. Hover over a specific date to view a breakdown by service.
127
+
In the Total Egress section, you can see the usage for the selected time period. Hover over a specific date to view a breakdown by service. Note that this includes the cached egress.
122
128
123
129
<Image
124
130
alt="Unified Egress"
@@ -128,6 +134,16 @@ In the Total Egress section, you can see the usage for the selected time period.
128
134
}}
129
135
/>
130
136
137
+
Separately, you can see the cached egress right below:
1. On the [reports page](https://supabase.com/dashboard/project/_/reports), click **New custom report** in the left navigation menu
@@ -144,7 +160,7 @@ In the Total Egress section, you can see the usage for the selected time period.
144
160
145
161
## Debug usage
146
162
147
-
To better understand your Egress usage, identify what’s driving the most traffic. Check the most frequent database queries, or analyze the most requested API paths to pinpoint high-bandwidth endpoints.
163
+
To better understand your Egress usage, identify what’s driving the most traffic. Check the most frequent database queries, or analyze the most requested API paths to pinpoint high-egress endpoints.
Copy file name to clipboardExpand all lines: apps/docs/content/guides/storage/production/scaling.mdx
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,10 @@ Using the browser cache can effectively lower your egress since the asset remain
24
24
25
25
You have the option to set a maximum upload size for your bucket. Doing this can prevent users from uploading and then downloading excessively large files. You can control the maximum file size by configuring this option at the [bucket level](/docs/guides/storage/buckets/creating-buckets).
26
26
27
+
#### Smart CDN
28
+
29
+
By leveraging our [Smart CDN](/docs/guides/storage/cdn/smart-cdn), you can achieve a higher cache hit rate and therefore lower your egress cached, as we charge less for cached egress (see [egress pricing](/docs/guides/platform/manage-your-usage/egress#pricing)).
30
+
27
31
## Optimize listing objects
28
32
29
33
Once you have a substantial number of objects, you might observe that the `supabase.storage.list()` method starts to slow down. This occurs because the endpoint is quite generic and attempts to retrieve both folders and objects in a single query. While this approach is very useful for building features like the Storage viewer on the Supabase dashboard, it can impact performance with a large number of objects.
Free Plan Organizations in Supabase have a limit of 5 GB of bandwidth. This limit is calculated by the sum of all the data transferred from the Supabase servers to the client. This includes all the data transferred from the database, storage, and functions.
11
+
Free Plan Organizations in Supabase have a limit of 10 GB of bandwidth (5 GB cached + 5 GB uncached). This limit is calculated by the sum of all the data transferred from the Supabase servers to the client. This includes all the data transferred from the database, storage, and functions.
12
12
13
-
### Checking Storage egress requests in Logs Explorer:
13
+
### Checking Storage egress requests in Logs Explorer
14
14
15
15
We have a template query that you can use to get the number of requests for each object in [Logs Explorer](/dashboard/project/_/logs/explorer/templates).
16
16
17
17
```sql
18
18
select
19
-
r.methodas http_verb,
20
-
r.pathas filepath,
19
+
request.methodas http_verb,
20
+
request.pathas filepath,
21
+
(responseHeaders.cf_cache_status='HIT') as cached,
21
22
count(*) as num_requests
22
23
from
23
24
edge_logs
24
-
cross join unnest(metadata) as m
25
-
cross join unnest(m.request) as r
26
-
cross join unnest(r.headers) as h
27
-
where (pathlike'%storage/v1/object/%'orpathlike'%storage/v1/render/%') andr.method='GET'
28
-
group byr.path, r.method
25
+
cross join unnest(metadata) as metadata
26
+
cross join unnest(metadata.request) as request
27
+
cross join unnest(metadata.response) as response
28
+
cross join unnest(response.headers) as responseHeaders
If you already know the size of those files, you can calculate the egress by multiplying the number of requests by the size of the file.
51
59
You can also get the size of the file with the following cURL:
@@ -67,6 +75,6 @@ Total Egress = 395.76MB
67
75
68
76
You can see that these values can get quite large, so it's important to keep track of the egress and optimize the files.
69
77
70
-
### Optimizing egress:
78
+
### Optimizing egress
71
79
72
-
If you are on the Pro Plan, you can use the [Supabase Image Transformations](/docs/guides/storage/image-transformations) to optimize the images and reduce the egress.
80
+
See our [scaling tips for egress](/docs/guides/storage/production/scaling#egress).
When using the image transformation API, Storage will automatically find the best format supported by the client and return that to the client, without any code change. For instance, if you use Chrome when viewing a JPEG image and using transformation options, you'll see that images are automatically optimized as `webp` images.
261
261
262
-
As a result, this will lower the bandwidth that you send to your users and your application will load much faster.
262
+
As a result, this will lower the egress that you send to your users and your application will load much faster.
Copy file name to clipboardExpand all lines: apps/docs/content/troubleshooting/all-about-supabase-egress-a_Sg_e.mdx
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,4 +31,10 @@ While pointing out the exact cause for egress may not be straightforward, there
31
31
- Reduce the number of queries/calls by optimising client code or use caches to reduce the number of requests/queries being done: https://github.com/psteinroe/supabase-cache-helpers/
32
32
- In case of update/insert queries, if you don’t need the entire row to be returned, configure your ORM/queries to not return the entire row
33
33
- In case of running manual backups through Supavisor, remove unneeded tables and/or reduce the frequency
34
-
- For Storage, if you start using the [Smart CDN](https://supabase.com/docs/guides/storage/cdn/smart-cdn) Storage Egress usage can be managed. You can also use the [Supabase Image Transformations](https://supabase.com/docs/guides/storage/image-transformations) to optimize the images and reduce the egress.
34
+
- For Storage, if you start using the [Smart CDN](https://supabase.com/docs/guides/storage/cdn/smart-cdn) Storage Egress usage can be reduced. You can also use the [Supabase Image Transformations](https://supabase.com/docs/guides/storage/image-transformations) to optimize the images and reduce the egress.
35
+
36
+
**Cached vs uncached egress**
37
+
38
+
We differentiate between cached and uncached egress. Cached egress refers to egress that is served via our CDN and hits the cache. Uncached egress, on the other hand, refers to egress that is not served from the cache and requires a fresh request to the origin server.
39
+
40
+
Your plan includes a quota for both cached and uncached egress and these are independent. Cached egress is also cheaper in case you exceed your quota.
0 commit comments