Hot tenant overwhelms one partition
Detect: Tenant-specific latency diverges from fleet averages.
Recover: Apply quotas and repartition with controlled migration.
Scale vector retrieval by separating storage, indexing, query capacity, tenancy, and ingestion while measuring recall under real constraints.
Vector database scaling is a capacity and correctness problem across several dimensions: vector count, dimensionality, metadata size, query rate, update rate, and filter selectivity. Approximate nearest-neighbor indexes trade search work and memory for recall. Adding replicas may increase read capacity, while sharding changes data distribution and query fan-out.
Managed and self-operated systems expose different operational boundaries, so capacity planning must use the selected product’s behavior rather than assume interchangeable guarantees. Consistency, index readiness, deletion visibility, and metadata filtering affect application correctness. A successful upsert acknowledgment does not necessarily mean every subsequent search immediately sees the change.
A prototype uses representative vectors and metadata rather than a tiny unfiltered sample.
Production benchmarks recall and tail latency under concurrent reads, writes, and selective filters, then sets capacity and freshness objectives.
Enterprise scale introduces tenant placement, hot-partition handling, rebuild planning, disaster recovery, and cost models covering replicas, storage, and re-embedding.
Validate vectors and metadata and write versioned records idempotently.
Distribute vector and scalar data across storage and compute boundaries.
Provide search capacity with explicit health and index readiness.
Selects tenant partitions and merges results across required shards.
Tracks latency, recall samples, memory, ingestion lag, and hot partitions.
flowchart LR
S["Versioned source changes"] --> I["Ingestion workers"]
I --> A["Partition A"]
I --> B["Partition B"]
Q["Scoped query"] --> R["Tenant and shard router"]
R --> X["Read replica A"]
R --> Y["Read replica B"]
A --> X
B --> Y
X --> M["Merge candidates"]
Y --> MMeasure vector sizes, metadata cardinality, query shapes, and update frequency.
Align tenant isolation and expected access patterns while avoiding oversized hotspots.
Check dimensions, metric choice, and recall against an exact-search sample.
Route to relevant partitions and apply supported filters with bounded fan-out.
Add read replicas, rebalance partitions, or tune indexes according to observed pressure.
Create a new index version, validate it, and switch routing with a rollback path.
E-commerce · Illustrative enterprise scenario, not a reported customer outcome.
A marketplace assistant searches product specifications across many sellers and frequent catalog updates.
A few large sellers create hot partitions while promotions increase query volume and update traffic.
Maintain scoped retrieval quality without letting one seller consume the whole search tier.
Tenant-aware routing combines partition limits, read replicas, and versioned ingestion checkpoints.
If a new index revision lags or loses recall, routing returns to the previous validated revision.
Measure recall, p95 search latency, index visibility lag, and cost per workload class; raw vector count does not determine required capacity alone.
| Decision | Benefit | Cost |
|---|---|---|
| More replicas | Increase read capacity and availability. | Multiply memory and synchronization cost. |
| More shards | Distribute large datasets. | Increase fan-out, merging, and operational complexity. |
| Aggressive approximation | Reduces search work. | May lose relevant evidence, especially under selective filters. |
Detect: Tenant-specific latency diverges from fleet averages.
Recover: Apply quotas and repartition with controlled migration.
Detect: Writes fail or incompatible vectors coexist.
Recover: Use a separate versioned index and explicit routing migration.
Include real ACL and metadata predicates.
Identify the constrained subsystem first.
Build and validate a parallel index before switching.