RetroRenting: An Online Policy for Service Caching at the Edge

V S Ch Lakshmi Narayana, Sharayu Moharir, Nikhil KaramchandaniarXiv 2019

TL;DR

Deciding when to rent edge computing resources is a high-stakes balancing act between expensive service downloads, time-varying rental fees, and per-request forwarding costs. This paper introduces RetroRenting (RR), a simple yet powerful online policy that makes these decisions by looking at hindsight, proving it to be order-optimal in worst-case scenarios and near-optimal in real-world stochastic environments.

What Problem Does This Paper Address?

Edge computing brings computation closer to the user to satisfy ultra-low latency requirements for applications like AR/VR, autonomous driving, and IoT. However, edge resources are typically rented on a "pay-as-you-go" basis. An application provider faces a constant dilemma:

  1. Forwarding: Send individual requests to a distant cloud server (cheap per request, but high latency).
  2. Hosting: Download the entire service to an edge server (expensive "fetch" cost, plus ongoing rental fees, but zero latency for local requests).

The challenge is that both request arrivals and rental costs (like AWS spot prices) are highly dynamic. Traditional caching policies like Time-To-Live (TTL) fail here because they assume you must fetch data on a miss. In service hosting, you have the option to forward requests instead of fetching the whole service, making TTL's "fetch-on-miss" strategy prohibitively expensive when request rates are low or fetch costs are high.

Methods

The authors propose RetroRenting (RR), an online algorithm that decides when to fetch or evict a service based on whether it would have been cheaper to do so in the past.

  • The RR Logic:
    • To Fetch: If there was a point in the past where fetching the service and hosting it until now would have cost less than forwarding all those requests, RR fetches the service.
  • To Evict: If it would have been cheaper to have not hosted the service and instead just fetched it now, RR evicts the service.
  • Theoretical Analysis: The authors evaluate RR using the competitive ratio—the ratio of the online policy's cost to an "offline optimal" policy that knows the future. They prove RR is order-optimal with respect to the edge server's computation capacity ($\kappa$).
  • Efficient Implementation (E-RR): While the basic RR logic requires looking back at all history ($O(t)$ complexity), the authors provide an efficient version (Algorithm 3) that only needs to maintain a single metric, $\Delta(t)$, reducing the per-slot complexity to $O(1)$.
Summary of notation used in the RR algorithms

Datasets

The study validates RR using a mix of synthetic and real-world data:

  • Synthetic Arrivals: i.i.d. Bernoulli and Poisson processes to test various request intensities.
  • Real-World Arrivals: Trace data from a Google Cluster (identifying four distinct job types) to simulate realistic, bursty request patterns.
  • Rental Costs: Time-varying rent sequences generated using an ARMA model fitted to real AWS spot price data (specifically the m4.large instance in the Central Canada region).

Key Insights and Ideas

  • The TTL Trap: In content caching, you fetch because you have to. In edge hosting, fetching is a choice. TTL performs poorly because it is too "aggressive"—it fetches on the very first request, even if that request is a rare outlier, leading to high costs for services with low arrival rates.
  • Universality: RR doesn't need to know the statistics of the arrival process (like the mean arrival rate) to perform well. Its hindsight-based logic allows it to adapt to both adversarial (worst-case) and stochastic (random) environments.
  • Cost-Awareness: Unlike standard caching, RR explicitly accounts for the Fetch Cost ($M$). As $M$ increases, RR becomes more cautious about fetching, whereas TTL's performance continues to degrade.

Key Results

  • Near-Optimality: In simulations, RR's performance consistently hugs the theoretical lower bounds and stays very close to the offline optimal policy across different fetch costs and arrival rates.
  • Robustness to Capacity: As the edge server's capacity ($\kappa$) increases, the cost per time-slot for all policies generally decreases, but RR maintains its lead over TTL.
Fig. 3: Cost per time-slot as a function of the fetch cost (M) for i.i.d. Bernoulli(p) arrivals with p = 0.35 and ARMA(4,2) rent costs with mean c = 0.25
  • Rent Sensitivity: RR effectively handles time-varying rent. When average rent costs are low, RR hosts more frequently; when they are high, it reverts to forwarding, matching the behavior of the optimal offline policy.
Fig. 1: Cost per time-slot as a function of average rent cost (c) for M = 4 for i.i.d. Bernoulli(p) arrivals with p = 0.4

Limitations and Future Work

  • Single Service Focus: The current model looks at a single application provider's perspective. In reality, multiple providers compete for the same edge resources, which could lead to more complex price dynamics or resource contention.
  • Switching Overheads: The model assumes that evicting and re-fetching a service only incurs the fetch cost $M$. It doesn't account for potential "wear and tear" or state-transfer latencies that might occur in highly volatile environments.
  • Future Directions: The authors suggest extending this work to multi-service caching and exploring how cooperation between different edge servers could further reduce costs.

Summary updated

BibTeX
@misc{narayana2019retrorenting,
  author = {V S Ch Lakshmi Narayana and Sharayu Moharir and Nikhil Karamchandani},
  title = {{RetroRenting: An Online Policy for Service Caching at the Edge}},
  year = {2019},
  eprint = {1912.11300},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1912.11300},
}
Figure