summaryrefslogtreecommitdiffstats
path: root/notes
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-01-05 14:29:03 -0800
committerBryan Newbold <bnewbold@archive.org>2021-01-05 14:29:03 -0800
commit1ae59a69133f48da19c97f4068c6154690c657f6 (patch)
tree9fe18991ddf859dc1906d56913e8d12a2dab96a9 /notes
parent7dbfc5b30c4769f61291022c652de9794338b34a (diff)
downloadfatcat-scholar-1ae59a69133f48da19c97f4068c6154690c657f6.tar.gz
fatcat-scholar-1ae59a69133f48da19c97f4068c6154690c657f6.zip
notes: recent re-indexing (simple)
Diffstat (limited to 'notes')
-rw-r--r--notes/scaling_works.md20
1 files changed, 19 insertions, 1 deletions
diff --git a/notes/scaling_works.md b/notes/scaling_works.md
index 76acaa1..7f32d05 100644
--- a/notes/scaling_works.md
+++ b/notes/scaling_works.md
@@ -527,7 +527,7 @@ Sharded indexing:
cat /bigger/scholar/release_export_expanded.split_$SHARD.json \
| parallel -j8 --line-buffer --compress --round-robin --pipe python -m fatcat_scholar.work_pipeline run_releases \
| pv -l \
- | pigz > /grande/snapshots/fatcat_scholar_work_fulltext.split_$SHARD.json.gz
+ | pigz > /grande/scholar/2020-12-30/fatcat_scholar_work_fulltext.split_$SHARD.json.gz
done
Record counts:
@@ -608,3 +608,21 @@ Had some hardware (?) issue and had to restart.
Stop elasticsearch, `sync`, restart, to ensure index is fully flushed to disk.
Some warm-up queries: "*", "blood", "to be or not to be"
+
+
+## 2020-12-30 Simple Release Batch
+
+Hopefully no special cases in this iteration!
+
+ mkdir -p /grande/scholar/2020-12-30/
+ cd /grande/scholar/2020-12-30/
+ zcat /fast/download/release_export_expanded.2020-12-30.json.gz | split --lines 25000000 - release_export_expanded.split_ -d --additional-suffix .json
+
+ export TMPDIR=/sandcrawler-db/tmp
+ for SHARD in {00..06}; do
+ cat /grande/scholar_index/2020-12-30/release_export_expanded.split_$SHARD.json \
+ | parallel -j8 --line-buffer --compress --round-robin --pipe python -m fatcat_scholar.work_pipeline run_releases \
+ | pv -l \
+ | pigz > /grande/scholar_index/2020-12-30/fatcat_scholar_work_fulltext.split_$SHARD.json.gz
+ done
+