Merge pull request #1265 from tcely/patch-2
Reduce idle connections on PostgreSQL server
This commit is contained in:
2 files changed
+6
-6
No files matched your search
@@ -82,9 +82,9 @@ class UtilsTestCase(TestCase):
|
||||
'CONN_HEALTH_CHECKS': True,
|
||||
'CONN_MAX_AGE': 0,
|
||||
'OPTIONS': dict(pool={
|
||||
'max_size': 80,
|
||||
'min_size': 8,
|
||||
'num_workers': 6,
|
||||
'max_size': 10,
|
||||
'min_size': 3,
|
||||
'num_workers': 2,
|
||||
'timeout': 180,
|
||||
}),
|
||||
}
|
||||
|
||||
@@ -119,9 +119,9 @@ def parse_database_connection_string(database_connection_string):
|
||||
}
|
||||
backend_options = {
|
||||
'postgresql': dict(pool={
|
||||
'max_size': 80, # default: None (static min_size pool)
|
||||
'min_size': 8, # default: 4
|
||||
'num_workers': 6, # default: 3
|
||||
'max_size': 10, # default: None (static min_size pool)
|
||||
'min_size': 3, # default: 4
|
||||
'num_workers': 2, # default: 3
|
||||
'timeout': 180, # default: 30
|
||||
}),
|
||||
'mysql': {
|
||||
|
||||
Reference in new issue
Block a user