[Paper Review] NDBench: Benchmarking Microservices at Scale
NDBench is a cloud-native, pluggable benchmarking framework developed by Netflix for continuous, dynamic performance testing of microservices and data stores at scale. It enables runtime configuration changes, long-duration testing under failure conditions, and integration with production-like environments, uncovering issues like memory leaks and replication bottlenecks in real-world scenarios.
Software vendors often report performance numbers for the sweet spot or running on specialized hardware with specific workload parameters and without realistic failures. Accurate benchmarks at the persistence layer are crucial, as failures may cause unrecoverable errors such as data loss, inconsistency or corruption. To accurately evaluate data stores and other microservices at Netflix, we developed Netflix Data Benchmark (NDBench), a Cloud benchmark tool. It can be deployed in a loosely-coupled fashion with the ability to dynamically change the benchmark parameters at runtime so we can rapidly iterate on different tests and failure modes. NDBench offers pluggable patterns and loads, support for pluggable client APIs, and was designed to run continually. This design enabled us to test long-running maintenance jobs that may affect the performance, test numerous different systems under adverse conditions, and uncover long-term issues like memory leaks or heap pressure.
Motivation & Objective
- Address the lack of realistic, long-running performance benchmarks for microservices and data stores under failure conditions.
- Enable continuous, dynamic benchmarking with runtime configuration changes to simulate real-world failure modes and system stress.
- Support integration with Netflix’s cloud-native stack (e.g., Eureka, Archaius, Spectator) for production-like testing.
- Provide a unified, extensible framework for testing diverse data stores and microservices, including in-house systems like EVCache and Dynomite.
- Facilitate pre-production validation of data store upgrades and system configurations through automated, repeatable testing pipelines.
Proposed method
- Design a pluggable architecture supporting multiple client APIs and data store types, enabling consistent benchmarking across diverse systems.
- Implement dynamic runtime configuration updates to allow real-time workload and parameter changes during active benchmarking.
- Integrate with Netflix’s cloud ecosystem (Eureka for service discovery, Archaius for configuration, Spectator for metrics) for production-grade observability.
- Deploy NDBench as a distributed, continuously running benchmarking system capable of simulating long-running maintenance tasks like anti-entropy repairs.
- Build a centralized web UI for cluster control, workload monitoring, and real-time visualization of latency and throughput metrics.
- Support infinite horizon testing by avoiding finite benchmark durations, enabling detection of long-term issues like memory leaks or heap pressure.
Experimental results
Research questions
- RQ1How can a benchmarking framework support dynamic configuration changes during active testing to simulate real-world failure scenarios?
- RQ2What architectural patterns enable continuous, long-running performance testing of microservices and data stores under realistic failure conditions?
- RQ3How can a benchmarking tool be integrated into a cloud-native, microservices-based production environment without disrupting operations?
- RQ4What are the performance implications of long-running maintenance operations (e.g., compaction, repair) on distributed data stores under varying workloads?
- RQ5How can a unified benchmarking framework support diverse data stores and microservices with pluggable client APIs and consistent metrics collection?
Key findings
- NDBench successfully identified performance regressions and long-term issues such as memory leaks and heap pressure during extended benchmarking runs.
- The framework reduced the time to detect system instability by enabling real-time configuration changes and continuous monitoring during failure simulations.
- Integration with Netflix’s cloud stack (e.g., Spectator, Eureka) allowed for production-like observability and seamless deployment across regions.
- NDBench’s dynamic configuration capability enabled the detection of latency degradation during system maintenance, such as a 50th percentile latency drop from 3.98ms to 0.79ms when using DAX with DynamoDB.
- The tool supported automated testing of new data store deployments and system upgrades, reducing pre-production risk and improving release confidence.
- The centralized UI enabled efficient management of multiple benchmark instances and real-time visualization of performance metrics across different workloads and failure modes.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.