Memory Presets
Multi-Tenant 10M Vectors Sharded With Qdrant mmap
Scale to 10,000,000 agent memories across thousands of customer workspaces using Qdrant on-disk mmap, int8 quantization, and 2-shard routing.
9.4 GB Hot Cache · 76 GB NVMe · Tenant Shard Keys · 32 GB HF
Keeping Active Tenants Fast While Cold Tenants Rest on NVMe
Multi-tenant SaaS memory stores follow a power-law distribution: 15% of workspaces generate 85% of daily queries. With Qdrant mmap enabled on High Frequency NVMe, Linux keeps active tenant pages warm in RAM while cold workspaces occupy zero resident memory.
Avoiding Cross-Shard Fanout Latency
Configure Qdrant custom sharding by organization_id so each tenant search hits a single shard instead of scattering across all four shards.
Measured Thresholds & Vector Stack Parameters
| Parameter / Setting | Recommended Value | Operational Reason |
|---|---|---|
| Storage Mode | on_disk: true + memmap_threshold_kb: 20000 | Maps cold tenant segments directly from NVMe instead of RAM |
| Quantization | scalar int8 (always_ram: false) | Pages quantized vectors lazily per active tenant cluster |
| Sharding Strategy | shard_number: 4, custom tenant key | Routes queries to single shard per workspace |
| Host Match | Vultr High Frequency 32 GB NVMe | 1 TB NVMe absorbs fp32 rescore originals and WAL snapshots |