search for standard sites pub-search.waow.tech
search zig blog atproto
at main 49 lines 1.8 kB view raw
1# tap instance for leaflet-search 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) 7turbo: 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) 18normal: 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 28# check indexing status - shows most recent indexed documents 29check: 30 @echo "=== tap status ===" 31 @fly status --app leaflet-search-tap 2>/dev/null | grep -E "(STATE|started|stopped)" 32 @echo "" 33 @echo "=== Recent Indexing Activity ===" 34 @curl -s https://leaflet-search-backend.fly.dev/api/dashboard | jq -r '"Last indexed: \(.timeline[0].date) (\(.timeline[0].count) docs)\nToday: '$(date +%Y-%m-%d)'\nDocs: \(.documents) | Pubs: \(.publications)"' 35 @echo "" 36 @echo "=== Timeline (last 7 days) ===" 37 @curl -s https://leaflet-search-backend.fly.dev/api/dashboard | jq -r '.timeline[:7][] | "\(.date): \(.count) docs"' 38 39deploy: 40 fly deploy --app leaflet-search-tap 41 42status: 43 fly status --app leaflet-search-tap 44 45logs: 46 fly logs --app leaflet-search-tap 47 48ssh: 49 fly ssh console --app leaflet-search-tap