Skip to content

Commit

Permalink
edit
Browse files Browse the repository at this point in the history
  • Loading branch information
yoonju977 committed Sep 9, 2024
1 parent be79494 commit 2f4e7a8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions api/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@

DATABASES = {
"default": {
"ENGINE": "django_db_conn_pool.backends.postgresql", # 연결 풀링이 적용된 백엔드
"ENGINE": "django.db.backends.postgresql",
"HOST": os.environ.get("RDS_HOSTNAME"),
"NAME": os.environ.get("RDS_DB_NAME"),
"USER": os.environ.get("RDS_USERNAME"),
Expand All @@ -191,8 +191,6 @@
},
# 연결 풀링을 위한 설정
"CONN_MAX_AGE": 600, # 연결을 10분 동안 재사용
"CONN_POOL_MIN": 5, # 최소 5개의 연결 유지
"CONN_POOL_MAX": 20, # 최대 20개의 연결
}
}

Expand Down

0 comments on commit 2f4e7a8

Please sign in to comment.