The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: max io2 disk size to 60 TB (#29448)
divit1a2a679a11d4
diff --git a/apps/docs/content/guides/platform/compute-add-ons.mdx b/apps/docs/content/guides/platform/compute-add-ons.mdxindex 2b6f62f156c..3c4b6013a31 100644--- a/apps/docs/content/guides/platform/compute-add-ons.mdx+++ b/apps/docs/content/guides/platform/compute-add-ons.mdx@@ -106,14 +106,14 @@ When selecting your storage volume, it’s essential to focus on the performance**gp3 (General Purpose SSD) - Default Option**This is our standard, versatile option and offers great value for most use cases. It’s ideal for general workloads that require moderate IOPS and throughput, such as small to medium-sized databases, development environments, and everyday tasks.-- Volume Size: 1GB to 16TB+- Volume Size: Up to 16TB- IOPS: 3,000 (default) up to 16,000 (maximum)- Throughput: 125 MB/s (default) to 1,000 MB/s (maximum)**io2 (Provisioned IOPS SSD)**This option is designed for high-performance needs where low latency and very high IOPS are crucial. If you’re running large-scale databases or mission-critical applications, io2 provides the performance you need.-- Volume Size: 4GB to 60TB+- Volume Size: Up to 60TB- IOPS: Can scale up to 256,000 based on your disk attributes- Throughput: Scales with IOPSdiff --git a/apps/docs/content/guides/platform/database-size.mdx b/apps/docs/content/guides/platform/database-size.mdxindex 45903ba8f56..b6c197609ff 100644--- a/apps/docs/content/guides/platform/database-size.mdx+++ b/apps/docs/content/guides/platform/database-size.mdx@@ -101,7 +101,7 @@ Disks don't automatically downsize during normal operation. They _will_ automati</Admonition>-The maximum Disk Storage Size for the Pro/Team Plan is 16TB. If you need more than this, [contact us](https://forms.supabase.com/enterprise) to learn more about the Enterprise Plan.+The maximum Disk Storage Size for the Pro/Team Plan is 60TB. If you need more than this, [contact us](https://forms.supabase.com/enterprise) to learn more about the Enterprise Plan.### Free Plan behaviordiff --git a/apps/studio/components/interfaces/DiskManagement/DiskManagement.constants.tsx b/apps/studio/components/interfaces/DiskManagement/DiskManagement.constants.tsxindex a4090957e63..bbb36e62d9c 100644--- a/apps/studio/components/interfaces/DiskManagement/DiskManagement.constants.tsx+++ b/apps/studio/components/interfaces/DiskManagement/DiskManagement.constants.tsx@@ -42,7 +42,7 @@ export const DISK_LIMITS = {},[DiskType.IO2]: {minStorage: 4,- maxStorage: 16384,+ maxStorage: 61440,minIops: 100,maxIops: 256000,includedIops: 0,diff --git a/apps/studio/components/interfaces/DiskManagement/DiskManagementPanelForm.tsx b/apps/studio/components/interfaces/DiskManagement/DiskManagementPanelForm.tsxindex 9a97227f80e..660f2210b5d 100644--- a/apps/studio/components/interfaces/DiskManagement/DiskManagementPanelForm.tsx+++ b/apps/studio/components/interfaces/DiskManagement/DiskManagementPanelForm.tsx@@ -297,6 +297,7 @@ export function DiskManagementPanelForm() {field.onChange(e)// only trigger provisionedIOPS due to other input being hiddenawait form.trigger('provisionedIOPS')+ await form.trigger('totalSize')}}defaultValue={field.value}disabled={disableInput}diff --git a/apps/studio/components/interfaces/DiskManagement/DiskManagementPanelSchema.ts b/apps/studio/components/interfaces/DiskManagement/DiskManagementPanelSchema.tsindex 9557b152ee0..ca1db6987fc 100644--- a/apps/studio/components/interfaces/DiskManagement/DiskManagementPanelSchema.ts+++ b/apps/studio/components/interfaces/DiskManagement/DiskManagementPanelSchema.ts@@ -1,11 +1,11 @@import { z } from 'zod'+import { DISK_LIMITS, DiskType } from './DiskManagement.constants'const baseSchema = z.object({storageType: z.enum(['io2', 'gp3']).describe('Type of storage: io2 or gp3'),totalSize: z.number().min(8, { message: 'Allocated disk size must be at least 8 GB.' })- .max(16384, { message: 'Allocated disk size must not exceed 16,384 GB.' }).describe('Allocated disk size in GB'),provisionedIOPS: z.number().describe('Provisioned IOPS for storage type'),throughput: z.number().optional().describe('Throughput in MB/s for gp3'),@@ -45,6 +45,13 @@ export const DiskStorageSchema = baseSchema.superRefine((data, ctx) => {path: ['throughput'],})}+ if (totalSize > DISK_LIMITS[DiskType.IO2].maxStorage) {+ ctx.addIssue({+ code: z.ZodIssueCode.custom,+ message: 'Allocated disksize must not exceed 61,440 GB',+ path: ['totalSize'],+ })+ }} else if (storageType === 'gp3') {// Validation rules for gp3const maxIOPS = Math.min(500 * totalSize, 16000)@@ -79,6 +86,13 @@ export const DiskStorageSchema = baseSchema.superRefine((data, ctx) => {path: ['throughput'],})}+ if (totalSize > DISK_LIMITS[DiskType.GP3].maxStorage) {+ ctx.addIssue({+ code: z.ZodIssueCode.custom,+ message: 'Allocated disksize must not exceed 16,384 GB',+ path: ['totalSize'],+ })+ }}})