PlanetScale has a high standard for uptime and availability, see our operations philosophy for Postgres to learn how we continually improve your database and keep it resilient to failure.

About maintenance windows

Every production branch has a required weekly maintenance window that lasts one hour. During this time:
  • PlanetScale applies security patches and upgrades
  • Your database will restart, causing all connections to disconnect temporarily
  • Connections through PgBouncer are also affected, as PgBouncer restarts as well
  • The actual restart occurs at a random time within the first 45 minutes of the scheduled hour
maintenance windows When you create a production branch, PlanetScale automatically assigns a maintenance window based on your database region, typically during early morning hours. Development branches do not have maintenance windows and may restart at any time for upgrades. You can quickly view your next scheduled maintenance window and the last maintenance run directly from your database dashboard. The maintenance information card shows the current schedule (day and time), along with timestamps for the last and next maintenance windows.
If you promote a development branch to production, a maintenance window will automatically be created for it.

Configuring maintenance windows

You must be a database or organization administrator to modify maintenance window settings.
  1. From the PlanetScale organization dashboard, select the desired database
  2. Navigate to the Cluster configuration page from the menu on the left
  3. Select the Maintenance tab from the settings menu
  4. Choose the production branch you want to configure from the branch list
  5. Select your preferred day of the week from the day selector
  6. Choose your preferred hour using the time dropdown
  7. Click Save to apply your changes
The maintenance history section shows details about previous maintenance windows, including when they ran and their completion status.