Abstract
The proliferation of Internet of Things (IoT) devices has led to a massive influx of time-series data, often exceeding the bandwidth and cost constraints of cloud-based processing. VergeDB is a novel edge-based database designed to address this "fire hose" of data by treating machine learning and complex analytics as primary objectives. Central to VergeDB is the concept of task-aware compression, which adaptively reduces data volume while preserving the specific features required for downstream tasks such as classification, regression, and anomaly detection. This paper details the architecture of VergeDB and introduces specialized compression techniques like SplitDouble and C-GRAIL, demonstrating significant improvements in filtering speed and analytical accuracy over traditional methods.
Introduction
The Internet of Things (IoT) is projected to generate zettabytes of time-series data. Traditional data management strategies—either transmitting all raw data to the cloud or applying generic, task-agnostic compression at the edge—face significant hurdles. Lossless compression (e.g., GZip) incurs a heavy "decompression tax" before analysis, while lossy methods (e.g., uniform downsampling) often discard critical patterns needed for accurate machine learning models. VergeDB bridges this gap by providing a storage engine that optimizes data reduction based on available edge resources and the specific requirements of analytical models.
VergeDB Architecture
VergeDB is implemented as a storage engine in Rust, managing the entire data lifecycle from ingestion to analysis. Its architecture is designed to support high-throughput ingestion and in-situ analytics.
As shown in the architecture diagram, the system includes components for resource control, query execution, and a multi-threaded compression pipeline. Data flows from remote clients into buffered signals, which are then processed through an uncompressed buffer into a compressed buffer for storage in RocksDB. This pipeline allows VergeDB to maintain high ingestion rates while preparing data for task-specific queries.
Methods
VergeDB employs several innovative techniques to achieve task-aware efficiency:
- Task-Aware Selection: The system dynamically selects compression algorithms based on the analytical goal (e.g., trend prediction vs. spike detection).
- SplitDouble (Precision-Aware Compression): This technique decomposes floating-point numbers into integer and decimal components. By using bit-packing and delta encoding, it enables range filtering directly on compressed data without the need for full decompression.
- Block Subsampling: Inspired by time-series bootstrapping, this method captures local trends and "shapes" more effectively than uniform sampling, which is crucial for autoregressive modeling.
- C-GRAIL (Clustered Similarity-Preserving Representations): This representation learning approach compresses time series into compact vectors that preserve similarity, facilitating efficient pattern matching and similarity search.
Key Results
Evaluation across diverse datasets—including power grid events, CPU usage, and financial data—highlights VergeDB's performance:
- Filtering Speed: The SplitDouble method achieves range-filtering throughput of up to 1200 MB/s, significantly outperforming industry standards like Facebook’s Gorilla or GZip.
- Model Accuracy: In autoregressive tasks, VergeDB’s block subsampling achieved less than 5% error using only 0.35% of the original data, outperforming standard uniform sampling.
- Ingestion Throughput: The system maintains an ingestion rate of over 1.8 million points per second on a single thread while compressing nearly 100% of incoming segments.
- Similarity Search: The C-GRAIL method matches the speed of the fastest existing quantization methods while providing significantly higher accuracy for retrieving "nearest neighbor" time series.
Conclusion and Future Work
VergeDB demonstrates that task-aware compression can significantly enhance the utility of edge-based IoT analytics. By moving away from the "sensor network" mindset and leveraging the increasing capabilities of modern edge devices, VergeDB provides a scalable solution for real-time, high-performance time-series data management.
Future work will focus on developing an automated controller for real-time resource-based algorithm selection, further optimizing raw compression throughput, and expanding SQL support to provide a feature-complete interface for edge queries.
Summary updated