Skip to main content

Efficient Online Strategies for Renting Servers in the Cloud

  • Conference paper
SOFSEM 2015: Theory and Practice of Computer Science (SOFSEM 2015)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 8939))

Abstract

When scheduling jobs for systems in the cloud, we often deal with jobs that arrive and depart in an online manner. Each job should be assigned to a server upon arrival. Jobs are annotated with sizes which define the amount of resources that they need. Servers have uniform capacity and, at all times, the total size of jobs assigned to a server should not exceed this capacity. This setting is closely related to the classic bin packing problem. The difference is that, in bin packing, the objective is to minimize the total number of used servers. In the cloud systems, however, the cost for each server is proportional to the length of the time interval it is rented for, and the goal is to minimize the cost involved in renting all used servers. Recently, certain bin packing strategies were considered for renting servers in the cloud [Li et al. SPAA’14]. There, it is proved that all Any-Fit strategies have a competitive ratio of at least μ, where μ is the max/min interval length ratio of jobs. It is also proved that First Fit has a competitive ratio of 2μ + 13, while Best Fit is not competitive at all. We observe that the lower bound of μ extends to all online algorithms. We also prove that, surprisingly, Next Fit algorithm has a competitive ratio of at most 2 μ + 1. We also show that a variant of Next Fit achieves a competitive ratio of K × max {1,μ/(K − 1)} + 1, where K is a parameter of the algorithm. In particular, if the value of μ is known, the algorithm has a competitive ratio of μ + 2; this improves upon the existing upper bound of μ + 8. Finally, we introduce a simple algorithm called Move To Front (Mtf) which has a competitive ratio of at most 6μ + 8. We experimentally study the average-case performance of different algorithms and observe that the typical behaviour of Mtf is better than other algorithms.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Amazon EC2, http://aws.amazon.com/ec2/ (accessed: August 14, 2014)

  2. Gaikai, http://www.gaikai.com/ (accessed: August 14, 2014)

  3. OnLive, http://www.onlive.com/ (accessed: August 14, 2014)

  4. Balogh, J., Békési, J., Galambos, G.: New lower bounds for certain classes of bin packing algorithms. Theoret. Comput. Sci. 440–441, 1–13 (2012)

    Google Scholar 

  5. Chan, W.T., Lam, T.W., Wong, P.W.H.: Dynamic bin packing of unit fractions items. Theoret. Comput. Sci. 409(3), 521–529 (2008)

    Article  MATH  MathSciNet  Google Scholar 

  6. Coffman, E.G., Garey, M.R., Johnson, D.S.: Dynamic bin packing. SIAM J. Comput. 12, 227–258 (1983)

    Article  MATH  MathSciNet  Google Scholar 

  7. Csirik, J., Johnson, D.S.: Bounded space on-line bin packing: Best is better than First. In: Proc. 2nd Symp. on Discrete Algorithms (SODA), pp. 309–319 (1991)

    Google Scholar 

  8. Huang, C.Y., Hsu, C.H., Chang, Y.C., Chen, K.T.: Gaminganywhere: An open cloud gaming system. In: Proc. the 4th ACM Multimedia Systems Conference, pp. 36–47 (2013)

    Google Scholar 

  9. Johnson, D.S., Demers, A., Ullman, J.D., Garey, M.R., Graham, R.L.: Worst-case performance bounds for simple one-dimensional packing algorithms. SIAM J. Comput. 3, 256–278 (1974)

    Article  MathSciNet  Google Scholar 

  10. Li, Y., Tang, X., Cai, W.: On dynamic bin packing for resource allocation in the cloud. In: Proc. 26th Symp. on Parallel Algorithms and Architectures (SPAA), pp. 2–11 (2014)

    Google Scholar 

  11. Seiden, S.S.: On the online bin packing problem. J. ACM 49, 640–671 (2002)

    Article  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Kamali, S., López-Ortiz, A. (2015). Efficient Online Strategies for Renting Servers in the Cloud. In: Italiano, G.F., Margaria-Steffen, T., Pokorný, J., Quisquater, JJ., Wattenhofer, R. (eds) SOFSEM 2015: Theory and Practice of Computer Science. SOFSEM 2015. Lecture Notes in Computer Science, vol 8939. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-662-46078-8_23

Download citation

  • DOI: https://doi.org/10.1007/978-3-662-46078-8_23

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-662-46077-1

  • Online ISBN: 978-3-662-46078-8

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics