Where do my documents actually live?

Vespa keeps several copies of every document, but the copies are not equal: some are indexed in memory and serving queries, some are indexed but idle, and some are only stored on disk. Adjust the cluster and watch 120 documents redistribute; take nodes out for maintenance or fail them outright.

Cluster — 1 group × 2 nodes (2 nodes)

active — indexed, serves queries

indexed, not active — filtered out at query time

stored only — on disk, not searchable

group 0

coverage 100%

node 0

indexed — ram + disk

120 docs in ram

stored only — disk

none

node 1

indexed — ram + disk

120 docs in ram

stored only — disk

none

maint = planned downtime: data stays put, nothing is re-replicated; indexed standby copies on other nodes take over serving where they exist. fail = hard failure: the cluster rebuilds copies from surviving replicas — documents with no surviving replica are unreachable until the node returns. Click any document to trace all of its copies.

Groups

1

flat cluster — one row

Nodes per group

2

2

total floor — per group: ceil(2/1) = 2 — actual total 2

Searchable copies (per group)

2

all 2 copies indexed (the maximum — searchable-copies ≤ redundancy)

Effective redundancy

2

240 copies of 120 documents

Disk footprint

2.0×

document store on every copy, disk index on 2.0×

Memory footprint

2.0×

attributes + index for 240 indexed copies

Active share of index

50%

50% of each index is filtered out per query

min-redundancy 2 with 1 group: every group holds at least one full copy, so each group gets ceil(2/1) = 2 — actual total 2.

Only one copy per group is active; the other 1 indexed copy costs the same RAM and is filtered out of every query — instant failover is what it buys.

The three kinds of copy

Copy stateSub-databaseRAMDiskServes queries
ActiveReadyattributes + memory indexdocument store + disk indexyes
Indexed, not activeReadyattributes + memory indexdocument store + disk indexno — filtered out
Stored onlyNot Ready~45 B/doc bookkeeping + fast-access attributesdocument storeno — not indexed

An indexed-but-not-active copy costs the same RAM as an active one — instant failover is what it buys. A stored-only copy still keeps ~45 bytes per document in memory: the document meta store entry (~30 B) plus the document store's position mapping (~12 B).

The placement rules are taken from the Vespa source (see README). Simplifications: documents are placed individually rather than as buckets, every state shown is a completed steady state, and all nodes have equal capacity. Deeper reading: content cluster elasticity · proton sub-databases · serving scaling guide