Abstract
In the Internet of Things (IoT) landscape, data is predominantly generated at the edge. While edge computing offers significant advantages in terms of latency and bandwidth, edge devices often encounter severe performance bottlenecks due to limited CPU and I/O resources. This paper presents a novel Cloud-Edge-Device (CED) collaborative query execution framework centered on a specialized Collaborative Scan Operator. By implementing a lightweight delta state synchronization protocol, the framework enables seamless query migration from edge nodes to the cloud when local resources are saturated. Experimental results using Apache IoTDB demonstrate that this approach reduces query latency by 62%–79% during resource contention, significantly improving the scalability of IoT data management systems.
Introduction
The rapid growth of IoT has led to a paradigm shift where data processing is increasingly pushed to the "edge"—sensors, gateways, and local servers. This proximity to the data source reduces the need for massive data transfers to central clouds. However, edge nodes are typically resource-constrained, often relying on limited CPU cores and slower mechanical storage. When multiple complex queries are executed concurrently, these nodes suffer from I/O and CPU contention, leading to a "bottleneck" effect that degrades system responsiveness.
Traditional architectures treat the cloud and edge as isolated silos. If an edge node becomes overwhelmed, existing systems lack the mechanism to dynamically "hand off" a partially completed query to the cloud without either restarting the query or incurring prohibitive data transfer overhead. This paper addresses these gaps by proposing a coordinated data management and cross-tier switching mechanism.
Proposed Methodology: The Collaborative Scan Operator
The core contribution of this work is the Collaborative Scan Operator, designed to function within a Volcano-style iterator model common in time-series databases. Since the scan operator is the leaf node of the query execution plan, its performance directly dictates the throughput of the entire pipeline.
System Architecture
The framework consists of several integrated components that facilitate dynamic query migration:
- Elastic Load Scheduling Engine: This component acts as a real-time monitor for edge resource utilization. When resource consumption exceeds a predefined threshold, the engine prepares a "migration package" to offload the query to the cloud.
- Delta State Synchronization Protocol: To minimize migration overhead, the authors developed a protocol that only transmits the "delta"—the current execution state and a Logical Index. This logical index maps physical data units (such as Pages and Chunks) to equivalent data offsets, allowing the cloud to resume the scan from a specific breakpoint without the need to reparse complex metadata.
- Asynchronous Delta Streaming Pipe: To ensure the cloud cache remains consistent with the edge storage, a background process continuously synchronizes data modifications (inserts and deletes) using a Least Recently Used (LRU) policy.
Adaptive Transmission Modes
The system further optimizes performance by choosing between two transmission modes based on the query type:
- Block-streaming: Utilized for large-scale scans without filters to maximize throughput.
- Predicate Push-down: Employed for filtered queries, where the cloud performs the filtering and only returns matching results, thereby conserving network bandwidth.
Experimental Evaluation
The researchers evaluated the proposed framework using the IoTDB-benchmark, simulating industrial IoT workloads with 3GB of time-series data. The data profile included high-frequency sampling (0.001s intervals) across multiple sensor types (boolean, string, integer, float). The performance was benchmarked against the native Apache IoTDB-1.3.0.
Performance Results
The collaborative execution model demonstrated significant improvements across various bottleneck scenarios:
- I/O Bottleneck Relief: Under heavy disk I/O pressure, the system reduced query latency by an average of 32.5%, with peak reductions reaching 49.2% for specific float-filter queries.
- CPU Bottleneck Relief: In high-concurrency environments (4+ concurrent queries), the efficiency of the collaborative mode improved by 92.4% compared to edge-only execution.
- Overall Latency: Across the entire test suite, the system consistently achieved a 62%–79% reduction in latency when the edge node reached saturation.
- Cache Efficiency: The effectiveness of the LRU-based synchronization was confirmed by a 91.1% increase in Queries Per Second (QPS) when the cloud cache hit rate reached 50%.
Conclusion and Future Directions
This paper demonstrates that a collaborative approach to query execution can effectively mitigate the resource limitations of edge devices. By focusing on the scan operator and implementing a "resume-from-breakpoint" capability, the authors provide a seamless transition between edge and cloud tiers.
However, the system's performance is sensitive to network conditions, requiring a stable connection of at least 50 Mbps. Future work will explore extending this collaborative logic to more complex relational operators such as Join and Last. Additionally, the authors plan to integrate Reinforcement Learning into the scheduling engine to enable proactive, predictive query migration before bottlenecks occur.
Summary updated