From 5bc64536427721e9b19774df6c368c29f0859416 Mon Sep 17 00:00:00 2001 From: Matt Daily Date: Mon, 22 May 2023 19:21:53 -0700 Subject: [PATCH 1/2] Scale down worker deployment. We don't need 30 replicas --- helm-chart/banzai/values-prod.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/helm-chart/banzai/values-prod.yaml b/helm-chart/banzai/values-prod.yaml index 4cbc3f60..bd76ee34 100644 --- a/helm-chart/banzai/values-prod.yaml +++ b/helm-chart/banzai/values-prod.yaml @@ -6,8 +6,8 @@ # will be started when the CPU usage rises above the configured threshold. horizontalPodAutoscaler: enabled: true - minReplicas: 25 - maxReplicas: 25 + minReplicas: 15 + maxReplicas: 15 targetCPUUtilizationPercentage: 50 image: @@ -50,7 +50,7 @@ useDockerizedDatabase: false useDockerizedRabbitMQ: false postgresql: - hostname: postgres1-cluster.cluster-cple9sjsskrf.us-west-2.rds.amazonaws.com + hostname: prod-postgres1-cluster-writer-pgbouncer.prod-db-proxy.svc.cluster.local postgresqlUsername: banzai postgresqlDatabase: banzai From d1236c6fc21e7f822fa97bcee69e7486a3396e74 Mon Sep 17 00:00:00 2001 From: Matt Daily Date: Tue, 13 Jun 2023 13:11:57 -0700 Subject: [PATCH 2/2] Fix banzai cronjob to use batch/v1 --- helm-chart/banzai/templates/db-instrument-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm-chart/banzai/templates/db-instrument-update.yaml b/helm-chart/banzai/templates/db-instrument-update.yaml index af8c807e..71066267 100644 --- a/helm-chart/banzai/templates/db-instrument-update.yaml +++ b/helm-chart/banzai/templates/db-instrument-update.yaml @@ -1,4 +1,4 @@ -apiVersion: batch/v1beta1 +apiVersion: batch/v1 kind: CronJob metadata: name: {{ include "banzai.fullname" . }}-db-instrument-update