Quanqing Xu, Mingqiang Zhuang, Chuanhui Yang, Quanwei Wan, Fusheng Han, Fanyu Kong, Hao Liu, Hu Xu, Junyu Ye
8 min
Abstract
Although an increasing number of databases now embrace shared-storage architectures, current storage-disaggregated systems have yet to strike an optimal balance between cost and performance. In high-concurrency read/write scenarios, B+-tree-based shared storage struggles to efficiently absorb frequent in-place updates. Existing LSM-tree-backed disaggregated storage designs are hindered by the intricate implementation of cross-node shared-log mechanisms, where no satisfactory solution yet exists. This paper presents OceanBase Bacchus, an LSM-tree architecture tailored for object storage provided by cloud vendors. The system sustains high-performance reads and writes while rendering compute nodes stateless through shared service-oriented PALF (Paxos-backed Append-only Log File system) logging and asynchronous background services. We employ a Shared Block Cache Service to flexibly utilize cache resources. Our design places log synchronization into a shared service, providing a novel solution for log sharing in storage-compute-separated databases. The architecture decouples functionality across modules, enabling elastic scaling where compute, cache, and storage resources can be resized rapidly and independently. Through experimental evaluation using multiple benchmark tests, including SysBench and TPC-H, we confirm that OceanBase Bacchus achieves performance comparable to or superior to that of HBase in OLTP scenarios and significantly outperforms StarRocks in OLAP workloads. Leveraging Bacchus's support for multi-cloud deployment and consistent performance, we not only retain high availability and competitive performance but also achieve substantial reductions in storage costs by 59% in OLTP scenarios and 89% in OLAP scenarios.
Sam: Data starts in fast memory, then gets dumped into unchangeable files on storage as it fills up. Over time, lots of these small files build up, making searches slow because the system has to check many places. To fix that, it merges small files into bigger, sorted ones—like combining scattered notes into a single organized binder. The paper calls these files SSTables, and the merging process compaction.
Alex: Right, so merging happens in the background. But with compute and storage split, how do nodes across the system stay in sync during that?
Sam: A central service spots when merges are needed and schedules them, writing tasks to the shared log. Nodes in the storage layer do the heavy merging work, creating a new big file and updating the log with its details. Then compute nodes replay the log to load and check the new file matches everywhere using simple math sums called checksums. This offloads the compute-intensive work from busy query nodes, keeping foreground tasks smooth.
Alex: Huh—so storage handles the cleanup, and logs ensure everyone sees the same tidy version without copying files everywhere.
Sam: Exactly. For old files no longer needed, they use a similar leader system per log stream to safely delete them. A coordinator gets a short-term permission slip via the log, checks no one's using the data, then marks and removes it—preventing races where nodes clash on deletes. This keeps storage lean without risking live data.
Alex: Matching HBase performance is notable—since that's a strong baseline. How does the paper back that up with actual tests?
Sam: They ran write-heavy tests on setups with similar hardware, pushing thousands of operations per second. OceanBase Bacchus held steady throughput close to HBase's, without the sudden drops others see when data piles up. This happens because the logging and merging keep writes flowing smoothly—no stalls from conflicts or overload. In read tests with half a billion records, Bacchus topped per-node speed better than most HBase versions on the same gear.
Alex: Huh—that lines up with the elastic scaling. Does it hold for analytical queries too, not just transactions?
Sam: Yes, on standard OLAP benchmarks like TPC-H, Bacchus finished queries about 50% faster overall than StarRocks, a top analytical system. Production traces show high cache effectiveness too, keeping OLTP hits near 100% to balance speed and cost. The paper suggests this comes from the disaggregated design letting compute scale without storage bottlenecks.
Alex: So it doesn't just cut costs—it delivers comparable or better speed across workloads. Why does this setup favor LSM-trees over something like B+-trees that other databases use?
Sam: B+-trees work like a sorted phone book where you update entries right in place, jumping around pages—which causes clashes and slowdowns when many computers write at once, like too many kids editing the same shared list. LSM-trees instead collect changes in a temporary notepad first, then dump them as new pages in order, avoiding those jumps and fights. That's why they're better for busy write scenarios on slow storage like object buckets.
Alex: Okay, so sequential dumps fit object storage's add-only style—no overwriting needed. How do the read-write and read-only nodes play into that?
Sam: Read-write nodes take incoming changes, jot them in a quick log, and push to the shared service—like clerks logging orders before filing. Read-only nodes then grab those logs and replay them to build matching data views, ensuring everyone sees the same facts without extra copies. This split lets writes stay fast while reads scale out cheaply, and the shared log keeps them in sync.
Alex: So the disaggregation and log coordination open up real elastic scaling, even against something solid like TiDB. But there must be some trade-offs to leaning so heavily on shared services like that logging setup.
Sam: Fair point. One limit is that cloud object storage has caps on how many reads or writes per second it can handle—think of it like a highway with a speed limit; heavy traffic can still cause backups if workloads spike too hard. For analytical queries pulling big data scans, nodes sometimes read straight from storage instead of caches, which trades a bit more wait time for those lower costs.
Alex: Okay, so potential slowdowns on storage limits or scans. Does the evidence suggest those outweigh the gains?
Sam: Not overall—the tests show it holds up well within typical cloud limits, matching HBase on transactions while cutting costs substantially. The paper positions this as a balanced cloud-native design: service-oriented logging cuts log I/O on object storage, background tasks protect foreground speed, and the whole disaggregated setup boosts resource use. The evidence points to meaningful progress in cost-effective scaling for both transactions and analysis.
Alex: That's a grounded step forward—practical for e-commerce peaks without the bill shock, limitations noted.
Sam: Thanks for the discussion. Thanks for listening to ResearchPod.