The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: consistent disk unit (#34156)
Pamela Chiab19c043d93db
diff --git a/apps/docs/components/MDX/billing/pricing/pricing_storage_size.mdx b/apps/docs/components/MDX/billing/pricing/pricing_storage_size.mdxindex beb464319a3..883298c4981 100644--- a/apps/docs/components/MDX/billing/pricing/pricing_storage_size.mdx+++ b/apps/docs/components/MDX/billing/pricing/pricing_storage_size.mdx@@ -1,8 +1,8 @@$0.00002919 per GB-Hr ($0.021 per GB per month). You are only charged for usage exceeding your subscription plan's quota.-| Plan | Quota in GB | Over-Usage per GB | Quota in GB-Hrs | Over-Usage per GB-Hrs |-| ---------- | ----------- | ----------------- | --------------- | --------------------- |-| Free | 1 | - | 744 | - |-| Pro | 100 | $0.021 | 74,400 | $0.00002919 |-| Team | 100 | $0.021 | 74,400 | $0.00002919 |-| Enterprise | Custom | Custom | Custom | Custom |+| Plan | Quota in GB | Over-Usage per GB | Quota in GB-Hrs | Over-Usage per GB-Hr |+| ---------- | ----------- | ----------------- | --------------- | -------------------- |+| Free | 1 | - | 744 | - |+| Pro | 100 | $0.021 | 74,400 | $0.00002919 |+| Team | 100 | $0.021 | 74,400 | $0.00002919 |+| Enterprise | Custom | Custom | Custom | Custom |diff --git a/apps/docs/content/guides/platform/compute-and-disk.mdx b/apps/docs/content/guides/platform/compute-and-disk.mdxindex 1534494cdd0..342729f61d7 100644--- a/apps/docs/content/guides/platform/compute-and-disk.mdx+++ b/apps/docs/content/guides/platform/compute-and-disk.mdx@@ -82,21 +82,21 @@ The following sections explain how these attributes affect disk performance.### Compute size-The compute size of your project sets the upper limit for disk throughput and IOPS. The table below shows the limits for each instance size. For instance, an 8XL compute instance has a maximum throughput of 9,500 MiB/s and a maximum IOPS of 40,000.+The compute size of your project sets the upper limit for disk throughput and IOPS. The table below shows the limits for each instance size. For instance, an 8XL compute instance has a maximum throughput of 9,500 Mbps and a maximum IOPS of 40,000.| Compute Instance | Disk Throughput | IOPS || ---------------- | --------------- | ----------- |-| Nano (free) | 43 MiB/s | 250 IOPS |-| Micro | 87 MiB/s | 500 IOPS |-| Small | 174 MiB/s | 1,000 IOPS |-| Medium | 347 MiB/s | 2,000 IOPS |-| Large | 630 MiB/s | 3,600 IOPS |-| XL | 1,188 MiB/s | 6,000 IOPS |-| 2XL | 2,375 MiB/s | 12,000 IOPS |-| 4XL | 4,750 MiB/s | 20,000 IOPS |-| 8XL | 9,500 MiB/s | 40,000 IOPS |-| 12XL | 14,250 MiB/s | 50,000 IOPS |-| 16XL | 19,000 MiB/s | 80,000 IOPS |+| Nano (free) | 43 Mbps | 250 IOPS |+| Micro | 87 Mbps | 500 IOPS |+| Small | 174 Mbps | 1,000 IOPS |+| Medium | 347 Mbps | 2,000 IOPS |+| Large | 630 Mbps | 3,600 IOPS |+| XL | 1,188 Mbps | 6,000 IOPS |+| 2XL | 2,375 Mbps | 12,000 IOPS |+| 4XL | 4,750 Mbps | 20,000 IOPS |+| 8XL | 9,500 Mbps | 40,000 IOPS |+| 12XL | 14,250 Mbps | 50,000 IOPS |+| 16XL | 19,000 Mbps | 80,000 IOPS |Smaller compute instances like Nano, Micro, Small, and Medium have baseline performance levels that can occasionally be exceeded for short periods of time. If it does exceed the baseline, you should consider upgrading your instance size for a more reliable performance.@@ -108,7 +108,7 @@ If you need consistent disk performance, choose the 4XL or larger compute instan### Provisioned disk throughput and IOPS-The default disk type is gp3, which comes with a baseline throughput of 125 MiB/s and a default IOPS of 3,000. You can provision additional IOPS and throughput from the [Database Settings](https://supabase.com/dashboard/project/_/settings/compute-and-disk) page, but keep in mind that the effective IOPS and throughput will be limited by the compute instance size. This requires Large compute size or above.+The default disk type is gp3, which comes with a baseline throughput of 125 MB/s and a default IOPS of 3,000. You can provision additional IOPS and throughput from the [Database Settings](https://supabase.com/dashboard/project/_/settings/compute-and-disk) page, but keep in mind that the effective IOPS and throughput will be limited by the compute instance size. This requires Large compute size or above.<Admonition type="caution">@@ -125,9 +125,9 @@ When selecting your disk, it's essential to focus on the performance needs of yo| **Use Case** | General workloads, development environments, small to medium databases | High-performance needs, large-scale databases, mission-critical applications || **Max Disk Size** | 16 TB | 60 TB || **Max IOPS** | 16,000 IOPS (at 32 GB disk size) | 80,000 IOPS (at 80 GB disk size) |-| **Throughput** | 125 MiB/s (default) to 1,000 MiB/s (maximum) | Automatically scales with IOPS |+| **Throughput** | 125 MB/s (default) to 1,000 MB/s (maximum) | Automatically scales with IOPS || **Best For** | Great value for most use cases | Low latency and very high IOPS requirements |-| **Pricing** | Disk: 8 GB included, then $0.125 per GB<br/>IOPS: 3,000 included, then $0.024 per IOPS<br/>Throughput: 125 Mbps included, then $0.95 per Mbps | Disk: $0.195 per GB<br/>IOPS: $0.119 per IOPS<br/>Throughput: Scales with IOPS at no additional cost |+| **Pricing** | Disk: 8 GB included, then $0.125 per GB<br/>IOPS: 3,000 included, then $0.024 per IOPS<br/>Throughput: 125 MB/s included, then $0.95 per MB/s | Disk: $0.195 per GB<br/>IOPS: $0.119 per IOPS<br/>Throughput: Scales with IOPS at no additional cost |For general, day-to-day operations, gp3 should be more than enough. If you need high throughput and IOPS for critical systems, io2 will provide the performance required.@@ -139,7 +139,7 @@ Compute instance size changes will not change your selected disk type or disk si### Disk size-- General Purpose (gp3) disks come with a baseline of 3,000 IOPS and 125 MiB/s. You can provision additional 500 IOPS for every GB of disk size and additional 0.25 MiB/s throughput per provisioned IOPS.+- General Purpose (gp3) disks come with a baseline of 3,000 IOPS and 125 MB/s. You can provision additional 500 IOPS for every GB of disk size and additional 0.25 MB/s throughput per provisioned IOPS.- High Performance (io2) disks can be provisioned with 1,000 IOPS per GB of disk size.## Limits and constraintsdiff --git a/apps/docs/content/guides/platform/manage-your-usage/disk-iops.mdx b/apps/docs/content/guides/platform/manage-your-usage/disk-iops.mdxindex 621c7f7a5a2..b4dfada9665 100644--- a/apps/docs/content/guides/platform/manage-your-usage/disk-iops.mdx+++ b/apps/docs/content/guides/platform/manage-your-usage/disk-iops.mdx@@ -31,22 +31,22 @@ Pricing depends on the [disk type](/docs/guides/platform/compute-and-disk#disk-t$0.00003288 per IOPS-Hr ($0.024 per IOPS per month). gp3 disks come with a default IOPS of 3,000. You are only charged for provisioned IOPS exceeding these 3,000 IOPS.-| Plan | Included Disk IOPS | Over-Usage per IOPS per month | Over-Usage per IOPS-Hrs |-| ---------- | ------------------ | ----------------------------- | ----------------------- |-| Pro | 3,000 | $0.024 | $0.00003288 |-| Team | 3,000 | $0.024 | $0.00003288 |-| Enterprise | Custom | Custom | Custom |+| Plan | Included Disk IOPS | Over-Usage per IOPS per month | Over-Usage per IOPS-Hr |+| ---------- | ------------------ | ----------------------------- | ---------------------- |+| Pro | 3,000 | $0.024 | $0.00003288 |+| Team | 3,000 | $0.024 | $0.00003288 |+| Enterprise | Custom | Custom | Custom |### High performance disks (io2)$0.000163 per IOPS-Hr ($0.119 per IOPS per month).Unlike general purpose disks, high performance disks are billed from the first provisioned IOPS.-| Plan | Included Disk IOPS | Usage per IOPS per month | Usage per IOPS-Hrs |-| ---------- | ------------------ | ------------------------ | ------------------ |-| Pro | 0 | $0.119 | $0.000163 |-| Team | 0 | $0.119 | $0.000163 |-| Enterprise | Custom | Custom | Custom |+| Plan | Included Disk IOPS | Usage per IOPS per month | Usage per IOPS-Hr |+| ---------- | ------------------ | ------------------------ | ----------------- |+| Pro | 0 | $0.119 | $0.000163 |+| Team | 0 | $0.119 | $0.000163 |+| Enterprise | Custom | Custom | Custom |## Billing examplesdiff --git a/apps/docs/content/guides/platform/manage-your-usage/disk-throughput.mdx b/apps/docs/content/guides/platform/manage-your-usage/disk-throughput.mdxindex 71d5ba9c83f..f19a2acb71e 100644--- a/apps/docs/content/guides/platform/manage-your-usage/disk-throughput.mdx+++ b/apps/docs/content/guides/platform/manage-your-usage/disk-throughput.mdx@@ -17,11 +17,11 @@ Launching a Read Replica creates an additional database with its own dedicated d## How charges are calculated-Disk throughput is charged by Mbps-Hrs (Mbps stands for megabits per second). 1 Mbps-Hr represents disk throughput of 1 Mbps being provisioned for 1 hour. For example, having 10 Mbps provisioned for 5 hours results in 50 Mbps-Hrs (10 Mbps × 5 hours).+Disk throughput is charged by MB/s-Hrs (MB/s stands for megabytes per second). 1 MB/s-Hr represents disk throughput of 1 MB/s being provisioned for 1 hour. For example, having 10 MB/s provisioned for 5 hours results in 50 MB/s-Hrs (10 MB/s × 5 hours).### Usage on your invoice-Usage is shown as "Disk Throughput Mbps-Hrs" on your invoice.+Usage is shown as "Disk Throughput MB/s-Hrs" on your invoice.## Pricing@@ -29,13 +29,13 @@ Pricing depends on the [disk type](/docs/guides/platform/compute-and-disk#disk-t### General purpose disks (gp3)-$0.00013 per Mbps-Hr ($0.095 per Mbps per month). gp3 disks come with a baseline throughput of 125 Mbps. You are only charged for provisioned throughput exceeding these 125 Mbps.+$0.00013 per MB/s-Hr ($0.095 per MB/s per month). gp3 disks come with a baseline throughput of 125 MB/s. You are only charged for provisioned throughput exceeding these 125 MB/s.-| Plan | Included Disk Throughput | Over-Usage per Mbps per month | Over-Usage per Mbps-Hrs |-| ---------- | ------------------------ | ----------------------------- | ----------------------- |-| Pro | 125 Mbps | $0.095 | $0.00013 |-| Team | 125 Mbps | $0.095 | $0.00013 |-| Enterprise | Custom | Custom | Custom |+| Plan | Included Disk Throughput | Over-Usage per MB/s per month | Over-Usage per MB/s-Hr |+| ---------- | ------------------------ | ----------------------------- | ---------------------- |+| Pro | 125 MB/s | $0.095 | $0.00013 |+| Team | 125 MB/s | $0.095 | $0.00013 |+| Enterprise | Custom | Custom | Custom |### High performance disks (io2)@@ -50,7 +50,7 @@ There are no charges. Throughput scales with IOPS at no additional cost.| Pro Plan | 1 | $25 || | | || Compute Hours Micro Project 1 | 744 hours | $10 |-| Disk Throughput Project 1 | 125 Mbps | $0 |+| Disk Throughput Project 1 | 125 MB/s | $0 || | | || **Subtotal** | | **$35** || Compute Credits | | -$10 |@@ -63,7 +63,7 @@ There are no charges. Throughput scales with IOPS at no additional cost.| Pro Plan | 1 | $25 || | | || Compute Hours Large Project 1 | 744 hours | $110 |-| Disk Throughput Project 1 | 200 Mbps | $7.13 |+| Disk Throughput Project 1 | 200 MB/s | $7.13 || | | || **Subtotal** | | **$142.13** || Compute Credits | | -$10 |@@ -76,10 +76,10 @@ There are no charges. Throughput scales with IOPS at no additional cost.| Pro Plan | 1 | $25 || | | || Compute Hours Large Project 1 | 744 hours | $110 |-| Disk Throughput Project 1 | 200 Mbps | $7.13 |+| Disk Throughput Project 1 | 200 MB/s | $7.13 || | | || Compute Hours Large Replica | 744 hours | $110 |-| Disk Throughput Replica | 200 Mbps | $7.13 |+| Disk Throughput Replica | 200 MB/s | $7.13 || | | || **Subtotal** | | **$259.26** || Compute Credits | | -$10 |diff --git a/apps/docs/content/guides/platform/manage-your-usage/read-replicas.mdx b/apps/docs/content/guides/platform/manage-your-usage/read-replicas.mdxindex 83e43e619ee..6b993943700 100644--- a/apps/docs/content/guides/platform/manage-your-usage/read-replicas.mdx+++ b/apps/docs/content/guides/platform/manage-your-usage/read-replicas.mdx@@ -63,19 +63,19 @@ The project has two Read Replicas and IPv4 and additional Disk IOPS and Disk Thr| Compute Hours Large Project 1 | 744 hours | $110 || Disk Size Project 1 | 8 GB | $0 || Disk IOPS Project 1 | 3600 | $14.40 |-| Disk Throughput Project 1 | 200 Mbps | $7.13 |+| Disk Throughput Project 1 | 200 MB/s | $7.13 || IPv4 Hours Project 1 | 744 hours | $4 || | | || Compute Hours Large Replica 1 | 744 hours | $110 || Disk Size Replica 1 | 10 GB | $1.25 || Disk IOPS Replica 1 | 3600 | $14.40 |-| Disk Throughput Replica 1 | 200 Mbps | $7.13 |+| Disk Throughput Replica 1 | 200 MB/s | $7.13 || IPv4 Hours Replica 1 | 744 hours | $4 || | | || Compute Hours Large Replica 2 | 744 hours | $110 || Disk Size Replica 2 | 10 GB | $1.25 || Disk IOPS Replica 2 | 3600 | $14.40 |-| Disk Throughput Replica 2 | 200 Mbps | $7.13 |+| Disk Throughput Replica 2 | 200 MB/s | $7.13 || IPv4 Hours Replica 2 | 744 hours | $4 || | | || **Subtotal** | | **$434.09** |diff --git a/apps/studio/components/interfaces/DiskManagement/DiskManagement.schema.ts b/apps/studio/components/interfaces/DiskManagement/DiskManagement.schema.tsindex f48ded19cfc..569fe74dbab 100644--- a/apps/studio/components/interfaces/DiskManagement/DiskManagement.schema.ts+++ b/apps/studio/components/interfaces/DiskManagement/DiskManagement.schema.ts@@ -164,7 +164,7 @@ export const CreateDiskStorageSchema = (defaultTotalSize: number) => {if (throughput > THROUGHPUT_RANGE['gp3'].max) {ctx.addIssue({code: z.ZodIssueCode.custom,- message: `Throughput can not exceed ${formatNumber(maxThroughput)} MiB/s`,+ message: `Throughput can not exceed ${formatNumber(maxThroughput)} MB/s`,path: ['throughput'],})}@@ -172,14 +172,14 @@ export const CreateDiskStorageSchema = (defaultTotalSize: number) => {const iopsRequiredForThroughput = calculateIopsRequiredForThroughput(throughput)ctx.addIssue({code: z.ZodIssueCode.custom,- message: `Need at least ${formatNumber(iopsRequiredForThroughput)} IOPS to support ${formatNumber(throughput)} MiB/s.`,+ message: `Need at least ${formatNumber(iopsRequiredForThroughput)} IOPS to support ${formatNumber(throughput)} MB/s.`,path: ['throughput'],})}if (throughput < THROUGHPUT_RANGE[DiskType.GP3].min) {ctx.addIssue({code: z.ZodIssueCode.custom,- message: `Throughput must be at least ${formatNumber(THROUGHPUT_RANGE[DiskType.GP3].min)} MiB/s`,+ message: `Throughput must be at least ${formatNumber(THROUGHPUT_RANGE[DiskType.GP3].min)} MB/s`,path: ['throughput'],})}diff --git a/apps/studio/components/interfaces/DiskManagement/DiskManagementReviewAndSubmitDialog.tsx b/apps/studio/components/interfaces/DiskManagement/DiskManagementReviewAndSubmitDialog.tsxindex f909aba99b4..f5681a51bba 100644--- a/apps/studio/components/interfaces/DiskManagement/DiskManagementReviewAndSubmitDialog.tsx+++ b/apps/studio/components/interfaces/DiskManagement/DiskManagementReviewAndSubmitDialog.tsx@@ -315,7 +315,7 @@ export const DiskManagementReviewAndSubmitDialog = ({attribute="Throughput"defaultValue={form.formState.defaultValues?.throughput?.toLocaleString() ?? 0}newValue={form.getValues('throughput')?.toLocaleString() ?? 0}- unit="MiB/s"+ unit="MB/s"beforePrice={Number(throughputPrice.oldPrice)}afterPrice={Number(throughputPrice.newPrice)}priceTooltip={numReplicas > 0 ? replicaTooltipText : undefined}diff --git a/apps/studio/components/interfaces/DiskManagement/fields/ThroughputField.tsx b/apps/studio/components/interfaces/DiskManagement/fields/ThroughputField.tsxindex 1a9089bba5d..87e35699be8 100644--- a/apps/studio/components/interfaces/DiskManagement/fields/ThroughputField.tsx+++ b/apps/studio/components/interfaces/DiskManagement/fields/ThroughputField.tsx@@ -110,7 +110,7 @@ export function ThroughputField({ form, disableInput }: ThroughputFieldProps) {</>}>- <InputPostTab label="MiB/s">+ <InputPostTab label="MB/s">{isLoading ? (<divclassName={cn(diff --git a/apps/www/components/Pricing/PricingDiskSection.tsx b/apps/www/components/Pricing/PricingDiskSection.tsxindex 06137035a22..1d8168a03a8 100644--- a/apps/www/components/Pricing/PricingDiskSection.tsx+++ b/apps/www/components/Pricing/PricingDiskSection.tsx@@ -10,7 +10,7 @@ const diskTypes = [maxSize: '16 TB',size: '8 GB included\nthen $0.125 per GB',iops: '3,000 IOPS included\nthen $0.024 per IOPS',- throughput: '125 Mbps included\nthen $0.095 per Mbps',+ throughput: '125 MB/s included\nthen $0.095 per MB/s',durability: '99.9%',},{diff --git a/apps/www/components/Pricing/PricingTableRow.tsx b/apps/www/components/Pricing/PricingTableRow.tsxindex 2c81ea4531e..39f8f6b3fd8 100644--- a/apps/www/components/Pricing/PricingTableRow.tsx+++ b/apps/www/components/Pricing/PricingTableRow.tsx@@ -22,7 +22,7 @@ export const pricingTooltips: PricingTooltips = {main: 'Billing is based on the provisioned disk size. Paid plan projects get provisioned with 8 GB of disk by default and autoscale to 1.5x the size once you get close to the limit. The first 8 GB of disk per project comes with no additional fees.\nFree plan customers are limited to 500 MB database size per project.',},'database.advancedDiskConfig': {- main: 'Supabase databases are backed by high performance SSD disks. The disk can be scaled up to 60 TB, 80,000 IOPS and 4,000 Mbps throughput.',+ main: 'Supabase databases are backed by high performance SSD disks. The disk can be scaled up to 60 TB, 80,000 IOPS and 4,000 MB/s throughput.',},'database.automaticBackups': {main: 'Backups are entire copies of your database that can be restored in the future.',