Skip to content

Commit

Permalink
EREGCSC-2904 Set statement_timeout back to 10 seconds (#1512)
Browse files Browse the repository at this point in the history
* revert postgres statement and connect timeouts to 10 seconds

* add statement_timeout to cluster settings
  • Loading branch information
cgodwin1 authored Jan 10, 2025
1 parent d481e3d commit 12199b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion solution/backend/cmcs_regulations/settings/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
**default_database_values,
'NAME': os.environ.get('DB_NAME', 'eregs'),
'OPTIONS': {
'connect_timeout': 20,
'connect_timeout': 10,
},
},
'postgres': {
Expand Down
3 changes: 2 additions & 1 deletion solution/backend/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ resources:
Family: aurora-postgresql15
Parameters:
rds.force_ssl: 1
statement_timeout: 10000 # Required for ATO compliance

AuroraRDSInstanceParameter15:
Type: AWS::RDS::DBParameterGroup
Expand All @@ -272,7 +273,7 @@ resources:
random_page_cost: 1
track_activity_query_size: 16384
idle_in_transaction_session_timeout: 7200000
statement_timeout: 20000
statement_timeout: 10000 # Required for ATO compliance
search_path: '"$user",public'
log_hostname: 1
pgaudit.role: "rds_pgaudit"
Expand Down

0 comments on commit 12199b7

Please sign in to comment.