mirror of
https://github.com/supabase/supabase.git
synced 2026-05-07 01:10:15 -04:00
022b510269
https://linear.app/supabase/issue/FE-2226/fix-incorrect-baseline-and-max-iopsthroughput-values - Centralized compute/disk limits in packages/shared-data/compute-disk-limits.ts (MB/s, baseline+max IOPS/throughput) and re-exported from shared-data. - Hooked Docs compute/disk table into shared data, converted docs text/table to MB/s baseline/max. - Removed duplicated compute IOPS/throughput constants from Studio, Studio now imports shared data. - Updated Studio disk schema: compute-aware MAX IOPS/throughput validation (MB/s), defaults computeSize to ci_micro, and gp3/io2 checks use compute caps. - Clarified disk update mutation to send throughput as MB/s despite backend throughput_mbps field name. - Added tests for compute-size mappings and IOPS helper logic. - Added Infra ownership for shared compute/disk data in CODEOWNERS. - Locked zod version via catalog and added zod dep to shared-data. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a reusable Compute Disk Limits table and centralized compute disk limits dataset for dynamic display. * **Documentation** * Replaced static per-size tables with a component-driven MB/s view; clarified baseline vs. burst behavior and updated guides and troubleshooting. * **Bug Fixes** * Validation and UI guidance now honor compute-size limits for IOPS and throughput. * **Tests** * Expanded unit tests for sizing, mappings, and edge cases. * **Chores** * Published shared-data exports, added a validation schema, pinned a dependency, and added ownership entries. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
35 lines
946 B
TypeScript
35 lines
946 B
TypeScript
import {
|
|
COMPUTE_BASELINE_IOPS,
|
|
COMPUTE_BASELINE_THROUGHPUT,
|
|
COMPUTE_DISK,
|
|
COMPUTE_MAX_IOPS,
|
|
COMPUTE_MAX_THROUGHPUT,
|
|
} from 'shared-data'
|
|
|
|
export function ComputeDiskLimitsTable() {
|
|
return (
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Compute Instance</th>
|
|
<th>Baseline Throughput (MB/s)</th>
|
|
<th>Max Throughput (MB/s)</th>
|
|
<th>Baseline IOPS</th>
|
|
<th>Max IOPS</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{Object.entries(COMPUTE_DISK).map(([key, value]) => (
|
|
<tr key={key}>
|
|
<td>{value.name}</td>
|
|
<td>{COMPUTE_BASELINE_THROUGHPUT[key]?.toLocaleString()} MB/s</td>
|
|
<td>{COMPUTE_MAX_THROUGHPUT[key]?.toLocaleString()} MB/s</td>
|
|
<td>{COMPUTE_BASELINE_IOPS[key]?.toLocaleString()} IOPS</td>
|
|
<td>{COMPUTE_MAX_IOPS[key]?.toLocaleString()} IOPS</td>
|
|
</tr>
|
|
))}
|
|
</tbody>
|
|
</table>
|
|
)
|
|
}
|