Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Docs: update Disk Management guide with the new IO configuration (#29392)

Monica Khoury2fad1f6856ab
diff --git a/apps/docs/content/guides/platform/compute-add-ons.mdx b/apps/docs/content/guides/platform/compute-add-ons.mdx
index 9487d2e091b..2b6f62f156c 100644
--- a/apps/docs/content/guides/platform/compute-add-ons.mdx
+++ b/apps/docs/content/guides/platform/compute-add-ons.mdx
@@ -32,7 +32,7 @@ Number of connections above are recommended values.
<Admonition type="note" label="Recommended Database Size">
-The database sizes recommended for each instance are intended purely as a guide and recommendation to ensure performance is optimal, these sizes are not enforced.
+The database sizes recommended for each add-on are intended purely as a guide and recommendation to ensure performance is optimal, these sizes are not enforced.
The performance of your database is impacted by many factors, some of them being the resources available to it or the size of the data contained within it. See the [shared responsibility model](https://supabase.com/docs/guides/platform/shared-responsibility-model) for more information.
@@ -52,51 +52,111 @@ When considering compute upgrades, assess whether your bottlenecks are hardware-
## Disk IO
-SSD Disks are attached to your servers and the disk performance depends on the compute add-on of your instance. Disk IO refers to two metrics: throughput (Megabits per Second) and IOPS (Input/Output Operations per Second). Disk throughput is capped at 1,048 Mbps and IOPS is capped at 3,000 IOPS for all compute add-ons.
+SSD disks are attached to your servers, and their performance depends on the compute add-on of your instance as well as the attributes set for the disk.
-| Plan | Baseline Disk Throughput | Baseline 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,000 IOPS |
-| XL | 1,048 Mbps | 3,000 IOPS |
-| 2XL | 1,048 Mbps | 3,000 IOPS |
-| 4XL | 1,048 Mbps | 3,000 IOPS |
-| 8XL | 1,048 Mbps | 3,000 IOPS |
-| 12XL | 1,048 Mbps | 3,000 IOPS |
-| 16XL | 1,048 Mbps | 3,000 IOPS |
+Disk I/O Metrics:
-[Contact us](https://supabase.com/contact/enterprise) if you require a plan with higher disk throughput and IOPS.
+- Throughput: Measured in Megabits per Second (Mbps), which indicates the rate of data transfer.
+- IOPS: Input/Output Operations per Second, which measures the number of read and write operations.
-### Bursting and disk IO budget
+Performance Limits:
-Smaller compute instances can burst up to 1,048 Mbps and 3,000 IOPS for 30 minutes in a day. Beyond that, the performance reverts to the baseline. For example, the micro plan can burst up to 1,048 Mbps for 30 minutes a day and reverts to the baseline performance of 87 Mbps. Your disk IO budget gets replenished throughout the day.
+Disk throughput is capped at 19,000 Mbps and IOPS is capped at 80,000 IOPS for all compute add-ons.
-If you need consistent disk performance, choose the XL or larger compute add-on which has the same baseline and maximum disk throughput and IOPS.
+| Compute add-on | Max Disk Throughput | Baseline Disk Throughput | Max IOPS | Baseline IOPS |
+| -------------- | ------------------- | ------------------------ | ----------- | ------------- |
+| Nano (free) | 2,085 Mbps | 43 Mbps | 11,800 IOPS | 250 IOPS |
+| Micro | 2,085 Mbps | 87 Mbps | 11,800 IOPS | 500 IOPS |
+| Small | 2,085 Mbps | 174 Mbps | 11,800 IOPS | 1,000 IOPS |
+| Medium | 2,085 Mbps | 347 Mbps | 11,800 IOPS | 2,000 IOPS |
+| Large | 4,750 Mbps | 630 Mbps | 20,000 IOPS | 3,600 IOPS |
+| XL | 4,750 Mbps | 1,188 Mbps | 20,000 IOPS | 6,000 IOPS |
+| 2XL | 4,750 Mbps | 2,375 Mbps | 20,000 IOPS | 12,000 IOPS |
+| 4XL | 4,750 Mbps | 4,750 Mbps | 20,000 IOPS | 20,000 IOPS |
+| 8XL | 9,500 Mbps | 9,500 Mbps | 40,000 IOPS | 40,000 IOPS |
+| 12XL | 14,250 Mbps | 14,250 Mbps | 50,000 IOPS | 50,000 IOPS |
+| 16XL | 19,000 Mbps | 19,000 Mbps | 80,000 IOPS | 80,000 IOPS |
+
+### Self-Serve Configurability
+
+You can now adjust storage type, IOPS, throughput and disk size parameters yourself through the Dashboard [here](https://supabase.com/dashboard/project/_/settings/database).
+
+![Disk management attributes](/docs/img/guides/platform/disk-mgmt-io.png)
+
+<Admonition type="caution">
+
+Be aware that increasing IOPS or throughput incur additional charges.
+
+</Admonition>
+
+### Understanding I/O Balance and Bursting (Smaller add-ons)
+
+For smaller add-ons like Nano, Micro, and Small, you get I/O balance and burst capacity. These add-ons have limited base performance for IOPS and throughput. However, they come with burst credits that let you handle temporary spikes for 30 minutes in a day in demand by briefly exceeding their baseline performance. This means you can achieve higher performance for short bursts before reverting to your baseline limits.
+
+For example, the micro add-on can burst up to 2,085 Mbps for 30 minutes a day and reverts to the baseline performance of 87 Mbps. Your disk IO budget gets replenished throughout the day.
+
+### Dedicated I/O Resources (Larger add-ons)
+
+Larger add-ons, such as 4XL and above, come with dedicated I/O resources and don't rely on I/O balance or burst capacity. These add-ons are designed for sustained, high performance with specific IOPS and throughput limits. They provide consistent performance without needing to burst. If you hit your IOPS or throughput limit, throttling will occur, but you won't have burst credits to exceed these limits.
+
+### Storage Volume Types: gp3 vs. io2
+
+When selecting your storage volume, it’s essential to focus on the performance needs of your workload. Below is a comparison between the two main volume types we offer:
+
+**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
+- 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
+- IOPS: Can scale up to 256,000 based on your disk attributes
+- Throughput: Scales with IOPS
+
+**Choosing the Right Type**
+Think about the performance your workload demands. 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.
+
+### Choosing the Right Compute Add-On for Consistent Disk Performance
+
+If you need consistent disk performance, choose the 4XL or larger compute add-on which has the same baseline and maximum disk throughput and IOPS.
If you're unsure of how much throughput or IOPS your application requires, you can load test your project and inspect these [metrics in the Dashboard](https://supabase.com/dashboard/project/_/reports). If the `Disk IO % consumed` stat is more than 1%, it indicates that your workload has burst beyond the baseline IO throughput during the day. If this metric goes to 100%, the workload has used up all available disk IO budget and will revert to baseline performance. Projects that use any disk IO budget are good candidates for upgrading to a larger compute add-on with higher baseline throughput.
+<Admonition type="information">
+
+Compute add-on changes will not cause you to lose your disk attributes.
+
+</Admonition>
+
+### Constraints
+
+- After **any** disk attribute change, there is a cooldown period of approximately six hours before you can make further adjustments. During this time, no changes are allowed. If you encounter throttling, you’ll need to wait until the cooldown period concludes before making additional modifications.
+- You can increase volume size but cannot decrease it.
+- The performance of EBS volumes is affected by the add-on size to which you are attached.
+
## Postgres replication slots and WAL senders
[Replication Slots](https://postgresqlco.nf/doc/en/param/max_replication_slots) and [WAL Senders](https://postgresqlco.nf/doc/en/param/max_wal_senders/) are used to enable [Postgres Replication](/docs/guides/database/replication).
-The maximum number of replication slots and WAL senders depends on your compute add-on plan, as follows:
-
-| Plan | Max Replication Slots | Max WAL Senders |
-| ----------- | --------------------- | --------------- |
-| Nano (free) | 5 | 5 |
-| Micro | 5 | 5 |
-| Small | 5 | 5 |
-| Medium | 5 | 5 |
-| Large | 8 | 8 |
-| XL | 24 | 24 |
-| 2XL | 80 | 80 |
-| 4XL | 80 | 80 |
-| 8XL | 80 | 80 |
-| 12XL | 80 | 80 |
-| 16XL | 80 | 80 |
+The maximum number of replication slots and WAL senders depends on your compute add-on size, as follows:
+
+| Compute add-on | Max Replication Slots | Max WAL Senders |
+| -------------- | --------------------- | --------------- |
+| Nano (free) | 5 | 5 |
+| Micro | 5 | 5 |
+| Small | 5 | 5 |
+| Medium | 5 | 5 |
+| Large | 8 | 8 |
+| XL | 24 | 24 |
+| 2XL | 80 | 80 |
+| 4XL | 80 | 80 |
+| 8XL | 80 | 80 |
+| 12XL | 80 | 80 |
+| 16XL | 80 | 80 |
<Admonition type="caution">
diff --git a/apps/docs/public/img/guides/platform/disk-mgmt-io.png b/apps/docs/public/img/guides/platform/disk-mgmt-io.png
new file mode 100644
index 00000000000..b6a5cbb70d4
Binary files /dev/null and b/apps/docs/public/img/guides/platform/disk-mgmt-io.png differ