search for standard sites pub-search.waow.tech
search zig blog atproto
11
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: add turbo/normal modes for TAP catch-up

- `just turbo`: 4GB, 2 CPUs, higher parallelism for fast catch-up
- `just normal`: 2GB, 1 CPU, conservative settings for steady-state

uses fly machine update to change settings without full deploy

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

zzstoatzz b9168313 d635f516

+25
+25
tap/justfile
··· 1 1 # tap instance for leaflet-search 2 2 3 + # get machine id 4 + _machine_id := `fly status --app leaflet-search-tap --json 2>/dev/null | jq -r '.Machines[0].id'` 5 + 6 + # crank up parallelism for faster catch-up (uses more memory + CPU) 7 + turbo: 8 + @echo "Switching to TURBO mode (4GB, 2 CPUs, higher parallelism)..." 9 + fly machine update {{ _machine_id }} --app leaflet-search-tap \ 10 + --vm-memory 4096 \ 11 + --vm-cpus 2 \ 12 + -e TAP_RESYNC_PARALLELISM=4 \ 13 + -e TAP_FIREHOSE_PARALLELISM=10 \ 14 + --yes 15 + @echo "TURBO mode enabled. Run 'just normal' when caught up." 16 + 17 + # restore normal settings (lower memory, conservative parallelism) 18 + normal: 19 + @echo "Switching to NORMAL mode (2GB, 1 CPU, conservative parallelism)..." 20 + fly machine update {{ _machine_id }} --app leaflet-search-tap \ 21 + --vm-memory 2048 \ 22 + --vm-cpus 1 \ 23 + -e TAP_RESYNC_PARALLELISM=1 \ 24 + -e TAP_FIREHOSE_PARALLELISM=5 \ 25 + --yes 26 + @echo "NORMAL mode restored." 27 + 3 28 # check indexing status - shows most recent indexed documents 4 29 check: 5 30 @echo "=== TAP Status ==="