default settings for mysql pool
This commit is contained in:
Родитель
cbc015f173
Коммит
06604c5c2d
|
@ -83,6 +83,13 @@ SERVICES_DATABASE = {
|
|||
|
||||
DATABASE_ROUTERS = ('multidb.PinningMasterSlaveRouter',)
|
||||
|
||||
# For use django-mysql-pool backend.
|
||||
DATABASE_POOL_ARGS = {
|
||||
'max_overflow': 10,
|
||||
'pool_size':5,
|
||||
'recycle':300
|
||||
}
|
||||
|
||||
# Put the aliases for your slave databases in this list.
|
||||
SLAVE_DATABASES = []
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче