Database / Google Spanner Database Interview questions
Explain the lifecycle of a split in Spanner?
A split begins as part of a larger key range, typically the entire table when it's small, and evolves as data volume and traffic change over time.
As a split grows past internal size thresholds, or its traffic concentrates load unevenly, Spanner's placement driver splits it into two or more smaller ranges, each getting its own Paxos group of replicas. The driver continuously monitors CPU and storage metrics per split and can move a split's replicas to different zones or servers to rebalance the cluster, all without any application-visible downtime, since reads and writes are redirected transparently as splits move. Splits can also merge back together if data is deleted and a range becomes small and cold, keeping split count proportional to actual load rather than growing indefinitely.
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...
