modify 修复前端展示配置与实际插件配置不一致的bug

This commit is contained in:
2026-09-17 15:33:35 +08:00
parent 3aa5087f96
commit d252eb87e1
10 changed files with 564 additions and 222 deletions
+10 -3
View File
@@ -15,9 +15,16 @@ json5_path = "./config/zenoh_config.json5"
backend = "redis"
# path = "./cache_data/cache.db"
# 启动时该类 worker 的全局副本数优先来源(指 config/workers/<type>/config.toml 的 count):
# "toml" (默认) = 经典模式:启动时用 toml 的 count 覆盖 cache 并写回为新的全局总量
# "cache" = 全局模式:chongming-cache 为单一事实来源,toml 仅在 cache 缺失时引导
# 配置优先来源模式(同时决定 [workers.config] 与 count 在启动时的取舍):
# "toml" (默认) = 以文件为准:启动时用 config/workers/<type>/config.toml 的
# [workers.config] 与 count 覆盖写入 cache(前端读 cache,因此随之显示
# toml 值);运行期经管理接口(/admin/workers/<type>/config、/scale)
# 改的值仅本次运行有效,重启网关即被文件覆盖。
# "cache" = 以缓存为准:chongming-cache 为单一事实来源,插件初始化即读缓存值,
# 管理接口改动跨重启保持;toml 仅在 cache 缺失时引导。启动日志会提示
# toml 与 cache 的差异键(以 cache 为准);如需让 toml 改动生效,先删除
# worker:cm:configs:<type>(运行时配置)/ worker:cm:counts:<type>(副本数)
# 缓存键再重启,或改用 "toml" 模式。
launch_worker_count = "toml"
# redis 后端专用(backend = "redis" 时生效,均有默认值)