默认关闭插件热加载扫盘监听

This commit is contained in:
liuwei
2026-05-06 11:07:47 +08:00
parent 831a61e7ea
commit b4c046a594
4 changed files with 51 additions and 2 deletions

View File

@@ -1,6 +1,14 @@
environment: "${ABOT_ENVIRONMENT:development}"
plugin_dir: "${ABOT_PLUGIN_DIR:plugins}"
plugin_hot_reload:
# 线上默认关闭插件热加载扫描:
# 1. 避免后台线程周期性扫盘;
# 2. 降低 discover_plugins 带来的额外 IO
# 3. 如确实需要热更新,再单独通过环境变量打开。
enabled: "${ABOT_PLUGIN_HOT_RELOAD_ENABLED:false}"
interval_seconds: "${ABOT_PLUGIN_HOT_RELOAD_INTERVAL:600}"
db_config:
pool_name: "${ABOT_DB_POOL_NAME:wechat_boot_pool}"
pool_size: "${ABOT_DB_POOL_SIZE:10}"