On the Regret of Online Edge Service Hosting

R Sri Prakash, Nikhil Karamchandani, Sharayu MoharirarXiv 2023

TL;DR

This paper analyzes online edge service hosting policies using the "regret" metric, revealing that the popular Retro Renting (RR) policy suffers from suboptimal linear regret over time. To fix this, the authors demonstrate that Follow the Perturbed Leader (FTPL) achieves order-optimal regret, and they introduce a novel variant, Wait-then-FTPL (W-FTPL), which dramatically reduces costly data-fetching overhead while maintaining optimal performance guarantees.

What Problem Does This Paper Address?

Software-as-a-Service (SaaS) providers increasingly rely on edge computing to meet stringent latency requirements for applications like online navigation and video-on-demand. However, renting edge resources costs money, and moving data or code from cloud servers to the edge incurs a significant "fetch cost" (bandwidth overhead). Providers face the service hosting problem: dynamically deciding what fraction of a service to host at the edge over time without knowing future user request patterns.

Prior literature evaluated hosting policies using the competitive ratio (a multiplicative metric comparing online performance to an offline oracle). However, a good competitive ratio can still hide massive absolute cost differences. This paper addresses this gap by analyzing edge hosting through the lens of regret—the absolute difference between the cost incurred by an online policy and the optimal static policy over a time horizon $T$.

Methods

The authors evaluate two existing algorithms and propose a new hybrid approach to minimize rent, service (latency), and fetch costs:

  1. Retro Renting (RR): A deterministic policy that looks at recent request history to decide whether the current edge hosting status is optimal in hindsight.
  2. Follow The Perturbed Leader (FTPL): A randomized online learning algorithm. It looks at the cumulative historical cost of each hosting level, adds a scaled sample of Gaussian noise to each, and selects the level with the minimum perturbed cost. The randomization prevents adversarial request sequences from exploiting the policy.
  3. Wait then FTPL (W-FTPL) [Proposed]: Standard FTPL is agnostic to fetch costs, meaning it often rapidly toggles between hosting and evicting services early on when request estimates are noisy, racking up massive fetch costs. W-FTPL introduces an initial "wait period" where the policy refuses to host anything at the edge. The duration of this period dynamically scales with the fetch cost, allowing the system to collect enough request data to form an accurate arrival rate estimate before initiating FTPL.

The paper provides mathematical proofs characterizing the regret bounds of these policies under both i.i.d. stochastic and adversarial request arrivals.

Datasets

  • Synthetic Data: Generated using Bernoulli processes (for stochastic settings) and structured frame-based arrival sequences (for adversarial settings) to validate theoretical bounds.
  • Real-World Trace Data: The DAS-2 traces from the Grid Workloads Archive. This dataset tracks processor requests arriving at computational servers, providing a realistic benchmark for evaluating how these policies handle non-stationary, real-world workloads.

Key Insights and Ideas

  • The Vulnerability of Determinism: Because RR is deterministic, an adversary can easily craft a request sequence that tricks the policy into repeatedly fetching and evicting services, resulting in a worst-case linear regret ($\Omega(T)$).
  • The "Noise" Penalty in FTPL: Randomization protects FTPL from adversaries, yielding an order-optimal regret of $O(\sqrt{T})$ over time. However, because it ignores fetch costs during its decision step, its early-stage exploratory mistakes scale linearly with the fetch cost ($M$).
  • Strategic Waiting Settles the Noise: W-FTPL proves that doing nothing initially can be highly optimal. By waiting out the early, noisy time slots, the algorithm avoids wasteful data fetches. Once it activates, its estimate of the request environment is stable, dropping the regret's dependence on fetch cost from linear ($M$) to polylogarithmic ($(\log M)^{1+\delta}$).

Key Results

  • Adversarial Arrivals: Both FTPL and W-FTPL achieve an order-optimal regret of $O(\sqrt{T})$, matching the fundamental lower bound proved for any online policy. RR performs poorly with linear regret ($\Omega(T)$).
  • Stochastic Arrivals: Both FTPL and W-FTPL achieve constant regret (meaning regret does not grow with time $T$). However, W-FTPL exhibits a vastly superior polylogarithmic dependence on the fetch cost $M$ compared to FTPL's linear dependence.
  • Simulations: Real-world trace simulations showed that while RR can occasionally outperform static-focused policies if the underlying optimal strategy is highly dynamic, it remains uniquely vulnerable to severe, worst-case linear regret over extended time horizons.

Limitations and Future Work

The primary limitation is that the paper defines regret against an optimal static offline policy (the best single hosting decision fixed for the entire duration $T$). In highly volatile or seasonal real-world environments, the optimal edge hosting configuration changes over time. The authors note that evaluating policies against a dynamic offline policy (tracking dynamic regret) remains an open and promising direction for future edge service hosting research.

Summary updated

BibTeX
@misc{prakash2023regret,
  author = {R Sri Prakash and Nikhil Karamchandani and Sharayu Moharir},
  title = {{On the Regret of Online Edge Service Hosting}},
  year = {2023},
  eprint = {2303.06851},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.06851},
}

Loading related content...

Figure