Homelab: the replay container's app environment; the nightly resume honours the v2 reset
deploy/replay-window.sh passes the compose app environment (HOST, PORT, APP_URL, SPOOL_DIR, CHUNK_TABLESPACE) the ace command validates. The resume script starts only the coordinator (the corpus fill) while .cache/v2-reset exists: the voyager 2 catalog was reset on 2026-10-26 and its workers would fill it again. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
f300a2fd81
commit
f437929181
2 files changed
+11
-3
No files matched your search
@@ -33,7 +33,8 @@ replay() {
|
||||
local group=$1 from=$2 to=$3
|
||||
say "$group: replaying $from–$to"
|
||||
if docker run --rm --name "replay-${group//./-}" --network usenet-rebuild --env-file .env \
|
||||
-e NODE_ENV=production -e DB_HOST=postgres -e DB_PORT=5432 -e DB_DATABASE=usenet_replay -e CORPUS_DIR=/corpus \
|
||||
-e NODE_ENV=production -e HOST=0.0.0.0 -e PORT=3334 -e APP_URL=http://web:3334 -e SPOOL_DIR=/spool -e CORPUS_DIR=/corpus \
|
||||
-e DB_HOST=postgres -e DB_PORT=5432 -e DB_DATABASE=usenet_replay -e CHUNK_TABLESPACE=pg_default \
|
||||
-v "$ROOT/corpus:/corpus:ro" --memory "$MEMORY" "$IMAGE" \
|
||||
node ace replay:corpus --group "$group" --from "$from" --to "$to" > "$OUT/$group.log" 2>&1; then
|
||||
touch "$OUT/$group.done"
|
||||
|
||||
@@ -6,6 +6,13 @@ exec 9>.cache/deploy.lock
|
||||
flock 9
|
||||
rm -f .cache/paused
|
||||
date "+%F %T resuming"
|
||||
docker compose up -d --no-deps coordinator prober merger judge spotter spot-inspector
|
||||
docker compose up -d --no-deps edge
|
||||
if [ -e .cache/v2-reset ]; then
|
||||
# The voyager 2 catalog is reset (2026-10-26, LOG.md (112)): only the coordinator (the corpus fill) runs until voyager 3
|
||||
# is deployed; the edge, prober, merger, judge, spotter and spot inspector would fill the old catalog again.
|
||||
echo "v2 reset: only the coordinator"
|
||||
docker compose up -d --no-deps coordinator
|
||||
else
|
||||
docker compose up -d --no-deps coordinator prober merger judge spotter spot-inspector
|
||||
docker compose up -d --no-deps edge
|
||||
fi
|
||||
docker compose ps --format "{{.Service}} {{.Status}}"
|
||||
Reference in new issue
Block a user