Docs Navigation
Docs/Operations & Optimization

Storage & Cold Storage Setup

Configuring Cloud Object Storage offloading, TTL workers, and background vacuuming.

Last Updated: August 2026

Setting Up Postgres & MongoDB Cold Storage on Kolmos Cloud Storage

Offload historical database segments to Kolmos Cloud Storage to pay $0 for egress and $0.015/GB/month for storage:

bashKOLMOS Reference
# Environment configuration for Cloud Storage Object Storage offloading:
export KOLMOS_STORAGE_TIER=hybrid
export KOLMOS_S3_ENDPOINT=https://s3.kolmos.dev
export KOLMOS_S3_BUCKET=kolmos-cold-storage
export KOLMOS_S3_ACCESS_KEY_ID=<your-access-key>
export KOLMOS_S3_SECRET_ACCESS_KEY=<your-secret-key>

# Run container with cold storage offloading enabled:
docker run -d --env-file .env -v ./data:/data kolmos/kolmos:latest

Background Vacuuming & TTL Workers

KOLMOS automatically runs two background maintenance processes: - **Vacuum Worker:** Runs every 10 minutes to compact deleted tombstone rows and reclaim disk space. - **TTL Worker:** Scans collections with `expireAfterSeconds` index specs every 60 seconds to purge expired documents.