Database / ScyllaDB Interview questions
How do you troubleshoot compaction backlog in ScyllaDB?
- Check pending compaction metrics in the Monitoring Stack - a steadily growing backlog means compaction can't keep pace with incoming writes.
- Review the compaction strategy fit - STCS under heavy, uneven write patterns can lag; LCS or ICS may handle the shape of the workload better.
- Check disk I/O saturation - compaction is I/O-heavy, and a disk that's already near its throughput limit from foreground traffic will starve compaction.
- Look for oversized partitions - a few very large partitions can dominate compaction time disproportionately.
- Review compaction throughput throttling settings - an overly conservative bandwidth cap can be safe for foreground latency but let backlog build up over time; it may need raising if the cluster has I/O headroom.
- Check for repair-driven compaction spikes - large repairs stream a lot of new data that then needs compacting, so backlog can correlate with a recent repair window.
A persistent backlog usually means the table is fundamentally under-provisioned for its write rate rather than a one-time blip, so alongside these checks it's worth evaluating whether the table needs more nodes or a schema change (like reducing tombstone-heavy delete patterns) rather than only tuning compaction settings.
Invest now in Acorns!!! 🚀
Join Acorns and get your $5 bonus!
Acorns is a micro-investing app that automatically invests your "spare change" from daily purchases into diversified, expert-built portfolios of ETFs. It is designed for beginners, allowing you to start investing with as little as $5. The service automates saving and investing. Disclosure: I may receive a referral bonus.
Invest now!!! Get Free equity stock (US, UK only)!
Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.
The Robinhood app makes it easy to trade stocks, crypto and more.
Webull! Receive free stock by signing up using the link: Webull signup.
More Related questions...
