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.
Alex: Welcome to another episode of ResearchPod.
Sam: Today we're looking at a paper called "OceanBase Bacchus: a High-Performance and Scalable Cloud-Native Shared Storage Architecture for Multi-Cloud." It describes a new way to build database storage that uses cheap cloud object storage—like big, low-cost buckets for files from services such as AWS S3—while handling fast, high-volume transactions without slowing down. The central puzzle is why databases can't easily switch to this cheap storage for quick online transaction processing, or OLTP, which is like processing thousands of rapid customer orders in real time.
Alex: So this paper is tackling why current shared storage setups struggle with fast writes on cheap object storage? And the core problem is coordinating logs across multiple computers?
Sam: Yes, exactly. In shared storage, different compute nodes—think of them as the brains handling queries—need to agree on changes without clashing. Traditional setups using B+-trees run into write conflicts from random updates, like multiple people trying to edit the same page in a shared notebook. LSM-trees are better for writes because they batch changes into sequential logs, like writing a continuous diary instead of jumping around. But no good solution existed for sharing those logs across nodes without high latency or redundancy.
Alex: Okay, so the bottleneck is this log-sharing issue blocking LSM-trees from cheap storage. How does Bacchus solve it?
Sam: They set up a dedicated service just for logging, separate from the compute nodes—like a central post office that handles all the mail sorting and delivery so the workers don't have to. Data gets split into separate streams, kind of like different mailboxes, and only one node writes to each stream at a time, avoiding fights over who gets to add what next. It uses a voting system among servers to agree on the exact order of log entries, ensuring no data gets lost even if some fail.
Alex: Right, so each stream has a single leader writer. But how does that prevent delays when lots of nodes are trying to write at once?
Sam: The leaders for different streams can write concurrently since they're handling separate partitions—no overlap means no waiting. Logs first go to a fast local cache on each leader for quick transactions, then get archived to the shared service in batches, grouping several changes together to cut down on back-and-forth chatter between servers. This pipelining lets new logs start while old ones finish committing, keeping latency low. The paper notes this achieves no data loss—called RPO zero—comparable to systems like HBase, but at much lower storage costs.
Alex: Okay, so the sharding and batching make writes fast on cheap object storage without conflicts. That ties back to why LSM-trees fit well here—they batch changes anyway. With all these logs turning into stacked data files on shared storage, how do they keep things organized without the files piling up and slowing reads?
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.