How we run a 6.7-billion-page, EU-sovereign web index on 12 local-NVMe nodes
Tarek, Founder & CEO
Engineering · · 9 min read
SpecStream operates a live web index of 6,767,212,601 pages across 17 language-family partitions and 80 segments, plus 435,223,639 site contact records and 432,842,112 page vector entries. The entire index runs inside Frankfurt, Germany (IONOS Cloud de/fra), on 12 direct-attached local-NVMe nodes connected over a private VPC network with zero extra public IPv4 addresses. Total compute and storage cost for all 12 index nodes is EUR 862.86 per month, or EUR 946.08 per month including the front-end product node (EUR 31.12 per day).
Most web search APIs choose between two failure modes. A provider with no index of its own waits on external search engines for every query and inherits their rate limits, latency spikes, and jurisdiction boundaries. A provider that builds an index on hyperscaler network-attached block storage pays tens of thousands of dollars per month for provisioned IOPS and still stalls on cold posting-list reads.
We designed our index around a different premise: direct-attached local NVMe in Frankfurt, rank-ordered immutable segments, bounded-time segment walks, and compact in-memory auxiliary structures that eliminate unnecessary disk reads before they reach the drive.
Why network-attached storage broke cold search
Before moving to 12 local-NVMe nodes, we traced kernel page faults on a monolithic network-attached block volume holding 6.67 billion pages. Under an 8-caller cold query workload, the network volume saturated at 35,000 to 40,000 reads per second (11 to 12 KB per read). A single never-asked query at a 3-second budget read 532 MiB on average (267 MiB median): 65% in posting lists, 14% in candidate doc values, 12% in anchor lists, and 5% in length tables. Common-word queries such as book and film titles read 1.3 to 1.8 GiB of posting lists per query.
Two system bottlenecks amplified every cold read:
- OS readahead amplification. Default cloud volume readahead (8 MB) caused single cold queries to pull 35 to 530 MB of adjacent unused blocks. Lowering volume readahead to 16 KB cut read amplification dramatically while preserving sequential block throughput.
- Unbounded bulk-scorer time checks. Standard Lucene time-limiting bulk scorers start with a small slice between clock checks and grow that slice exponentially with no upper bound. On a cold disk, the final slice could span a third of a segment, causing queries to overrun a 300 ms deadline by seconds and return zero results.
Splitting the index across 12 local-NVMe cubes solves the IOPS ceiling at the hardware layer (each local NVMe drive sustains hundreds of thousands of random IOPS with no network hop), and our search engine fixes the read path in software.
Hardware topology and monthly unit economics
Every node runs inside de/fra (Frankfurt, Germany) under EU jurisdiction, connected over a private layer-2 LAN. Only the API gateway exposes a public interface; all 12 index nodes sit strictly on the private network.
| Node group | Count | Specs per node | Monthly unit cost | Subtotal |
|---|---|---|---|---|
| High-memory index cubes | 6 | 16 vCPU, 64 GB RAM, 960 GB local NVMe | EUR 83.22 | EUR 499.32 |
| Standard index cubes | 6 | 16 vCPU, 32 GB RAM, 960 GB local NVMe | EUR 60.59 | EUR 363.54 |
| Index cluster total | 12 | 192 vCPU, 576 GB RAM, 11.52 TB NVMe | EUR 862.86 | |
| Production API node | 1 | 16 vCPU, 64 GB RAM, 960 GB local NVMe | EUR 83.22 | EUR 83.22 |
| Full production cluster | 13 | 208 vCPU, 640 GB RAM, 12.48 TB NVMe | EUR 946.08 |
Active payload across the 12 index nodes totals 9,027 GB (9.03 TB), leaving headroom on every 960 GB local NVMe drive (the fullest node holds 818 GB) for daily incremental merges, temporary sort buffers, and Bloom filter builds.
Partitioning 6.76 billion pages across 12 cubes
Instead of hash-sharding every document blindly across all machines, we partition by language family and workload type. That lets the query router prune irrelevant nodes on language-scoped requests and keeps specialized workloads (link graph traversal, structured item search, site contact lookups, and semantic vector scans) isolated from full-text posting-list I/O.
| Cube role | Hardware tier | Payload (GB) | Indexed pages | Shards and datasets | Key filters |
|---|---|---|---|---|---|
| English primary 1 | 64 GB / 960 GB NVMe | 793 | 1,139,825,519 | eng-4 (1.02B), nld-1 (114.9M) |
11 / 11 |
| English primary 2 | 64 GB / 960 GB NVMe | 803 | 952,569,323 | eng-5 (711.9M), pol-1 (118.8M), por-1 (121.8M) |
13 / 13 |
| English primary 3 | 64 GB / 960 GB NVMe | 806 | 906,081,615 | eng-1 (359.8M), eng-2 (229.6M), eng-3 (316.8M) |
12 / 12 |
| Chinese shard | 32 GB / 960 GB NVMe | 789 | 551,792,876 | zho-1 (551.8M) |
9 / 9 |
| Multilingual 1 | 32 GB / 960 GB NVMe | 783 | 962,543,139 | oth-1 (962.5M) |
9 / 9 |
| European and Japanese | 32 GB / 960 GB NVMe | 818 | 928,517,345 | deu-1 (467.6M), ita-1 (163.7M), jpn-1 (297.2M) |
11 / 11 |
| European and Russian | 32 GB / 960 GB NVMe | 803 | 994,256,668 | fra-1 (335.2M), rus-1 (317.0M), spa-1 (342.0M) |
12 / 12 |
| Structured items | 32 GB / 960 GB NVMe | 788 | 0 | 16 structured item shards (JSON-LD, microdata, OpenGraph) | n/a |
| Anchor graph 1 | 64 GB / 960 GB NVMe | 727 | 0 | Inbound anchor partitions (727.2 GB) | n/a |
| Anchor graph 2 | 64 GB / 960 GB NVMe | 726 | 0 | Inbound anchor partitions (726.2 GB) | n/a |
| Auxiliary and vectors 1 | 64 GB / 960 GB NVMe | 677 | 331,626,116 | oth-2 (331.6M), 435.2M site records, 432.8M page vectors, 47M Wikipedia vectors |
3 / 3 |
| Auxiliary and link graph 2 | 32 GB / 960 GB NVMe | 514 | 0 | Site link graph, pair words, outbound edges, host authority table | n/a |
| Total | 12 cubes | 9,027 | 6,767,212,601 | 17 text parts, 80 segments | 80 / 80 |
All 80 text segments across the 17 parts maintain an active, file-mapped key Bloom filter (80 / 80 ready as of December 1, 2026).
Four software mechanisms that keep tail latency bounded
Local NVMe gives us hardware IOPS, but four architectural choices in the search service keep median latency in the tens of milliseconds and stop cold queries from timing out empty.
1. Static rank ordering inside every segment
Every Lucene 10 segment is written in descending static-rank order before it is sealed. Static rank combines host authority from the web link graph (computed via HyperBall harmonic centrality and stored in compact 10-byte hash-ordered records so 300 million sites fit in 3 GB of page cache) with page-level structural quality signals. Because the highest-authority pages always sit at the front of every posting list, terminating a segment walk early still yields the strongest candidate pages rather than an arbitrary crawl-order slice.
2. Adaptive bounded-time segment walks
Instead of letting Lucene's default bulk scorer grow its step size without bound, our segment walker advances in adaptive stretches targeting ~8 ms per stretch, checking the wall clock between stretches. Each stretch expands while disk reads hit page cache and shrinks immediately when a cold read takes longer. The walk receives 60% of the request's time budget (reserving up to 150 ms for candidate row retrieval). When a walk reaches its time limit, it stops cleanly and returns every match collected so far.
On our cold-query stress benchmark (40 never-asked entity names at a 300 ms deadline, four concurrent callers), replacing the default bulk scorer with bounded adaptive walks dropped empty responses from 26 of 40 to 0 of 40 while lifting top-10 target recall from 4 of 40 to 21 of 40.
3. In-memory rank samples and selective doc-value reads
Reading stored doc values (URL, domain, crawl day, exact rank) for 200 candidates per part across 17 parts meant 3,400 random lookups per query, consuming 45 ms of a 66 ms warm query. We replaced bulk doc-value reads with RankSamples, an in-memory table holding the first 262,144 ranks of each segment exactly and every 4,096th rank thereafter (43 MB total for the entire 6.76-billion-page index, built in 3 seconds). Candidates are ranked from memory first, and full doc values are read only for the leading candidates needed to fill the output page. Against reading 200 rows per part, selective reading preserved the exact #1 result in 296 of 299 test queries.
4. Segment-level 12-bit Bloom filters for point lookups
Point lookups by URL key (/doc, /page, and joins from the anchor and vector lanes) would otherwise touch the term dictionary of all 80 segments. Each sealed segment gets a 12-bit-per-key Bloom filter (~0.5% false-positive rate, roughly 10 GB file-mapped across the entire cluster). A URL lookup checks the Bloom filters in RAM and touches disk on the single segment that holds the document.
Live latency measurements (December 1, 2026)
We probed the production Frankfurt cluster directly over the private VPC network on December 1, 2026. All requests returned HTTP 200 with zero errors.
| Endpoint | Target cube | Sample size | Min | Median (p50) | p95 |
|---|---|---|---|---|---|
GET /links (anchor graph) |
Anchor 1 | 10 | 1.0 ms | 1.4 ms | 369.7 ms |
GET /links (site graph) |
Aux 2 | 10 | 1.2 ms | 1.4 ms | 372.9 ms |
GET /items (structured entities) |
Items | 20 | 3.1 ms | 12.2 ms | 171.2 ms |
GET /search (k=10, ms=800) |
English 1 | 20 | 11.7 ms | 36.5 ms | 568.1 ms |
GET /site (site contact graph) |
Aux 1 | 20 | 54.3 ms | 101.3 ms | 929.3 ms |
Under live concurrent traffic, single-node English full-text search answers in 36.5 ms at median, structured schema-entity lookups in 12.2 ms, and link-graph lookups in 1.4 ms. Combined with live web fetching and extraction, this local index underpins our Search API ($1 per 1,000 calls on the fast tier, $5 per 1,000 calls on default) and our #1 accuracy across 15 public web-search and extraction benchmarks.
European data sovereignty by architecture
Hosting the entire 6.76-billion-page index, structured item store, link graph, and vector engine inside Frankfurt on EU-owned infrastructure is not a compliance checkbox added after the fact. For European enterprises, financial institutions, and regulated SaaS teams operating under GDPR and DORA, every API key can enforce zero_retention: true (no query text, results, or extracted pages stored after the response leaves) and eu_egress_only: true (direct egress from our Frankfurt infrastructure with no third-country proxy hops).
Because our own index answers locally alongside live web retrieval, queries never depend on a single outside search monopoly. A slow or rate-limited origin does not stall the response, and every value returned carries its source URL and read timestamp.
Try the Search API and Extract API
Every new account starts with $2 of credit with no card required, covering 2,000 fast searches or 2,500 extracted pages. Full benchmark scores, raw outputs, and methodology are published at specstream.ai/benchmarks and on Hugging Face. Create an API key at specstream.ai/workspace.
More from the blog
Every postMillisecond semantic retrieval over 47 million Wikipedia paragraphs in 6 GB of RAM
How SpecStream serves dense semantic search across 47,018,430 Wikipedia paragraphs in 6.02 GB of locked RAM using AVX-512 binary Hamming scans and NVMe-backed int8 rescoring, with live benchmarks and reproducible open code
Dec 1, 2026 · Tarek · 7 min read
BuiltWith and TheirStack alternative 2026: companies using any software, as a CSV from $15
Compare BuiltWith ($295 to $995/mo) and TheirStack ($199 to $999/mo) with SpecStream: 374,916 companies across 265 technologies, 16.58M commercial tech stacks and 6,812 trust centers, from $15 per list or $49/mo
Dec 1, 2026 · SpecStream · 5 min read
Claygent alternative 2026: web enrichment in Clay at $1 per 1,000 rows, 50x cheaper
Run live web search and page extraction inside Clay through the HTTP API column: $1 per 1,000 searches and $0.80 per 1,000 pages on the engine ranked #1 across 15 public web search and extraction benchmarks
Dec 1, 2026 · SpecStream · 4 min read