Skip to main content
A development branch can use a production cluster size when promoted to production. Promoting it changes who can connect, lets it become the default branch, locks the web console, and adds a maintenance window. To resize a production branch to PS-DEV it must be demoted to development first. When a development branch is promoted it will automatically select the next size up (PS-5) however you can choose a larger size if needed.

Promote a branch

On the branch page, select Promote to production in the cluster card. From the dialog, choose a cluster size and a replica count for the default shard configuration profile. It will default to PS-5 unless the branch is already on a production size. 0 replicas is a single node. 2 to 8 is high availability. Metal sizes need at least 2 replicas. Promotion also:
  • Adds a weekly maintenance window.
  • Makes this branch the default if the current default is a development branch.
You can change the size and replica count later from the cluster configuration page. That does not change whether the branch is production.

Demote a branch

Select Demote to development in the cluster card. When demoting a branch, you can keep the current size or choose another one, including PS-DEV. PS-DEV is a single node, so the replica count becomes 0. Demotion removes the weekly maintenance window. Roles and passwords stay the same. You cannot demote a branch that has a dedicated read replica. A Scaler Pro database also cannot demote its last production branch. Changing the cluster size restarts the database. Direct connections and connections through the local PgBouncer close. Dedicated primary PgBouncer connections stay open. Leaving the size unchanged does not restart the database.

CLI

--cluster-size and --replicas are optional. Leave one out to keep the current value. A PS-DEV branch moves to PS-5 when you omit --cluster-size. Demote allows PS-DEV. Changing the size or the replica count also needs permission to update the database. See the CLI reference.

Need help?

Get help from the PlanetScale Support team, or join our Discord community to see how others are using PlanetScale.