Skip to main content

Scale replicas

zwrm postgres scale <name> <count>
ArgumentTypeDescription
namestringDatabase name
countintTotal instance count (primary + replicas)
A count of 1 means the primary only. A count of 3 means the primary plus 2 read replicas.

Examples

Add 2 read replicas:
zwrm postgres scale my-db 3
Scale back to primary only:
zwrm postgres scale my-db 1

Size presets

View the available size presets:
zwrm postgres presets
Each preset defines the vCPU count, memory, and storage for the database VM. Choose a size when creating the database with --size:
zwrm postgres create my-db --size large

Stopping and starting

You can stop a database to free resources while keeping your data:
zwrm postgres stop my-db
zwrm postgres start my-db
The data volume is preserved across stop/start cycles.