增加pprof

This commit is contained in:
2025-09-24 18:09:29 +08:00
parent 2070653f2f
commit 3a030f5bca
3 changed files with 30 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ app:
# HTTP 服务配置
server:
port: 8086
mode: "debug" # Gin 运行模式: "debug", "release", "test"
mode: "release" # Gin 运行模式: "debug", "release", "test"
# 日志配置
log:
@@ -29,7 +29,7 @@ database:
password: "pig-farm-controller"
dbname: "pig-farm-controller"
sslmode: "disable" # 在生产环境中建议使用 "require"
is_timescaledb: false
is_timescaledb: true
max_open_conns: 25 # 最大开放连接数
max_idle_conns: 10 # 最大空闲连接数
conn_max_lifetime: 600 # 连接最大生命周期(秒)