Skip to content

Commit

Permalink
fix(config): update DB_MAX_OVERFLOW to 500
Browse files Browse the repository at this point in the history
  • Loading branch information
InfinityPacer committed Nov 4, 2024
1 parent 4d3aa0f commit 8afaa68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ class Config:
DB_POOL_RECYCLE: int = 1800
# 数据库连接池获取连接的超时时间(秒),默认 60 秒
DB_POOL_TIMEOUT: int = 60
# 数据库连接池最大溢出连接数,默认 10
DB_MAX_OVERFLOW: int = 10
# 数据库连接池最大溢出连接数,默认 500
DB_MAX_OVERFLOW: int = 500
# SQLite 的 busy_timeout 参数,默认为 60 秒
DB_TIMEOUT: int = 60
# 配置文件目录
Expand Down
2 changes: 1 addition & 1 deletion config/app.env
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ LOG_LEVEL=INFO
# 数据库连接池的大小,可适当降低如20-50以减少I/O压力
DB_POOL_SIZE=100
# 数据库连接池最大溢出连接数,可适当降低如0以减少I/O压力
DB_MAX_OVERFLOW=10
DB_MAX_OVERFLOW=500
# SQLite 的 busy_timeout 参数,可适当增加如180以减少锁定错误
DB_TIMEOUT=60
# 【*】超级管理员,设置后一但重启将固化到数据库中,修改将无效(初始化超级管理员密码仅会生成一次,请在日志中查看并自行登录系统修改)
Expand Down

0 comments on commit 8afaa68

Please sign in to comment.