The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix(studio): Update disk resize cooldown to 4 hours (#42943)
Kamil Ogórekd8dd65374d51
diff --git a/apps/docs/content/troubleshooting/high-cpu-and-slow-queries-with-error-must-be-a-superuser-to-terminate-superuser-process.mdx b/apps/docs/content/troubleshooting/high-cpu-and-slow-queries-with-error-must-be-a-superuser-to-terminate-superuser-process.mdxindex 7b1203a22e2..43a460c9e17 100644--- a/apps/docs/content/troubleshooting/high-cpu-and-slow-queries-with-error-must-be-a-superuser-to-terminate-superuser-process.mdx+++ b/apps/docs/content/troubleshooting/high-cpu-and-slow-queries-with-error-must-be-a-superuser-to-terminate-superuser-process.mdx@@ -51,7 +51,7 @@ Since the wraparound prevention autovacuum cannot be stopped, the best approach2. **Increase Disk Throughput/IOPS:**- **Action:** If disk I/O utilization is also consistently high (e.g., near 100%), consider temporarily increasing your disk's provisioned IOPS and throughput.- **Why it helps:** Autovacuum is an I/O-intensive operation, involving a lot of reading and writing. Higher disk performance can significantly speed up the process.- - **Considerations:** Cloud providers often have limitations, such as a cooldown period (e.g., 6 hours) between disk modification operations.+ - **Considerations:** Cloud providers often have limitations, such as a cooldown period (e.g., 4 hours) between disk modification operations.### **Monitoring progress and future prevention**diff --git a/apps/studio/components/interfaces/DiskManagement/ui/DiskCountdownRadial.tsx b/apps/studio/components/interfaces/DiskManagement/ui/DiskCountdownRadial.tsxindex 3f4b6389d2a..510bf8e13e2 100644--- a/apps/studio/components/interfaces/DiskManagement/ui/DiskCountdownRadial.tsx+++ b/apps/studio/components/interfaces/DiskManagement/ui/DiskCountdownRadial.tsx@@ -7,6 +7,7 @@ import CountdownTimerSpan from 'components/ui/CountdownTimer/CountdownTimerSpan'import { useRemainingDurationForDiskAttributeUpdate } from 'data/config/disk-attributes-query'import { COOLDOWN_DURATION } from 'data/config/disk-attributes-update-mutation'import { Card, CardContent } from 'ui'+import FormMessage from './FormMessage'export function DiskCountdownRadial() {@@ -52,10 +53,10 @@ export function DiskCountdownRadial() {<div className="flex flex-col gap-2"><div><p className="text-foreground text-sm p-0">- 6-hour cooldown period is in progress+ 4-hour cooldown period is in progress</p><p className="text-foreground-lighter text-sm p-0">- You can't modify your disk configuration again until the 6-hour cool down period+ You can't modify your disk configuration again until the 4-hour cool down periodends.</p></div>diff --git a/apps/studio/components/interfaces/DiskManagement/ui/DiskManagementCoolDownSection.tsx b/apps/studio/components/interfaces/DiskManagement/ui/DiskManagementCoolDownSection.tsxindex c6d2349e0f3..766a22b09df 100644--- a/apps/studio/components/interfaces/DiskManagement/ui/DiskManagementCoolDownSection.tsx+++ b/apps/studio/components/interfaces/DiskManagement/ui/DiskManagementCoolDownSection.tsx@@ -72,7 +72,7 @@ export const DiskMangementCoolDownSection = ({ visible }: { visible: boolean })</div><div className="flex flex-col gap-0 flex-grow"><p className="text-sm text-foreground">- For 6 hours you will not be able to change any disk attributes.+ For 4 hours you will not be able to change any disk attributes.</p><p className="text-sm text-foreground-light">There is a cooldown period enforced for any disk attribute modificationsdiff --git a/apps/studio/components/interfaces/DiskManagement/ui/DiskSpaceBar.tsx b/apps/studio/components/interfaces/DiskManagement/ui/DiskSpaceBar.tsxindex 7c789d17e79..7fbcd6c7357 100644--- a/apps/studio/components/interfaces/DiskManagement/ui/DiskSpaceBar.tsx+++ b/apps/studio/components/interfaces/DiskManagement/ui/DiskSpaceBar.tsx@@ -191,10 +191,10 @@ export const DiskSpaceBar = ({ form }: DiskSpaceBarProps) => {<p>Supabase expands your disk storage automatically when the database reached 90%of the disk size. However, any disk modifications, including auto-scaling, can- only take place once every 6 hours.+ only take place once every 4 hours.</p><p>- If within those 6 hours you reach 95% of the disk space, your project{' '}+ If within those 4 hours you reach 95% of the disk space, your project{' '}<span className="text-destructive-600">will enter read-only mode.</span></p></TooltipContent>diff --git a/apps/studio/components/interfaces/Settings/Database/DiskSizeConfiguration.tsx b/apps/studio/components/interfaces/Settings/Database/DiskSizeConfiguration.tsxindex bc8dce9893d..b7236b99aea 100644--- a/apps/studio/components/interfaces/Settings/Database/DiskSizeConfiguration.tsx+++ b/apps/studio/components/interfaces/Settings/Database/DiskSizeConfiguration.tsx@@ -152,7 +152,7 @@ const DiskSizeConfiguration = ({ disabled = false }: DiskSizeConfigurationProps)<MarkdownclassName="max-w-full"content={`-We auto-scale your disk as you need more storage, but can only do this once every 6 hours.+We auto-scale your disk as you need more storage, but can only do this once every 4 hours.If you upload more than 1.5x the current size of your storage, your database will gointo read-only mode. If you know how big your database is going to be, you canmanually increase the size here.diff --git a/apps/studio/components/interfaces/Settings/Database/DiskSizeConfigurationModal.tsx b/apps/studio/components/interfaces/Settings/Database/DiskSizeConfigurationModal.tsxindex 7ea1b368167..a964795a204 100644--- a/apps/studio/components/interfaces/Settings/Database/DiskSizeConfigurationModal.tsx+++ b/apps/studio/components/interfaces/Settings/Database/DiskSizeConfigurationModal.tsx@@ -137,7 +137,7 @@ const DiskSizeConfigurationModal = ({<Alert_Shadcn_ variant={isAbleToResizeDatabase ? 'default' : 'warning'}><Info size={16} /><AlertTitle_Shadcn_>- This operation is only possible every 6 hours+ This operation is only possible every 4 hours</AlertTitle_Shadcn_><AlertDescription_Shadcn_><div className="mb-4">diff --git a/apps/studio/data/config/disk-attributes-update-mutation.ts b/apps/studio/data/config/disk-attributes-update-mutation.tsindex bb61a3ebfcc..df4d7e84271 100644--- a/apps/studio/data/config/disk-attributes-update-mutation.ts+++ b/apps/studio/data/config/disk-attributes-update-mutation.ts@@ -5,7 +5,7 @@ import { handleError, post } from 'data/fetchers'import type { ResponseError, UseCustomMutationOptions } from 'types'import { configKeys } from './keys'-export const COOLDOWN_DURATION = 60 * 60 * 6+export const COOLDOWN_DURATION = 60 * 60 * 4export type UpdateDiskAttributesVariables = {ref?: string