Skip to main content
QUICK REVIEW

[Paper Review] Learning Runtime Parameters in Computer Systems with Delayed Experience Injection

Michael Schaarschmidt, Felix Gessert|arXiv (Cornell University)|Oct 31, 2016
Caching and Content DeliveryComputer Science15 references8 citations
TL;DR

This paper proposes a deep reinforcement learning approach using normalized advantage functions with delayed experience injection (NAF-DEI) to dynamically optimize HTTP cache expiration times in cloud databases under real-time latency constraints. By asynchronously managing delayed rewards and next-state information in concurrent environments, NAF-DEI achieves 88.5% mean cache hit rate with 7.3% invalidations—outperforming a statistical Poisson estimator, especially under high write workloads.

ABSTRACT

Learning effective configurations in computer systems without hand-crafting models for every parameter is a long-standing problem. This paper investigates the use of deep reinforcement learning for runtime parameters of cloud databases under latency constraints. Cloud services serve up to thousands of concurrent requests per second and can adjust critical parameters by leveraging performance metrics. In this work, we use continuous deep reinforcement learning to learn optimal cache expirations for HTTP caching in content delivery networks. To this end, we introduce a technique for asynchronous experience management called delayed experience injection, which facilitates delayed reward and next-state computation in concurrent environments where measurements are not immediately available. Evaluation results show that our approach based on normalized advantage functions and asynchronous CPU-only training outperforms a statistical estimator.

Motivation & Objective

  • To address the challenge of learning optimal runtime parameters in computer systems with strong latency constraints and delayed performance feedback.
  • To enable real-time, per-request configuration decisions in cloud databases without prior offline training.
  • To overcome the difficulty of delayed credit assignment in concurrent systems where performance metrics are not immediately available.
  • To develop a scalable, CPU-only training method that leverages fine-grained runtime metrics for dynamic parameter tuning.
  • To demonstrate that deep reinforcement learning can outperform traditional statistical estimators in cache expiration time prediction.

Proposed method

  • The method employs normalized advantage functions (NAFs) for continuous action space control, using a single neural network to output both value and advantage functions.
  • It introduces delayed experience injection (DEI), a mechanism to asynchronously store and process experiences when rewards and next states are not immediately available.
  • The approach uses a replay memory with prioritized sampling and a target network to stabilize training, similar to Deep Q-Networks.
  • Rewards are shaped based on cache hit rate and invalidation rate, with dynamic adjustment to reflect workload mix and service-level objectives.
  • The system operates in real time, processing incoming requests and updating policy parameters online without pre-training.
  • The algorithm is trained on CPU only, enabling deployment in resource-constrained environments.

Experimental results

Research questions

  • RQ1Can deep reinforcement learning be effectively applied to real-time, request-level parameter tuning in cloud databases with minimal training overhead?
  • RQ2How can delayed rewards and next-state information be efficiently managed in concurrent, high-throughput systems where performance metrics arrive asynchronously?
  • RQ3Can a DRL-based controller outperform a statistical estimator in predicting optimal cache expiration times under varying workloads?
  • RQ4To what extent does the use of fine-grained runtime metrics improve cache performance compared to global statistics?
  • RQ5How can reward shaping be used to balance competing objectives such as high cache hit rates and low invalidation rates?

Key findings

  • NAF-DEI achieved a mean cache hit rate of 88.5% with 7.3% invalidation rate under a 10% write workload, significantly outperforming the Poisson estimator, which achieved 79.5% hit rate and 6.8% invalidations.
  • Under a 30% write workload, NAF-DEI achieved 77.7% cache hit rate and 21.4% invalidations, compared to 62.6% and 15.6% for the Poisson estimator, demonstrating superior robustness to high write rates.
  • The agent learned effective policies within the first few minutes of operation, indicating fast convergence despite high concurrency (1,000 requests/sec).
  • The system systematically overestimated TTLs by 5–10 seconds when rewards were not adjusted for workload mix, showing the importance of dynamic reward shaping.
  • When rewards were adjusted to reflect workload mixture (e.g., targeting load below 1−w), TTLs decreased appropriately over time, demonstrating adaptive behavior.
  • The method enabled effective trade-offs between cache performance and invalidation without requiring analytical models, highlighting the flexibility of RL for multi-objective optimization.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.