An Edge-centric Ensemble Scheme for Queries Assignment

Kostas Kolomvatsos, Christos AnagnostopoulosCIMA@ICTAI 2018

Abstract

This paper introduces a novel framework for efficiently routing database queries to "Edge Nodes" in an IoT environment. By combining an ensemble of similarity metrics to estimate query complexity with a predictive model for node load, the system minimizes latency and ensures queries are handled by the most capable available processors in real-time. The proposed scheme avoids the training lag of traditional machine learning models, offering a scalable and proactive solution for large-scale IoT deployments.

Introduction

In the Internet of Things (IoT) era, billions of devices generate massive data streams. Traditionally, this data is sent to the Cloud for processing, but the round-trip time creates significant latency. Edge Computing addresses this by processing data closer to the source on Edge Nodes (ENs). However, a new challenge arises: Query Assignment. If multiple users send complex queries to the same edge node, that node becomes a bottleneck. Simply picking the node with the lowest current load is insufficient because load changes rapidly and query complexity varies significantly—for instance, a "JOIN" operation is much heavier than a simple "SELECT."

Hierarchical architecture of the proposed edge-centric query assignment system showing the interaction between Cloud Query Controllers and Edge Nodes.

The authors tackle the problem of intelligently matching incoming queries to the right edge nodes based on both query complexity and predicted node availability, as illustrated in the hierarchical architecture above.

Methodology

The authors propose a multi-layered approach that avoids the "training lag" of traditional machine learning through four key components:

  1. Fuzzy Classification Process (FCP): Instead of a hard "simple vs. complex" label, the system uses an ensemble of similarity metrics (such as Jaccard coefficient and Cosine similarity) to compare a new query against a historical dataset. It produces a vector showing how much a query "belongs" to different complexity classes (e.g., $O(n)$ vs. $O(n^2)$).
  2. The Hamacher Product: To combine these different similarity metrics into one reliable score, the authors use the Hamacher product, a fuzzy aggregation operator that allows for "tuning" the influence of different metrics.
  3. Load Prediction: The system doesn't just look at a node's current load ($\beta$). It uses the Levinson-Durbin algorithm to perform linear estimation, predicting the future load ($\hat{\beta}$) based on historical trends.
  4. Softmax Allocation: Finally, the system assigns rewards or penalties to nodes based on whether they can handle the estimated query burden. A Softmax function converts these rewards into a probability distribution, ensuring the "best" nodes are prioritized for allocation.

Experimental Setup

The researchers evaluated their model using two industry-standard benchmarking datasets:

  • TPC-DS: A universal benchmark for big data decision support systems.
  • TPC-H: A suite of business-oriented ad-hoc queries used to measure the performance of large-scale data processing.
  • Expert Classification: The complexity classes for these queries were defined based on a survey of database experts to ensure the "ground truth" was accurate.

Key Insights

  • Ensembles Beat Single Metrics: No single similarity metric is perfect for SQL queries. By using an ensemble, the system mitigates the weaknesses of individual algorithms (like Hamming distance or Jaccard).
  • Significance Level (SL) Filtering: Borrowing from density-based clustering, the authors calculate a "Significance Level" for similarity results. This filters out "outlier" metrics that disagree with the majority, making the final complexity estimate more robust.
  • Proactive vs. Reactive: Most systems react to current congestion. This scheme is proactive; by predicting future load, it avoids sending a query to a node that is about to be overwhelmed.
  • No Training Phase Required: Unlike deep learning models that require hours of training, this similarity-based approach works "out of the box" and can adapt immediately if the historical query dataset is updated.

Results

  • Real-Time Performance: The "conclusion time" (the time taken to decide where to send a query) remained under 0.3 seconds even when scaling up to 10,000 Edge Nodes.
  • Load Balancing Efficiency: The model significantly outperformed random allocation. Specifically, "Scenario B" (selecting the lowest predicted load during ties) proved highly effective at maintaining a low average load across the entire edge network.
  • Scalability: The computational complexity of the scheme scales linearly with the number of complexity classes and the size of the historical dataset, making it viable for large-scale IoT deployments.

Conclusion and Future Work

While the paper presents a robust framework, several areas for growth remain. The current model focuses on computational load but does not explicitly account for data locality—where the specific data required for the query is physically stored. Future iterations aim to incorporate hard deadlines for queries to ensure time-sensitive tasks are prioritized. Additionally, the model could be refined to account for node heterogeneity, such as specific hardware optimizations (GPUs vs. CPUs) present on different edge nodes.

Summary updated

BibTeX
@inproceedings{kolomvatsos2018edge,
  author = {Kostas Kolomvatsos and Christos Anagnostopoulos},
  title = {{An Edge-centric Ensemble Scheme for Queries Assignment}},
  booktitle = {CIMA@ICTAI},
  year = {2018},
}
Figure