← ClaudeAtlas

couchbase-magmalisted

Understand and tune the Magma storage engine in Couchbase. Use whenever the user asks about Magma, Magma storage engine, Couchbase storage backend, couchstore vs Magma, 128 vBuckets vs 1024 vBuckets, Magma compaction, Magma memory requirements, Magma disk layout, storage engine selection, when to use Magma vs couchstore, storageBackend bucket setting, numVBuckets bucket setting, or 'which storage engine should I use.' Distinct from couchbase-sizing (which has a brief Magma section in disk.md) — this skill covers Magma behavior, tradeoffs, and tuning in depth. Use proactively when the user is creating new buckets on 8.0 or is investigating storage-related performance issues.
celticht32/Couchbase-Skills-for-Claude.ai · ★ 1 · AI & Automation · score 75
Install: claude install-skill celticht32/Couchbase-Skills-for-Claude.ai
# Couchbase Magma Storage Engine A skill for *understanding and tuning* the Magma storage engine — Couchbase's LSM-tree-based storage backend optimized for large datasets per node. ## When this skill applies - "Should I use Magma or couchstore for my bucket?" - "What changed with Magma being the default in 8.0?" - "What does 128 vBuckets mean vs 1024?" - "How does Magma handle compaction differently?" - "How much memory does Magma need?" - "My write performance is different after upgrading to 8.0" - "How do I set the storage engine when creating a bucket?" ## Magma vs couchstore at a glance | | Couchstore (classic) | Magma | |---|---|---| | **Architecture** | B-tree per vBucket | LSM-tree per vBucket | | **Default vBuckets** | 1024 | 128 (8.0 default) | | **RAM per node minimum** | 256 MB (per bucket) | 100 MB (128 vBucket Magma) | | **Optimized for** | Smaller datasets, high read ratio | Large datasets (>100M docs/node), high write rate | | **Write performance** | Good at low-moderate write rates | Better at sustained high write rates (LSM absorbs bursts) | | **Read performance** | Excellent (direct B-tree lookup) | Good (may require multi-level lookup on cold data) | | **Compaction** | Explicit compaction cycle | Continuous background compaction (no manual trigger needed) | | **Disk space efficiency** | Good after compaction | Good continuously (LSM merges in background) | | **Available** | CE and EE | EE only | ## When to use Magma Use Magma when: - Dataset exceeds