seed:node spreads its ranges and inspections over worker processes
Test and deploy / test (push) Successful in 2m51s
Test and deploy / deploy (push) Successful in 2m27s

One process ran everything on one core. SEED_PROCESSES (default: the
number of cores) worker processes now each run seed:node with a share of
the slots; stop signals are passed on and crashed workers restarted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Daan MeijerandClaude Opus 5.5 committed 2026-10-06 13:25:00 +02:00
1 parent 4d17c5a8e8
commit 288a6bab8d
3 files changed
+73 -4

No files matched your search

+1
View File
@@ -64,6 +64,7 @@ for the same name replaces the token; `--disable` revokes it.
| `SEED_TOKEN` | the token from step 1 |
| `SEED_RANGES` | ranges seeded at once. Start with 2–4; `0` for no seeding. |
| `SEED_INSPECTORS` | inspections and archive walks at once (default `0`). Try 2–4 on a machine with spare cores. |
| `SEED_PROCESSES` | optional: how many processes the ranges and inspections are spread over, one CPU core each. Default: the number of cores (never more than ranges + inspections). Lower it to leave cores free. |
| `SEED_FETCH=direct` and `NNTP_*` | optional: seed with this node's own NNTP account (see the commented lines). `NNTP_TLS_SERVERNAME` only through a tunnel: the news server's real hostname, for the TLS certificate check. |
Nothing else: the database, Redis and web server settings the indexer
+2
View File
@@ -6,6 +6,8 @@ SEED_TOKEN=sn_replace_me
SEED_RANGES=4
# Content inspections and archive walks at once (CPU for decoding and parsing; articles come through the seed API).
SEED_INSPECTORS=0
# Ranges and inspections are spread over this many processes, one core each (default: the number of cores).
# SEED_PROCESSES=4
# Optional: SEED_FETCH=direct seeds with this node's own NNTP account instead of through the seed API.
# SEED_FETCH=direct