PostgreSQL Test App

  • By Canonical Data Platform
Channel Revision Published Runs on
latest/stable 211 09 Aug 2024
Ubuntu 22.04
latest/stable 210 09 Aug 2024
Ubuntu 22.04
latest/beta 211 09 Aug 2024
Ubuntu 22.04
latest/beta 210 09 Aug 2024
Ubuntu 22.04
latest/edge 243 11 Sep 2024
Ubuntu 22.04
latest/edge 242 11 Sep 2024
Ubuntu 22.04
juju deploy postgresql-test-app --channel beta
Show information

Platform:

Ubuntu
22.04

PostgreSQL Test App

The PostgreSQL Test App is used in various test scenarios for Charmed PostgreSQL installations. It is a workload-less charm and can be deployed and used in both K8s and VM installations.

Usage

Deploy and integrate Charmed PostgreSQL with PostgreSQL Test App

juju deploy postgresql db
juju deploy postgresql-test-app app
juju integrate db app:database

Configure the write load rate

juju config app sleep_interval=1000 # (optional, sleep 1000ms second between inserts)

Run an endless load test

juju run app/leader start-continuous-writes # (optional, to start endless write test)
juju run app/leader show-continuous-writes  # (optional, to show amount of records in DB)
juju run app/leader stop-continuous-writes  # (optional, to stop endless write test)

Clean up your deployment

juju remove-application app db