tracker
All repositories: gitoria
2.0 KB
#!/bin/bash# realdata-m034.sh <start|stop> <tree> <copy> <port> — mission 034 (tracker#40, the curated franchise seed), NOT the gate. Starts an# app tree on a COPY of live `storage/` (<copy>/storage, STATUS "How to repeat") with every background job OFF but the franchise# seed (TRACKER_COLLECTIONS=1 in the caller's env: the collection seed too). With a `.env` link in <tree> (real TMDB token, never read) the seed imports what is missing; without one it only builds.# Writes a session for the creator (az5b2 = user 0mujqspn0aqb) → <copy>/sid; log <copy>/server.log, RSS every 10 s <copy>/rss.log;# stop kills the PID in <copy>/server.pid.mode=$1; tree=$2; R=$3; port=$4if [ "$mode" = stop ]; then pid=$(cat $R/server.pid); kill $pid; while kill -0 $pid 2>/dev/null; do sleep 1; done; echo "stopped $pid"; exit 0; fimkdir -p $R/sessionssid=$(head -c 16 /dev/urandom | xxd -p); now=$(date +%s%3N)echo "{\"created\":$now,\"data\":{\"tag\":\"t\"},\"id\":\"$sid\",\"seen\":$now,\"user\":{\"id\":\"0mujqspn0aqb\"}}" > $R/sessions/$(printf %s "$sid" | sha256sum | cut -d' ' -f1)echo $sid > $R/sidcd $treeenv TRACKER_SYNC=0 TRACKER_ART=0 TRACKER_PHOTOS=0 TRACKER_BACKFILL=0 TRACKER_REPAIR=0 TRACKER_KINDS=0 TRACKER_CREDITS=0 TRACKER_COLLECTIONS=${TRACKER_COLLECTIONS:-0} TRACKER_MERGE=0 TRACKER_SHORTIDS=0 \TRACKER_PORT=$port TRACKER_URL=http://127.0.0.1:$port HL_HOST=127.0.0.1 TRACKER_WATCH=0 \TRACKER_STORAGE=$R/storage/mpackdb TRACKER_SESSIONS=$R/sessions/ TRACKER_OLD_SHORT_IDS=$tree/data/old-short-ids.json \setsid ./bin/hybriel project.hl >> $R/server.log 2>&1 < /dev/null &pid=$!; echo $pid > $R/server.pid( t0=$(date +%s); while kill -0 $pid 2>/dev/null; do echo "$(( $(date +%s) - t0 )) $(date +%T) $(awk '/VmRSS/{print $2}' /proc/$pid/status 2>/dev/null)" >> $R/rss.log; sleep 10; done ) > /dev/null 2>&1 < /dev/null &t0=$(date +%s)until curl -s -o /dev/null http://127.0.0.1:$port/; do sleep 1; kill -0 $pid 2>/dev/null || { echo "server died"; tail -20 $R/server.log; exit 1; }; doneecho "pid $pid listening after $(( $(date +%s) - t0 )) s"
Branches
Latest commits
- 1f2df72amission RV39mre
- 6c1936f9log+status: GC planmre
- 2846a840log: m569 result, GC hypothesismre
- b24cd2d5log: Anton on hl:fetch, mission 569mre
- 7d42cac1log+status: SL1 measured, fetch stalls remainmre
- 8e5f2ceflog: SL1 deployedmre
- 29f34212log: SL1 deploy startedmre
- 529dd741Merge sl1-slices: slice details repair and person fill (SL1)mre
- 8a83316blog: SL1 result, session drain slowermre
- 35e93e8dSL1: slice the details repair and person fill: catalog lists changed in place, 40 ms fill steps, people created in steps, writes one table per tickmre
- 72c9119flog+status: SL1 startedmre
- d74620fcmission SL1: slice repair and person fillmre
- 5d542d73log+status: ST1 resultmre
- 3945eb81ST1: stall diagnosis reportmre
- 404733aclog: ST1 startedmre
- 3e3d5a55mission ST1: stall diagnosismre
- 9c3180eblog+status: RV28d measured after deploymre
- fdf10b1alog: RV28d deployed on day38bmre
- 320005e9log: RV28d merged, deploy runningmre
- a8fef27dRV28d: reportmre