Analysis and Evaluation of Load Management Strategies in a Decentralized FaaS Environment: A Simulation-Based Framework

Federica Filippini, Nicolas Calmi, Luca Cavenaghi, Emanuele Petriglia, Marco Savi, Michele Ciavotta2024

TL;DR

This paper introduces a novel simulation framework for evaluating load management strategies in decentralized Function-as-a-Service (FaaS) environments at the network edge. The authors demonstrate its utility by comparing four distinct load-balancing strategies, highlighting the effectiveness of a "node-margin" approach for maximizing request success rates.

What Problem Does This Paper Address?

The proliferation of edge computing necessitates efficient data processing closer to users, and Function-as-a-Service (FaaS) is a promising model for this. However, edge environments are inherently distributed and resource-constrained, making effective load balancing critical. Traditional on-site testing of load management solutions is impractical due to complexity and cost. This paper addresses this gap by providing a simulation-based framework to design, test, and compare various load-balancing strategies in decentralized FaaS setups, specifically within the context of the Decentralized FaaS (DFaaS) architecture.

Methods

The core contribution is a simulation framework comprising three main components:

  • Instance Generator: Creates realistic simulation scenarios by defining network topology, node types (light, mid, high capacity), function distribution, and incoming load patterns. It can also tune load profiles to control the maximum percentage of overloaded nodes (MPO).
  • Simulator: Executes the load management strategies over time. It interacts with "agents" on each simulated edge node, which implement the chosen strategy to decide whether to process requests locally or offload them to neighbors. The simulator supports various ML-based performance models for predicting node metrics.
  • Analyzer: Collects and processes simulation outputs to compute key performance indicators (KPIs) like Success Rate (SR), Mean Node Power Consumption (NPCavg), and Rejected Requests (ρ), enabling quantitative comparison of strategies.

The paper also details four load-balancing strategies: two baselines ("Base" and "Equal") and two intelligent strategies: "Node-Margin" (which considers available resources and neighbor capacity) and "Power-Saving" (which prioritizes energy efficiency).

Datasets

Not discussed in the paper. The paper focuses on a simulation-based approach, generating its own "datasets" (simulation instances) based on configurable parameters.

Key Insights and Ideas

  • Simulation is Key: The paper strongly advocates for simulation as a practical and effective method for evaluating complex load management strategies in edge FaaS environments, overcoming the limitations of real-world testing.
  • Node-Margin Strategy Excels: The "node-margin" strategy emerges as the most effective for maximizing request success rates (SR) and minimizing rejected requests (ρ), even under challenging conditions with high percentages of overloaded nodes.
  • Power-Saving Trade-offs: The "power-saving" strategy can reduce energy consumption but may lead to a lower success rate, especially when using more conservative performance prediction models (e.g., 0.95 quantile). Its effectiveness is highly dependent on accurate threshold tuning.
  • ML Model Impact: The choice of ML model for predicting node metrics (linear vs. quantile regression) significantly influences the performance of the intelligent strategies, particularly the power-saving one.
  • Scalability is Manageable: While execution time increases with the number of nodes and MPO, the proposed strategies remain practical, with average execution times for simulation steps well within acceptable limits for many applications.

Key Results

  • The "node-margin" strategy achieved up to a 25% higher Average Percentage Gain (APG) for success rate and 50% for rejected requests compared to the baseline strategy, across different model types.
  • The "power-saving" strategy showed promise in reducing maximum power consumption (around 7.5% APG compared to the base strategy) but was sensitive to the prediction model used.
  • Even in the most challenging scenarios (high MPO), the "node-margin" and "power-saving" strategies maintained success rates above 80% and 60% for SRstress.
  • The "equal" strategy, while simpler and faster, offered moderate improvements over the baseline, generally increasing success rate and decreasing rejections at the cost of slightly higher power consumption.
  • Execution times for simulation steps were generally low, with the "equal" strategy being the fastest, and "node-margin" and "power-saving" remaining under 30 seconds even for larger networks.

Limitations and Future Work

  • Limited Neighbor View: The current framework primarily focuses on direct neighbors in the P2P network, offering a limited view of the broader network topology.
  • Future Work:
    • Extend the framework to incorporate more robust message passing for synchronization and handling node failures.
  • Develop dynamic load-balancing strategies that can switch between different algorithms based on incoming request patterns.
  • Investigate more sophisticated load prediction models.

Summary updated

Abstract

The Edge Computing paradigm has emerged to address new requirements in data processing. This approach enables the decentralization of computation by bringing computing capabilities to the edge of the network, i.e., close to the data sources, offering various benefits such as reduced latency and minimal network bandwidth consumption. In this context, Function as a Service (FaaS) emerges as a versatile and efficient solution, representing a specific instantiation of the Serverless Computing model. FaaS provides a scalable and reactive infrastructure that can be effectively applied to Edge Computing. Given the limited resource capacity of Edge nodes, appropriate load balancing is crucial. However, conducting on-field testing of any designed solution for this purpose can be arduous and time-consuming. This work addresses this challenge by proposing a simulation-based framework to design and evaluate load-management policies in decentralized FaaS environments. Additionally, we validate and compare four different load-balancing strategies, each characterized by varying degrees of complexity. Our experimental campaign demonstrates the effectiveness of the framework and our load-management methods across different operational scenarios.
BibTeX
@misc{filippini2024analysis,
  author = {Federica Filippini and Nicolas Calmi and Luca Cavenaghi and Emanuele Petriglia and Marco Savi and Michele Ciavotta},
  title = {{Analysis and Evaluation of Load Management Strategies in a Decentralized FaaS Environment: A Simulation-Based Framework}},
  year = {2024},
  doi = {10.1145/3660319.3660329},
}

Loading related content...

Figure