Skip to content

Commit

Permalink
fix: FORMS-1652 upgrade redash db to crunchy
Browse files Browse the repository at this point in the history
Upgrade the database used by Redash from single-pod PostgreSQL to a CrunchyDB cluster.
  • Loading branch information
WalterMoar committed Dec 17, 2024
1 parent 6c3983c commit c79a0b0
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
9 changes: 9 additions & 0 deletions openshift/redash/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

CHEFS uses [Redash](https://redash.io) to visualize forms metadata and display it in dashboards.

## Database

Redash uses CrunchyDB for its highly available database.

```sh
helm -n a12c97-tools upgrade --install crunchy-tools-redash ../crunchydb/charts/tools -f crunchydb-tools-values.yaml
helm -n a12c97-tools upgrade --install crunchy-postgres-redash ../crunchydb/charts/crunchy-postgres -f crunchydb-postgres-values-no-limits.yaml -f crunchydb-postgres-values.yaml
```

## Install Pre-requisites

The Redash Helm Chart doesn't work well in OpenShift due to the accounts it is trying to use for PostgreSQL and Redis. Install our own versions of them:
Expand Down
24 changes: 24 additions & 0 deletions openshift/redash/crunchydb-postgres-values-no-limits.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
instances:
limits:
cpu:
memory:
replicaCertCopy:
limits:
cpu:
memory:

pgBackRest:
repoHost:
limits:
cpu:
memory:
sidecars:
limits:
cpu:
memory:

proxy:
pgBouncer:
limits:
cpu:
memory:
18 changes: 18 additions & 0 deletions openshift/redash/crunchydb-postgres-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
fullnameOverride: crunchy-postgres-redash

postgresVersion: 16

instances:
replicas: 3
dataVolumeClaimSpec:
storage: 512Mi

pgBackRest:
repos:
schedules:
full: 0 12 * * *
incremental: 0 0,4,8,16,20 * * *

proxy:
pgBouncer:
replicas: 3
2 changes: 2 additions & 0 deletions openshift/redash/crunchydb-tools-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fullnameOverride: crunchy-postgres-tools-redash
deploymentName: crunchy-postgres-redash

0 comments on commit c79a0b0

Please sign in to comment.