gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitcb78a1a0cb78a1a0HM65 report missing heap diagnostic package with repromrecb78a1a0/tests/realdata-070-run.sh

1.3 KB

  1. #!/bin/bash
  2. # usage: [HL_GC_BYTES=…] run.sh <new|old|final> <port> — the merged app on a COPY of live storage (.scratch/w070/real-<which>), all jobs on,
  3. # the daily run forced NOW as a delta run (sync-state.txt = yesterday); RSS sampled every 10 s → .scratch/w070/real-<which>/rss.log
  4. set -e
  5. W=/media/STORAGE/projects/WorldAPI/tracker.worldapi.org
  6. which=$1; port=$2
  7. R=$W/.scratch/w070/real-$which
  8. tree=$W; [ "$which" = old ] && tree=$W/.scratch/w070/oldtree
  9. date -u -d yesterday +%F > $R/storage/mpackdb/sync-state.txt
  10. sid=$(head -c 16 /dev/urandom | xxd -p); now=$(date +%s%3N)
  11. echo "{\"created\":$now,\"data\":{\"tag\":\"t\"},\"id\":\"$sid\",\"seen\":$now,\"user\":{\"id\":\"0mujqspn0aqb\"}}" > $R/sessions/$(printf %s "$sid" | sha256sum | cut -d' ' -f1)
  12. echo $sid > $R/sid
  13. cd $tree
  14. TRACKER_PORT=$port TRACKER_URL=http://127.0.0.1:$port HL_HOST=127.0.0.1 TRACKER_WATCH=0 TRACKER_SYNC=1 TRACKER_SYNC_HOUR=$(date -u +%-H) \
  15. TRACKER_STORAGE=$R/storage/mpackdb TRACKER_SESSIONS=$R/sessions/ TRACKER_OLD_SHORT_IDS=$tree/data/old-short-ids.json \
  16. setsid nohup ./bin/hybriel project.hl > $R/server.log 2>&1 < /dev/null &
  17. pid=$!; echo $pid > $R/server.pid
  18. setsid nohup /media/STORAGE/projects/WorldAPI/tracker.worldapi.org/tests/realdata-070-sampler.sh $which > /dev/null 2>&1 < /dev/null &
  19. echo $! > $R/sampler.pid
  20. echo "started $which pid $pid sid $sid"

Branches

Latest commits

  • cb78a1a0HM65 report missing heap diagnostic package with repromre
  • 89606a5cHM65 briefmre
  • 096ce0d4log: DP69 live on day48mre
  • b3d8a80bDP69 brief, RV48 mergedmre
  • ce6d7d32Merge rv48: Hybriel day48mre
  • 3da2ea86RV48: report day48 cold starts, gates and cleanupmre
  • 8d9ecdfeRV48: re-vendor Hybriel set day48 (source b6a8f429, bin 660a9524)mre
  • 4a802ae7status: RV48 runningmre
  • 0a5412b6RV48 brief, day48 outmre
  • 56665efelog: CB69 mergedmre
  • 05448a98Merge cb69-imports: appTitle in a dependency-free topicmre
  • e55b379dKeep shared app title independent of the route import graphmre
  • 9a99659blog: hybriel#334, batch waits for day48mre
  • 85fa6c9blog: CB68 result, CB69 startedmre
  • 2f07c1b7log: DP68 boot gate failed, CB68mre
  • 9652782dlog: HM59 merged, DP68 startedmre
  • 29867a75Merge hm59-logic: tracker#59 page logic moved to libmre
  • f7bfe90bMove remaining page builders into their topicsmre
  • 7c3991f9log: day46 from Antonmre
  • ec54fc35Move show page logic into the shows topicmre