Skip to main content
STALWART JMAPRELAY FOUNDRY // JMAP + IMAP + SMTP RUST MAIL SIZING STUDIO ROCKSDB + TANTIVY FTS | VULTR PORT 25 PTR | INTERSERVER STORAGE SLICE | 2026-10-29
StalwartMailVPS
StalwartMailVPS Affiliate Notice: Outbound /go/ links marked rel="sponsored" may earn a partner commission at zero added cost (Affiliate Policy).
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

Estimating Tantivy Full-Text Search Disk & Merge Overhead
Mail engineering baseline verified 2026-10-29 by JMAPRelay Foundry.

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 ArchiveTantivy Index Steady SizePeak During Segment Merge
50 GB (25 Users x 2 GB)7.0 GB NVMe8.8 GB NVMe
200 GB (50 Users x 4 GB)28.0 GB NVMe35.0 GB NVMe
1,000 GB (Archive Cluster)140.0 GB NVMe175.0 GB NVMe
~14% of Raw Mail Size · +25% Compaction Headroom · <15ms Search Deploy Vultr NVMeInterServer Slice