Introduction
The proliferation of Internet of Things (IoT) devices has led to an explosion of data that requires real-time processing. Edge computing addresses this by moving computation closer to the data source, reducing latency and bandwidth usage. However, edge nodes—ranging from powerful servers to simple routers—exhibit varying processing capabilities and fluctuating workloads. A central challenge in these heterogeneous environments is query allocation: determining which edge node should handle a specific data analytics task to ensure optimal performance.
Existing solutions often rely on simple greedy heuristics or complex machine learning models. Greedy approaches frequently fail to account for the dynamic nature of network traffic, while deep learning models require massive amounts of training data and struggle with rapid shifts in data patterns. This paper introduces a probabilistic framework that intelligently assigns queries by matching their complexity with real-time node availability without the need for extensive training.
System Architecture
The proposed system operates within a hierarchical structure consisting of a cloud layer, an edge layer, and IoT devices. The interaction between these layers is managed by Query Controllers (QC).
As shown in the architecture, QCs receive query streams and must decide which edge node is best suited for execution. Each edge node contains a query processor and a local dataset ($D_i$), serving requests from nearby IoT devices like smartphones, laptops, and wearables.
Methodology
The authors propose a multi-stage probabilistic decision-making model to optimize allocation:
- Fuzzy Query Classification: Instead of assuming a query's complexity is known, the system uses an Ensemble Similarity Scheme. It compares incoming SQL-like queries against a training set of known complexity classes (e.g., $O(n)$, $O(n \log n)$) using multiple similarity metrics. A fuzzy aggregation operator then assigns the query a probability of belonging to each class.
- Statistical Load Estimation: The model treats query arrivals as a Poisson process. By analyzing the rate of incoming queries, it calculates the "Expected Load" ($E(\beta)$) for each node dynamically.
- Probabilistic Matching: The system calculates the joint probability that a specific node can satisfy both the query's complexity (load requirement) and its deadline (speed requirement).
- Ranking and Selection: Using the Probability Ranking Principle and a Softmax function, the QC produces an ordered list of nodes and selects the one with the highest probability of success.
This "training-light" approach relies on statistical reasoning rather than black-box neural networks, making it highly adaptable to environments where data patterns shift rapidly. The various parameters involved in this model are detailed in the table below.
Evaluation and Results
The researchers evaluated their model using a Java-based simulator and industry-standard benchmarking suites, including TPC-DS (big data decision support), TPC-H (ad-hoc business queries), and Synthetic Traces (TST) designed to simulate both stable and chaotic network conditions.
Key Findings
- Efficiency: The time required to make an allocation decision remained under 0.1 seconds for networks with up to 1,000 nodes, making it suitable for near-real-time applications.
- Load Balancing: The model achieved a fair distribution of queries, effectively acting as an implicit load balancer across the edge network.
- Superiority over Greedy Baselines: In head-to-head comparisons, the proposed model significantly outperformed Greedy Fast Processing (GFP) and Greedy Best Availability (GBA). The deviation from the optimal node's load was consistently minimal compared to greedy models.
- Robustness: The model maintained high performance across different statistical distributions (Uniform and Gaussian), proving its reliability in diverse environments.
Conclusion
This probabilistic model offers a robust and scalable alternative to traditional query allocation methods at the edge. By combining fuzzy logic for query classification with statistical modeling of node availability, the system minimizes latency and optimizes resource utilization. Future work will focus on incorporating data locality and the specific statistics of data stored within each node's local repository to further refine the matching logic.
Summary updated