Skip to content

Commit

Permalink
configures CONN_MAX_AGE
Browse files Browse the repository at this point in the history
  • Loading branch information
actlikewill committed Oct 11, 2023
1 parent 8abdd3a commit 1a19420
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions peachjam/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@
"default": default_db_config,
"gazettes_africa": gazette_db_config,
}
CONN_MAX_AGE = 60 * 9 # RDS proxy closes idle connections after 10 minutes
# descriptive name for this application in psql's pg_stat_activity output, to help link connections to apps
db_app_name = "-".join(
[slugify(PEACHJAM["APP_NAME"]), os.environ.get("DYNO", "django")]
Expand Down

0 comments on commit 1a19420

Please sign in to comment.