PostgreSQL Test App

  • Canonical
Channel Revision Published Runs on
latest/stable 279 15 Nov 2024
Ubuntu 22.04
latest/stable 278 15 Nov 2024
Ubuntu 22.04
latest/beta 279 15 Nov 2024
Ubuntu 22.04
latest/beta 278 15 Nov 2024
Ubuntu 22.04
latest/edge 283 18 Nov 2024
Ubuntu 22.04
latest/edge 282 18 Nov 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


Help improve this document in the forum (guidelines). Last updated 3 months ago.