Add RocksDB memory tuning to CI pipeline
Patches rocksdb-native during deploy to reduce memory from ~620MB to ~420MB:
- maxWriteBufferNumber: 2→1 (saves ~192MB across 3 column families)
- maxOpenFiles: -1→256 (saves ~10-20MB file descriptor overhead)
Safe for chat workload: 17 bytes/sec steady-state write rate means
write buffers take ~43 days to fill. RocksDB's own OptimizeForSmallDb()
uses even smaller values. Configurable if scaling needs change.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1e2b2ea4c14cf88843fe1d2f2aaf3dfbe3f09b67
by plankatron <fleeky@gmail.com> · 2026-02-19T15:05:44.000Z