Preserve Goose session affinity across canary rollback

This commit is contained in:
john
2026-11-17 14:51:03 +08:00
parent e136f7d3ac
commit ffefdb40cf
7 changed files with 125 additions and 21 deletions
+2 -2
View File
@@ -53,7 +53,7 @@ bash scripts/switch-goose-v149-canary.sh on users
pnpm dev
```
Portal 会注册 `[18006, 18049]` 双 target;canary 用户的新 session 应 pin 到 v1.49(见 `scripts/goose-v149-canary.mjs` + `release-gate/canary-routing.mjs`)。
白名单用户的新会话在候选健康时绑定 v1.49,普通请求的默认池只包含稳定实例。已有会话按已保存的目标继续路由。
## 一键回滚(回落 stable)
@@ -62,7 +62,7 @@ bash scripts/switch-goose-v149-canary.sh rollback
pnpm dev
```
回滚仅移除 canary 块,不删 v1.49 进程或 PG 库;stable `:18006` 保持可用。
回滚后,新会话进入稳定池。保留 v1.49 进程及其 PG 库,让已绑定候选实例的会话继续使用 `TKMIND_GOOSE_CANARY_RESUME_TARGET`。待候选会话退役或完成经过验证的迁移,再运行 `bash scripts/switch-goose-v149-canary.sh off` 清除配置。
## 验证