Skip to main content
QUICK REVIEW

[Paper Review] To Reserve or Not to Reserve: Optimal Online Multi-Instance Acquisition in IaaS Clouds

Wei Wang, Baochun Li|arXiv (Cornell University)|May 24, 2013
Optimization and Search ProblemsComputer Science20 references44 citations
TL;DR

This paper proposes two online algorithms—deterministic and randomized—for optimal multi-instance acquisition in IaaS clouds without requiring future demand knowledge. It proves the algorithms achieve competitive ratios of $2 - \alpha$ and $e/(e-1 + \alpha)$, respectively, which are optimal and significantly reduce costs compared to on-demand pricing under real-world EC2 pricing.

ABSTRACT

Infrastructure-as-a-Service (IaaS) clouds offer diverse instance purchasing options. A user can either run instances on demand and pay only for what it uses, or it can prepay to reserve instances for a long period, during which a usage discount is entitled. An important problem facing a user is how these two instance options can be dynamically combined to serve time-varying demands at minimum cost. Existing strategies in the literature, however, require either exact knowledge or the distribution of demands in the long-term future, which significantly limits their use in practice. Unlike existing works, we propose two practical online algorithms, one deterministic and another randomized, that dynamically combine the two instance options online without any knowledge of the future. We show that the proposed deterministic (resp., randomized) algorithm incurs no more than 2-alpha (resp., e/(e-1+alpha)) times the minimum cost obtained by an optimal offline algorithm that knows the exact future a priori, where alpha is the entitled discount after reservation. Our online algorithms achieve the best possible competitive ratios in both the deterministic and randomized cases, and can be easily extended to cases when short-term predictions are reliable. Simulations driven by a large volume of real-world traces show that significant cost savings can be achieved with prevalent IaaS prices.

Motivation & Objective

  • To address the challenge of dynamically combining on-demand and reserved instances in IaaS clouds to minimize cost under time-varying workloads.
  • To overcome the limitations of existing strategies that require long-term demand predictions or exact future knowledge.
  • To design practical online algorithms that make reservation decisions in real time with no prior knowledge of future demand.
  • To establish the best possible competitive ratios for both deterministic and randomized online algorithms in the multi-instance reservation setting.
  • To extend the algorithms to cases where short-term demand predictions are available and evaluate performance using real-world traces.

Proposed method

  • Formulates the optimal offline reservation strategy using dynamic programming, serving as a benchmark for competitive analysis.
  • Designs a deterministic online algorithm that makes reservation decisions based on current demand and discount factor $\alpha$, achieving a competitive ratio of $2 - \alpha$.
  • Develops a randomized online algorithm that uses probabilistic decision-making to improve the competitive ratio to $e/(e-1 + \alpha)$ in expectation.
  • Proves that both algorithms achieve the best possible competitive ratios in their respective classes, establishing theoretical optimality.
  • Extends the algorithms to incorporate short-term demand predictions by modifying the decision rules to include predicted demand windows.
  • Employs large-scale simulations using 40 GB of real Google cluster usage traces to evaluate cost savings under Amazon EC2 pricing.

Experimental results

Research questions

  • RQ1Can an online algorithm dynamically combine on-demand and reserved instances in IaaS clouds without knowledge of future demand, while achieving near-optimal cost?
  • RQ2What is the best possible competitive ratio achievable by a deterministic online algorithm for multi-instance reservation in IaaS?
  • RQ3What is the best possible competitive ratio achievable by a randomized online algorithm for multi-instance reservation in IaaS?
  • RQ4How do the proposed algorithms perform in practice when applied to real-world cloud usage traces?
  • RQ5Can the algorithms be extended to leverage short-term demand predictions without sacrificing theoretical guarantees?

Key findings

  • The deterministic online algorithm achieves a competitive ratio of $2 - \alpha$, which is optimal among all deterministic algorithms for the multi-instance reservation problem.
  • The randomized online algorithm achieves a competitive ratio of $e/(e-1 + \alpha)$ in expectation, which is optimal for randomized algorithms in this setting.
  • Under Amazon EC2 pricing ($\alpha \approx 0.51$), the deterministic algorithm guarantees a cost no more than 1.51 times the optimal offline cost.
  • Under the same pricing, the randomized algorithm guarantees a cost no more than 1.23 times the optimal offline cost in expectation.
  • Simulations using real Google cluster traces show significant cost savings compared to purely on-demand or heuristic reservation strategies.
  • The algorithms can be effectively extended to scenarios with reliable short-term demand predictions, further improving cost efficiency.

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.