20260830215003

This commit is contained in:
oneao committed 2026-08-30 21:50:03 +08:00
1 parent 47c0bf08aa
commit d6a56eb17f
47 files changed
+682 -351

No files matched your search

@@ -20,15 +20,19 @@ fms:
pool:
# 建池时先建 1 条物理连接:配置指向不可达的库时快速失败,保留旧池不切换
initial-size: 1
min-idle: 0
# 保留 1 条温连接:min-idle=0 时 keepAlive 无连接可保活,空闲连接被回收后每次请求都要跨公网重新建连
min-idle: 1
max-active: 10
max-wait: 5000
# 公网建连本身可能超过 5s(握手上限 10s),池空时需留够等待时间
max-wait: 10000
validation-query: SELECT 1
test-while-idle: true
test-on-borrow: true
# 每次借连接都做一次跨公网 SELECT 1,既慢又放大失败面,由 testWhileIdle + keepAlive 兜底
test-on-borrow: false
test-on-return: false
time-between-eviction-runs: 30s
min-evictable-idle-time: 30s
time-between-eviction-runs: 60s
# 原 30s:业务稍一空闲连接就被销毁,每个请求都要重新建连,公网建连超时概率被大幅放大
min-evictable-idle-time: 10m
file:
storage-type: local
local: