docs(ops): record 103 goosed native migration and add migrate tooling
Memind CI / Test, build, and release guards (pull_request) Has been cancelled
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user