Skip to content

Commit

Permalink
adjust backup retention
Browse files Browse the repository at this point in the history
  • Loading branch information
TimCsaky committed Nov 29, 2024
1 parent 304d785 commit fd79a3e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
26 changes: 13 additions & 13 deletions .github/environments/values.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,19 @@ postgres:
pgbackrest:
resources:
requests:
cpu: 5m
memory: 16Mi
cpu: 10m
memory: 32Mi
limits:
cpu: 20m
memory: 64Mi
cpu: 40m
memory: 128Mi
pgbackrestConfig:
resources:
requests:
cpu: 5m
memory: 32Mi
limits:
cpu: 20m
cpu: 10m
memory: 64Mi
limits:
cpu: 40m
memory: 128Mi
jobs:
resources:
requests:
Expand All @@ -94,11 +94,11 @@ postgres:
# log-level-console: debug
# --- pvc
repo1-retention-full: "1"
repo1-retention-diff: "3"
repo1-retention-diff: "5"
# --- s3
repo2-path: /backups/common-hosted-email-service/postgres/prod
repo2-retention-full: "2"
repo2-retention-diff: "3"
repo2-retention-full: "1"
repo2-retention-diff: "30"
repo2-s3-uri-style: path
repos:
- name: repo1
Expand All @@ -111,12 +111,12 @@ postgres:
- "ReadWriteOnce"
resources:
requests:
storage: 20Gi
storage: 30Gi
storageClassName: "netapp-file-backup"
- name: repo2
schedules:
full: "0 0 1 * *" # full backup at midnight every month
differential: "0 */2 * * *" # differential every 2 hours
differential: "0 1 * * *" # differential every day at 1am
s3:
bucket: csstops
endpoint: https://nrs.objectstore.gov.bc.ca
Expand Down
30 changes: 15 additions & 15 deletions .github/environments/values.test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ postgres:
# --- resource allocation ----
instances:
- name: db # do not change this name after initial install, pvc (data) and stateful sets will be deleted
replicas: 1
replicas: 3
dataVolumeClaimSpec:
accessModes:
- "ReadWriteOnce"
Expand Down Expand Up @@ -51,9 +51,9 @@ postgres:
# -------- backups ---------
pgBackRestConfig:
manual:
repoName: repo1
repoName: repo2
options:
- --type=full
- --type=diff
repoHost:
resources:
requests:
Expand All @@ -66,19 +66,19 @@ postgres:
pgbackrest:
resources:
requests:
cpu: 5m
memory: 16Mi
cpu: 10m
memory: 32Mi
limits:
cpu: 20m
memory: 64Mi
cpu: 40m
memory: 128Mi
pgbackrestConfig:
resources:
requests:
cpu: 5m
memory: 32Mi
limits:
cpu: 20m
cpu: 10m
memory: 64Mi
limits:
cpu: 40m
memory: 128Mi
jobs:
resources:
requests:
Expand All @@ -95,11 +95,11 @@ postgres:
# log-level-console: debug
# --- pvc
repo1-retention-full: "1"
repo1-retention-diff: "3"
repo1-retention-diff: "5"
# --- s3
repo2-path: /backups/common-hosted-email-service/postgres/test
repo2-retention-full: "2"
repo2-retention-diff: "3"
repo2-retention-full: "1"
repo2-retention-diff: "30"
repo2-s3-uri-style: path
repos:
- name: repo1
Expand All @@ -117,7 +117,7 @@ postgres:
- name: repo2
schedules:
full: "0 0 1 * *" # full backup at midnight every month
differential: "0 */2 * * *" # differential every 2 hours
differential: "0 1 * * *" # differential every day at 1am
s3:
bucket: csstops
endpoint: https://nrs.objectstore.gov.bc.ca
Expand Down

0 comments on commit fd79a3e

Please sign in to comment.