RocksDB & Port 25 Tuning
Estimating Tantivy Full-Text Search Disk & Merge Overhead
Model exact NVMe storage consumption for Stalwart Tantivy inverted indexes across 10 GB to 1 TB corporate mail archives.
~14% of Raw Mail Size · +25% Compaction Headroom · <15ms Search
How Tantivy Replaces Heavy JVM Solr Containers
Conventional Dovecot setups require Apache Solr or Elasticsearch in a separate JVM eating 2+ GB of RAM. Tantivy runs inside Stalwart in Rust, mapping immutable inverted index segments directly from NVMe with under 350 MB RSS for 200 GB of mail.
Planning NVMe Headroom for Segment Merges
Because Tantivy merges smaller search segments into larger compacted files before unlinking old ones, always keep at least 20% free NVMe capacity above steady-state blob and index totals.
Measured Thresholds & Stalwart Configuration Parameters
| Raw Mail Archive | Tantivy Index Steady Size | Peak During Segment Merge |
|---|---|---|
| 50 GB (25 Users x 2 GB) | 7.0 GB NVMe | 8.8 GB NVMe |
| 200 GB (50 Users x 4 GB) | 28.0 GB NVMe | 35.0 GB NVMe |
| 1,000 GB (Archive Cluster) | 140.0 GB NVMe | 175.0 GB NVMe |