Research in distributed systems particularly by applying formal methods to database design and performance.
We’re committed to improving the correctness, reliability, and efficiency of distributed systems using principled approaches and lightweight formal modeling. We multiply our impact by disseminating research and technology throughout MongoDB and the industry.
Precisely synchronized clocks, advanced networking, and other technologies are now widely available in the cloud. We research the use of these modern technologies to improve the consistency and performance of distributed protocols.
Formal methods and automated reasoning techniques allow for mathematical guarantees of correctness and durability for distributed protocols. Formal modeling also enables model-based verification approaches for verifying complex implementations against high-level abstract specifications.
Minor faults in complex systems can trigger cascading failures, leading to prolonged outages and degraded performance. We study fault-tolerance challenges, including metastable failures, to enhance system resilience and reliability.
LeaseGuard is a novel, robust Raft leader-lease protocol that ensures strongly consistent reads with zero network overhead while significantly improving availability during leader elections.
In this paper, we describe our experience using modular formal specification techniques in the design and verification of MongoDB’s distributed transactions protocol. We formally specify the protocol and its interface with the underlying storage layer, allowing us to verify high-level protocol properties while also formalizing the contract between these two components. This modular approach also enables an automated, model-based verification technique for testing conformance of the WiredTiger storage implementation to this interface. We also formally analyze permissiveness–how well a transaction protocol maximizes concurrency within a given isolation level–a property not previously examined.
In this work, we present a formal, machine-checked TLA+ safety proof of the logless dynamic reconfiguration protocol used in the MongoDB replication system. This proof is formalized in the TLA+ proof system (TLAPS) and constitutes the first machine-checked safety proof of a Raft-based reconfiguration protocol.
In this paper, we present a novel dynamic reconfiguration protocol for the MongoDB replication system. The protocol utilizes a logless approach to managing configuration state and decouples the processing of configuration changes from the main database operation log. We provide a safety proof of the protocol, along with a formal specification in TLA+.
In this paper, we explore model-based testing as a tool for ensuring specification-implementation conformance in complex components of MongoDB. We attempted two case studies: model-based trace-checking (MBTC) in the MongoDB server’s replication protocol and model-based test-case generation (MBTCG) in MongoDB Realm Sync’s operational transformation algorithm. We analyze why one technique succeeded and the other failed and advise future implementers making similar attempts at model-based testing.