NoSQL Database Characteristics and Benchmark System

Kota Tsuyuzaki, Makoto OnizukaNTT 2012

Abstract

The NTT Software Innovation Center has been researching and developing NoSQL (Not Only SQL) databases as storage platforms for big data. In this article, we discuss the characteristics of NoSQL databases and their benchmark system. We also report the results of applying the benchmark to MongoDB, a typical example of a NoSQL database.

Introduction

Traditional Relational Database Management Systems (RDBMS) often struggle with the volume and variety of modern "Big Data." NoSQL databases address these challenges through horizontal scaling (scale-out) and flexible schemas. However, most performance evaluations focus on static states. In production environments, cloud clusters are dynamic: nodes are added to handle peak loads or removed due to hardware failures. This research addresses the gap in understanding how NoSQL performance fluctuates during these critical transitions, specifically the "instability" period when massive data migration occurs alongside active user requests.

Methodology

To evaluate the core promises of NoSQL—scale-out, replication, and flexible structures—we developed a specialized benchmarking system.

Architecture of the benchmarking system

Key technical features include:

  • Distributed Load Generation: The benchmark software runs across the cluster to avoid becoming a bottleneck.
  • Automated Cluster Manipulation: The system automatically adds or stops nodes during testing to observe real-time performance impacts.
  • Enhanced YCSB: Built on the Yahoo! Cloud Serving Benchmark (YCSB), our implementation includes logic for data consistency checks and automated machine lifecycle management.

The study evaluates MongoDB using two synthetic datasets: a Small Dataset that fits within physical cache memory, and a Large Dataset that exceeds cache, forcing disk I/O (swapping).

Analysis and Key Results

The benchmarking revealed that performance is heavily dependent on memory management. While data fitting in RAM (the "Cache Trap") shows stable performance, real-world big data scenarios are dominated by disk I/O costs.

Elasticity and Node Addition

Adding a machine is intended to increase performance, but it often incurs a "performance tax." Immediately after adding a node, throughput can drop or become unstable as the system rebalances data. For small datasets, stabilization occurs within minutes. However, for large datasets, the migration phase causes prolonged instability due to heavy disk I/O.

Availability and Node Failure

When a node fails, the system does not always recover seamlessly. In the case of the large dataset, performance failed to return to previous levels after a node was stopped, lingering at approximately 70% of ideal performance. This is primarily due to the "replica-read" bottleneck, where remaining nodes experience a massive spike in disk access to serve replicated data.

Throughput impact on a large dataset after stopping a physical machine

Conclusion

The findings suggest that "elastic" scaling in NoSQL databases like MongoDB may not be fast enough to react to sudden, short-lived traffic spikes due to significant data migration costs. Future work will focus on refining benchmarking techniques to better estimate the hardware configurations required to maintain stability during scaling events, accounting for the trade-offs between performance and data features.

Summary updated

BibTeX
@inproceedings{tsuyuzaki2012nosql,
  author = {Kota Tsuyuzaki and Makoto Onizuka},
  title = {{NoSQL Database Characteristics and Benchmark System}},
  booktitle = {NTT},
  year = {2012},
  doi = {10.53829/ntr201212fa3},
}
Figure