Managed PostgreSQL
A replicated PostgreSQL cluster in your DevSpace space, in a few minutes: streaming replication, automatic failover on a node loss, backups to object storage. Ordinary PostgreSQL, with the standard protocol that any driver and any ORM connects to.
Fault-tolerant PostgreSQL with automatic failover and point-in-time recovery
What you get
  • -1-
    A cluster, not an instance

    A primary node plus replicas with streaming replication

  • -2-
    Automatic failover

    When the primary node fails, its role moves to a replica without an engineer in the loop

  • -3-
    Backups and PITR

    Continuous archiving of the write-ahead logs (WAL) to S3-compatible storage and recovery to any point in time

  • -4-
    Standard PostgreSQL

    Full compatibility with the extensions, drivers and tools of the ecosystem

  • -5-
    Users and databases managed declaratively

    From the panel or with a manifest

How the service works
The cluster is run by CloudNativePG (CNPG), an open-source Kubernetes operator for PostgreSQL and one of the most widely used in the industry. The project is developed by the CNCF ecosystem community.
  • Streaming replication

    Data from the primary node is synchronized to the replicas by the native PostgreSQL mechanism. You choose how many replicas to run.

  • Self-healing

    The operator continuously compares the actual state of the cluster with the desired one: a failed node is recreated, a lagging replica is reinitialized, on its own, with no tickets and no on-call engineer.

  • Automatic failover

    When the primary node becomes unavailable, the operator promotes the most up-to-date replica and switches the connection endpoint. The application only has to reconnect.

  • Replicated storage is your choice
    The storage class is set when the cluster is created. A replicated class duplicates node data across several servers, so protection works both at the database level and at the disk level.
  • Continuous WAL archiving
    The write-ahead logs are shipped to object storage continuously, and that is what makes point-in-time recovery possible.
Features
Use cases
  • The main product database
    A production workload with availability requirements
  • A separate database per environment
    Dev, staging and production in different DevSpace spaces, with data moved through backup and restore
  • Fast recovery after a mistake
    A migration wiped the data? PITR brings the state back to the minute before it, into a separate cluster for comparison
  • A replacement for self-built installations
    Replication, failover and backups without configuring Patroni or pgBackRest by hand and without on-call duty
How to deploy PostgreSQL in the cloud in three steps
  • 1
    Add the “PostgreSQL” service in your DevSpace space: size, number of replicas, disk size. If you do not have a space yet, creating one takes a couple of minutes.
  • 2
    Turn on backups. The schedule and the retention policy are set in the service settings.
  • 3
    Connect with the standard connection string from the panel, using psql, any driver or your ORM.

FAQ

Сообщение об успешной отправке!
Try it out