Install
$ agentstack add skill-celticht32-couchbase-skills-for-claude-ai-couchbase-performance-tuning ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Couchbase Performance Tuning
A skill for diagnosing and fixing performance problems at the cluster level — KV latency, throughput limits, disk I/O, compaction, connection saturation, and thread pool configuration.
Distinct from:
couchbase-sqlpp-tuning— SQL++ query tuning (index design, EXPLAIN plans, anti-patterns)couchbase-observability— what metrics to monitor and alert thresholdscouchbase-sizing— how much capacity to provision in the first place
If the question is "my queries are slow," go to couchbase-sqlpp-tuning. If the question is "my cluster is right-sized but everything is slow," this is the right skill.
When this skill applies
- "KV get/set latency is higher than expected"
- "Throughput isn't reaching the hardware's capability"
- "Compaction is killing performance"
- "We're hitting connection limits"
- "Rebalance is taking too long"
- "High CPU on Couchbase nodes but no obvious cause"
- "Disk I/O is spiking unpredictably"
- "DCP consumers are falling behind"
Pick the right reference
| Question | Read | |---|---| | "KV latency / throughput — diagnosis and tuning" | references/kv-tuning.md | | "Compaction — autocompaction settings, impact, tuning" | references/compaction.md | | "Connection limits, thread pools, OS-level tuning" | references/system-tuning.md |
The diagnosis sequence
Before tuning anything, locate the actual bottleneck:
- Is it memory? Check
ep_mem_used / ep_mem_high_wat. If > 85%, ejections are happening and reads go to disk. Fix: add RAM, add nodes, or reduce working set.
- Is it disk I/O? Check
ep_bg_fetched(reads going to disk) andep_diskqueue_drainvsep_diskqueue_fill. Fix: faster storage, Magma (if on 8.0), or reduce write rate.
- Is it CPU? Check per-node CPU utilization. Which service is consuming it? Query and Index are CPU-heavy; KV should be low-CPU unless you're near capacity. Fix: dedicated nodes per service, or add nodes.
- Is it network? Check
bytes_sentandbytes_receivedper node against the node's NIC capacity. Fix: higher-bandwidth instances, or reduce replication/XDCR traffic.
- Is it compaction? Check if high disk I/O correlates with compaction windows. Fix: adjust compaction schedule, thresholds, or parallelism.
- Is it connection count? Check
curr_connectionsper node. Fix: connection pooling in SDK, reduce max connections per pool.
Only tune after locating the bottleneck. Tuning the wrong thing wastes time and can make things worse.
Related skills
couchbase-sqlpp-tuning— query-level performance (EXPLAIN, indexes, CBO)couchbase-observability— key metrics definitions and alert thresholdscouchbase-magma— Magma storage engine characteristics that affect disk I/O patternscouchbase-sizing— if tuning can't solve the problem, the next step is adding capacity
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: celticht32
- Source: celticht32/Couchbase-Skills-for-Claude.ai
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.