fix: MySQL 空闲连接健康检查 + Gunicorn worker 保活,解决广播开才不卡
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -126,6 +126,7 @@ DATABASES = {
|
||||
'PASSWORD': app_secrets.DATABASE_PASSWORD,
|
||||
'PORT': app_secrets.DATABASE_PORT,
|
||||
'CONN_MAX_AGE': 600,
|
||||
'CONN_HEALTH_CHECKS': True,
|
||||
'OPTIONS': {
|
||||
'charset': 'utf8mb4',
|
||||
'init_command': "SET time_zone='+08:00'",
|
||||
|
||||
Reference in New Issue
Block a user