Managed PostgreSQL Service

PostgreSQL is currently the leading choice among relational databases, known for its robust features and performance. Our Managed PostgreSQL Service takes advantage of platform-side implementation to provide a self-healing replicated cluster. This cluster is efficiently managed using the highly acclaimed CloudNativePG operator, which has gained popularity within the community.

Deployment Details

This managed service is controlled by the CloudNativePG operator, ensuring efficient management and seamless operation.

HowTos

How to switch master/slave replica

See:

How to restore backup

find snapshot:

restic -r s3:s3.example.org/postgres-backups/database_name snapshots

restore:

restic -r s3:s3.example.org/postgres-backups/database_name restore latest --target /tmp/

more details:

Parameters

Common parameters

NameDescriptionValue
externalEnable external access from outside the clusterfalse
sizePersistent Volume size10Gi
replicasNumber of Postgres replicas2
storageClassStorageClass used to store the data""
postgresql.parameters.max_connectionsDetermines the maximum number of concurrent connections to the database server. The default is typically 100 connections100
quorum.minSyncReplicasMinimum number of synchronous replicas that must acknowledge a transaction before it is considered committed.0
quorum.maxSyncReplicasMaximum number of synchronous replicas that can acknowledge a transaction (must be lower than the number of instances).0

Configuration parameters

NameDescriptionValue
usersUsers configuration{}
databasesDatabases configuration{}

Backup parameters

NameDescriptionValue
backup.enabledEnable pereiodic backupsfalse
backup.s3RegionThe AWS S3 region where backups are storedus-east-1
backup.s3BucketThe S3 bucket used for storing backupss3.example.org/postgres-backups
backup.scheduleCron schedule for automated backups0 2 * * *
backup.cleanupStrategyThe strategy for cleaning up old backups--keep-last=3 --keep-daily=3 --keep-within-weekly=1m
backup.s3AccessKeyThe access key for S3, used for authenticationoobaiRus9pah8PhohL1ThaeTa4UVa7gu
backup.s3SecretKeyThe secret key for S3, used for authenticationju3eum4dekeich9ahM1te8waeGai0oog
backup.resticPasswordThe password for Restic backup encryptionChaXoveekoh6eigh4siesheeda2quai0
resourcesResources{}
resourcesPresetSet container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if resources is set (resources is recommended for production).nano