docs(ops): record 103 goosed native migration and add migrate tooling
Memind CI / Test, build, and release guards (pull_request) Has been cancelled

Document the completed Docker-to-native goosed pool cutover on 103, add the production migrate script with backup/rollback paths, and extend local native pool soak/metrics helpers used as migration gates.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-07-30 20:24:22 +08:00
parent b549a390fe
commit 0dfb2e2b82
9 changed files with 1407 additions and 51 deletions
+12 -2
View File
@@ -106,8 +106,18 @@ function cleanupSandboxProcesses() {
}
function goosedLabel(command) {
const port = command.match(/\b(18006|18007)\b/)?.[1];
return port ? `cn.tkmind.goosed-${port}` : null;
const configured = String(process.env.GOOSED_NATIVE_POOL_PORTS ?? '18006,18007')
.split(/[,\s]+/)
.map((value) => value.trim())
.filter(Boolean);
const portPattern = configured.length > 0
? configured.map((port) => port.replace(/^:/, '')).join('|')
: '1800[6-9]|1801[0-4]';
const match = command.match(new RegExp(`\\b(${portPattern})\\b`));
const port = match?.[1] ?? null;
if (!port) return null;
const template = process.env.GOOSED_NATIVE_LAUNCHD_LABEL_TEMPLATE ?? 'com.tkmind.local-goosed-{port}';
return template.replace('{port}', port);
}
function monitorGoosed() {