Create a PostgreSQL service
Create PostgreSQL using Zerops GUI​
First, set up a project in Zerops GUI. Then go to the project dashboard page and choose Add new service in the left menu in the Services block. Then add a new PostgreSQL service:
Parameter | Description | Limitations |
---|---|---|
hostname | A unique service identifier like postgresql ,sql , db etc. |
|
The hostname is fixed after the service is created. It can't be changed later.
Choose PostgreSQL service mode​
Zerops provides PostgreSQL service in two modes: Highly available and Single container.

Highly available​
Creates a PostgreSQL cluster with 3 database containers and 2 free database proxies. This mode is suited for production.
Zerops always keeps the 3 database containers on different physical machines. All your data is stored redundantly in 3 identical copies. In case of a container or the underlying physical machine failure, Zerops automatically disconnects the failed container from the cluster, creates a new container, and syncs all data from the remaining 2 copies. Finally, the broken container is automatically deleted.
Learn more about specific behaviour and technical limitations of the PostgreSQL cluster.
Single container​
A PostgreSQL database installed in a single container is created. Useful for non-essential data or dev environments.
Your data is stored only in a single container. If the container or the underlying physical machine fails, your data since the last backup is lost. Zerops doesn't provide any automatic repairs of single-node PostgreSQL services.
The PostgreSQL service mode is fixed after the service is created. It can't be changed later.
Choose PostgreSQL version​
Following PostgreSQL versions are currently supported:
- 12
- 14
- 16
Set auto-scaling configuration​
Zerops scales the PostgreSQL services automatically by raising or lowering the hardware resources of each database container.
CPU Mode​
Shared Your application gets a full physical CPU core, but it is shared with up to 10 other applications. In this mode, the power your application gets is dependent on other applications running on the same CPU core. In best case scenario your application gets 10/10 of CPU core power and 1/10 in the worst-case scenario.
Dedicated The CPU core is dedicated to your application.
See the pricing for the difference between CPU modes.
Choose the CPU mode when starting a new service or change it later. The CPU mode doesn't change automatically.
Vertical auto-scaling​
Vertical auto-scaling has the following default configuration:
 | Minimum | Maximum |
---|---|---|
CPU cores | 1 | 5 |
RAM | 0.25 GB | 32 GB |
Disk | 1 GB | 100 GB |
For most cases, the default parameters will work without issues. If you need to limit the cost of the PostgreSQL service, lower the maximal resources. Zerops will never scale above the selected maximums.
When you are experiencing problems with insufficient PostgreSQL performance or capacity, increase the minimal resources. Zerops will never scale below the selected minimums.
Learn more about how to fine tune the auto-scaling to fit your application needs.
You can change the auto-scaling parameters later.
Learn more about PostgreSQL auto-scaling.
Create PostgreSQL using zCLI​
zCLI is the Zerops command-line tool. To create a new PostgreSQL service via the command line, follow these steps:
- Install & setup zCLI
- Create a project description file
- Create a project and a PostgreSQL service