From 7056f59416a3876306b6666b4ac1b36c0c9bc0b4 Mon Sep 17 00:00:00 2001 From: = <=> Date: Fri, 15 Nov 2024 16:42:14 -0800 Subject: [PATCH] Small tweaks to db pool and redis --- crank/settings/prod.py | 2 +- k8s/redis.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crank/settings/prod.py b/crank/settings/prod.py index 61f3492..8d187a4 100644 --- a/crank/settings/prod.py +++ b/crank/settings/prod.py @@ -31,7 +31,7 @@ DATABASES = { 'default': { - 'ENGINE': 'django.db.backends.mysql', + 'ENGINE': 'dj_db_conn_pool.backends.mysql', 'NAME': os.environ.get('DB_NAME'), 'HOST': os.environ.get('DB_HOST'), 'PORT': os.environ.get('DB_PORT'), diff --git a/k8s/redis.yml b/k8s/redis.yml index 1562d20..ec522e2 100644 --- a/k8s/redis.yml +++ b/k8s/redis.yml @@ -67,7 +67,7 @@ spec: memory: "256Mi" cpu: "250m" limits: - memory: "512Mi" + memory: "256Mi" cpu: "500m" --- apiVersion: apps/v1 @@ -105,5 +105,5 @@ spec: memory: "256Mi" cpu: "250m" limits: - memory: "512Mi" + memory: "256Mi" cpu: "500m" \ No newline at end of file