Skip to content

Commit

Permalink
fix: set up crunchydb for fider
Browse files Browse the repository at this point in the history
We need to do database upgrades, and part of that is to replace the standalone PostgreSQL pod with a CrunchyDB cluster.
  • Loading branch information
WalterMoar committed Dec 4, 2024
1 parent 6d042d9 commit dd9397d
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
19 changes: 19 additions & 0 deletions openshift/fider/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Fider

Fider uses CrunchyDB as its highly available database. CrunchyDB uses Patroni,
which uses PostgreSQL as the database.

## Installation

CrunchyDB is installed using the
[Helm chart](https://github.com/bcgov/crunchy-postgres) provided by the fine
folks over at platform services. Clone this repo.

> TBD: should we make a copy of it in our repo, so that a recreate uses the same
> charts? Probably.
```sh
export HELM_CHART_DIR=<your dir>
$ helm -n a12c97-tools upgrade --install crunchy-tools-fider $HELM_CHART_DIR/charts/tools -f values-tools-fider.yaml
$ helm -n a12c97-tools upgrade --install crunchy-postgres-fider $HELM_CHART_DIR/charts/crunchy-postgres -f values-crunchy-postgres-fider.yaml
```
2 changes: 2 additions & 0 deletions openshift/fider/values-crunchy-postgres-fider.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
deploymentName: crunchy-postgres-fider
fullnameOverride: crunchy-postgres-tools-fider
18 changes: 18 additions & 0 deletions openshift/fider/values-tools-fider.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
fullnameOverride: crunchy-postgres-fider

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

0 comments on commit dd9397d

Please sign in to comment.