modify 修复前端展示配置与实际插件配置不一致的bug
This commit is contained in:
@@ -195,6 +195,13 @@ tags = ["demo", "process-plugin"]
|
||||
greeting_prefix = "Hello"
|
||||
```
|
||||
|
||||
> **运行时配置的来源(两种模式)**:`[workers.config]` 与 `count` 在启动时按
|
||||
> `[workers.cache].launch_worker_count` 取值——`"toml"`(默认)以本文件为准,并把该段覆盖
|
||||
> 写入共享缓存(网关 `GET /admin/workers/<type>/config` 读缓存,因此前端显示文件值);
|
||||
> `"cache"` 以缓存为准(插件初始化即读缓存值,管理接口改动跨重启保持,本文件仅在缓存缺失时
|
||||
> 引导)。进程插件未配置 `[workers.cache]` 时无缓存句柄,恒为 toml 语义,且与网关内同名
|
||||
> 副本可能读到不同来源——需要与网关共享"改完即持久"的语义时请补上与网关一致的 `[workers.cache]`。
|
||||
|
||||
### 第 3 步:端点 TOML 定义
|
||||
|
||||
每个端点一个文件,如 `workers/<name>/config/workers/<name>/hello.toml`:
|
||||
|
||||
Reference in New Issue
Block a user