Skip to content

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

better copy for infra

Kevin Grüneberg216f2d4764f6
diff --git a/studio/components/interfaces/BillingV2/Usage/Infrastructure.tsx b/studio/components/interfaces/BillingV2/Usage/Infrastructure.tsx
index 058775e7e3e..1d7210d0d94 100644
--- a/studio/components/interfaces/BillingV2/Usage/Infrastructure.tsx
+++ b/studio/components/interfaces/BillingV2/Usage/Infrastructure.tsx
@@ -211,6 +211,18 @@ const Infrastructure = ({ projectRef }: InfrastructureProps) => {
)}
</div>
+ {attribute.key === 'ram_usage' && (
+ <p className="text-sm text-scale-1000">
+ Your compute instance has {currentComputeInstanceSpecs.memoryGb} GB memory.
+ </p>
+ )}
+
+ {attribute.key === 'cpu_usage' && (
+ <p className="text-sm text-scale-1000">
+ Your compute instance has {currentComputeInstanceSpecs.cpuCores} CPU cores.
+ </p>
+ )}
+
{attribute.chartDescription.split('\n').map((paragraph, idx) => (
<p key={`para-${idx}`} className="text-sm text-scale-1000">
{paragraph}
diff --git a/studio/components/interfaces/BillingV2/Usage/Usage.constants.ts b/studio/components/interfaces/BillingV2/Usage/Usage.constants.ts
index 05751140509..754f4a70000 100644
--- a/studio/components/interfaces/BillingV2/Usage/Usage.constants.ts
+++ b/studio/components/interfaces/BillingV2/Usage/Usage.constants.ts
@@ -229,45 +229,65 @@ export const USAGE_CATEGORIES: {
// [Joshen] Ideally live in common package for www as well
export const COMPUTE_INSTANCE_SPECS: {
- [key: string]: { maxBandwidth: number; baseBandwidth: number }
+ [key: string]: { maxBandwidth: number; baseBandwidth: number; memoryGb: number; cpuCores: number }
} = {
addon_instance_micro: {
+ memoryGb: 1,
+ cpuCores: 2,
maxBandwidth: 2085,
baseBandwidth: 87,
},
addon_instance_small: {
+ memoryGb: 2,
+ cpuCores: 2,
maxBandwidth: 2085,
baseBandwidth: 174,
},
addon_instance_medium: {
+ memoryGb: 4,
+ cpuCores: 2,
maxBandwidth: 2085,
baseBandwidth: 347,
},
addon_instance_large: {
+ memoryGb: 8,
+ cpuCores: 2,
maxBandwidth: 4750,
baseBandwidth: 630,
},
addon_instance_xlarge: {
+ memoryGb: 16,
+ cpuCores: 4,
maxBandwidth: 4750,
baseBandwidth: 1188,
},
addon_instance_xxlarge: {
+ memoryGb: 32,
+ cpuCores: 8,
maxBandwidth: 4750,
baseBandwidth: 2375,
},
addon_instance_4xlarge: {
+ memoryGb: 64,
+ cpuCores: 16,
maxBandwidth: 4750,
baseBandwidth: 4750,
},
addon_instance_8xlarge: {
+ memoryGb: 128,
+ cpuCores: 32,
maxBandwidth: 9500,
baseBandwidth: 9500,
},
addon_instance_12xlarge: {
+ memoryGb: 192,
+ cpuCores: 48,
maxBandwidth: 14250,
baseBandwidth: 14250,
},
addon_instance_16xlarge: {
+ memoryGb: 256,
+ cpuCores: 64,
maxBandwidth: 19000,
baseBandwidth: 19000,
},