~/talk

MongoDB size management

links:none on file
slides:none on file

Shows concrete steps to cut MongoDB footprint and what actually worked: migrate to WiredTiger with Snappy drops some collections from ~1 TB to ~100 GB (single-collection examples), but increases CPU and needs staged testing, replica priority changes and monitoring via MMS/New Relic. Use TTL index when a date field exists, or delete by ObjectId in controlled batches (3k–5k ids) for large history. To reclaim disk space run compact/repair (requires downtime and ~2x free space) or do a resync secondary rebuild by wiping a secondary and letting it replicate.

AI-written summary · about

  1. 0:00Intro
  2. 0:14Outline
  3. 0:37MongoDB Cluster Architecture
  4. 1:22Advantages To Reduce Data Size
  5. 1:58Migrate To Wired Tiger
  6. 3:27Wired Tiger VS MMAPv1
  7. 3:46Things to Consider Before Migration
  8. 7:05WiredTiger Migration Procedure
  9. 9:15Compression Ratio After Migration (Lise Wired Tigersnappy compressor)
  10. 10:10Set TTL Index On Timestamp Field
  11. 12:04TTL Index Notes
  12. 12:52Purge data Using _id field
  13. 13:47Sample script for Purge
  14. 14:23Purge Large Volume Collections
  15. 17:29Reclaim Deleted Space After Purging
  16. 19:18Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.