Postgres instances provisioned by SQD Cloud only have basic functionality by default. Do not use them to store data that can’t be recovered via an indexer resync. Use zero-downtime updates to avoid sync-related downtimes. Advanced capabilities such as snapshots, replication, high-availability setup, increased number of direct connections etc are avialable on Enterprise plans. If you’re interested please let us know.
addons.postgres: section to the deployment manifest. The add-on deploys a Postgres instance and injects variables with database connection params into the environment of the api and processor squid services.
Variable shadowing
Any of the following variables set globally or forapi or processor squid services in the manifest will be overwritten with Cloud-supplied values:
DB_SSLDB_HOSTDB_PORTDB_NAMEDB_USERDB_PASSDB_URL
Config options
The addon supports additional PG config options:Direct access
SQD Cloud enables direct read access to the deployed PG instances. Go to the “DB access” tab of your squid deployment’s card in the Cloud web app to get the PG connection string.Outside of Enterprise plans, the number of direct connections one can open to the database is capped for optimal performance. Please avoid using more than ten (10) connections in your setups.
Scaling
Thepostgres add-on supports storage and compute resource scaling by extending the scale.addons.postgres section of the deploy manifest. The following options are supported
The profile specifications for a
postgres service are as follows: