From 0f948dc62d390e7c3e12da1299a27cb8d5b55976 Mon Sep 17 00:00:00 2001 From: chakcy <947105045@qq.com> Date: Fri, 14 Aug 2026 17:34:05 +0800 Subject: [PATCH] =?UTF-8?q?modify:=20example=20=E6=8F=92=E4=BB=B6=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E8=A1=A5=E5=85=85=20load=5Fmode=20=E8=AF=B4=E6=98=8E?= =?UTF-8?q?=EF=BC=88inline/external=20=E6=B7=B7=E5=90=88=E5=85=B1=E5=AD=98?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- workers/example/config.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/workers/example/config.toml b/workers/example/config.toml index 3cb938c..794448a 100644 --- a/workers/example/config.toml +++ b/workers/example/config.toml @@ -5,6 +5,11 @@ module = "plugins.example" factory = "create_workers" cleanup = "cleanup" count = 3 +# 运行模式(按插件粒度,两种模式可同时存在): +# "inline"(默认)= 网关进程内加载 +# "external" = 独立进程运行(Docker/K8s 编排: uv run worker_serve --type example), +# 经 Zenoh 注册路由,网关动态挂载 +load_mode = "inline" [worker] name = "example"