TL;DR
Taurus is a new cloud-native relational database system that tackles the challenges of cost, availability, and performance in cloud environments. By separating compute and storage layers and employing novel replication strategies for logs and data, Taurus achieves significantly higher write availability and performance compared to existing cloud databases, all while reducing costs.
What Problem Does This Paper Address?
The increasing adoption of cloud-based Database as a Service (DBaaS) offerings presents a dilemma for organizations. While cloud databases promise improved availability and scalability at a lower cost than on-premises solutions, traditional approaches often fall short. Many cloud DBaaS offerings simply run monolithic database software on virtual machines, leading to inefficiencies in resource utilization, high costs (especially for underutilized capacity), and limitations in scalability and performance. Existing cloud-native architectures like Aurora and Socrates have made strides by separating compute and storage, but they still face challenges with availability (e.g., quorum-based replication's reliance on multiple nodes being online) and performance bottlenecks. The core problem Taurus addresses is how to build a cloud database that is simultaneously highly available, performant, and cost-effective, overcoming the limitations of both traditional and existing cloud-native designs.
Methods
Taurus introduces several key architectural innovations:
- Compute and Storage Separation: Similar to Aurora and Socrates, Taurus separates compute (database front-end) and storage layers. This allows for independent scaling and optimization of each component.
- Dual-Layered Storage: Taurus further refines this separation by dividing its storage layer into two distinct components: Log Stores for durable logging of transactions and Page Stores for storing database pages. This allows for specialized replication and consistency mechanisms for each.
- Novel Replication and Recovery Algorithms:
- Log Stores: Log records are replicated with a 3-way replication factor, ensuring durability. Writes are acknowledged once all three replicas confirm, but the system remains available for writes as long as at least three healthy hosts are available in a large pool of Log Stores, leading to near 100% write availability against uncorrelated failures.
- Page Stores: Page data is replicated with a 3-way replication factor for durability. Taurus uses a novel approach that decouples page availability from quorum requirements, allowing for higher availability for reads. It leverages eventual consistency for page replicas, combined with versioning and logical sequence numbers (LSNs) to maintain strong consistency where needed.
- Append-Only Storage: Page Stores utilize append-only storage for writes, which significantly improves write performance (2-5x), reduces device wear, and simplifies snapshotting.
- Optimized Network Paths: Critical operations like log writes and page reads are designed to require at most one network hop, minimizing latency.
- Read Replica Architecture: Read replicas can fetch log records directly from Log Stores, bypassing the master and preventing the master from becoming a bottleneck, thus enabling better scalability for read workloads.
Datasets
Not discussed in the paper. The evaluation uses standard benchmarks like SysBench (read-only, write-only) and Percona TPC-C, with varying database sizes (1GB, 1TB, 10GB, 100GB).
Key Insights and Ideas
- Decoupling Log and Page Durability/Availability: The most significant insight is that logs and data pages have different access patterns and requirements. Treating them separately with tailored replication and consistency strategies is key to achieving both high availability and performance.
- Append-Only for Performance and Longevity: The decision to use append-only storage for pages is a powerful lever for boosting write throughput and reducing wear on storage media, directly impacting cost-effectiveness.
- Network Hop Minimization: Designing critical paths to involve only one network hop is crucial for achieving low latency in distributed systems.
- Read Replica Efficiency: Allowing read replicas to pull data from Log Stores instead of relying solely on the master is a smart way to scale read operations without burdening the master.
- Availability without Quorum Overhead: Taurus demonstrates that high availability can be achieved without the strict quorum requirements of systems like Aurora, which can be a bottleneck.
Key Results
- Write Availability: Taurus achieves nearly 100% write availability against uncorrelated storage failures.
- Performance:
- Taurus achieves up to 200% higher throughput than MySQL 8.0 with local storage.
- It outperforms Amazon Aurora by over 50% in write-only benchmarks and reaches 160% in TPC-C.
- Taurus shows significant improvements over Microsoft Socrates, with up to 200% better performance in write-heavy workloads.
- Read Replica Lag: Taurus maintains replica lag under 20ms even under high load, and under 11ms even with the master executing 200,000 writes per second.
- Scalability: The system is designed to scale to 128TB and supports thousands of Page Stores.
Limitations and Future Work
- Limitations:
- The paper acknowledges that while Taurus's architecture is designed to minimize network latency, there's still an inherent latency cost associated with separating compute and storage, particularly for read operations on larger databases (e.g., 5ms latency for 1TB TPC-C reads).
- The comparison with Socrates is somewhat limited by the lack of detailed hardware information for Socrates.
- Future Work:
- Moving more tasks from the compute layer to the more scalable storage layer.
- Supporting multi-master capabilities.
- Leveraging newer hardware advancements like storage-class memory and RDMA.
Summary updated