to reserve or not to reserve op mal online mul instance
play

To Reserve or Not to Reserve: Op.mal Online Mul.-Instance - PowerPoint PPT Presentation

To Reserve or Not to Reserve: Op.mal Online Mul.-Instance Acquisi.on in IaaS Clouds Wei Wang, Baochun Li, Ben Liang Department of Electrical and


  1. To ¡Reserve ¡or ¡Not ¡to ¡Reserve: ¡ Op.mal ¡Online ¡Mul.-­‑Instance ¡ Acquisi.on ¡in ¡IaaS ¡Clouds ¡ Wei ¡Wang, ¡Baochun ¡Li, ¡ Ben ¡Liang ¡ Department ¡of ¡Electrical ¡and ¡Computer ¡Engineering ¡ University ¡of ¡Toronto ¡ 1 ¡

  2. Growing ¡Cloud-­‑Compu.ng ¡Costs ¡ § Dras.c ¡increase ¡in ¡enterprise ¡spending ¡on ¡ Infrastructure-­‑as-­‑a-­‑Service ¡(IaaS) ¡clouds ¡ – 41.7% ¡annual ¡growth ¡rate ¡by ¡2016 ¡[Cloud ¡ ¡ Times’12] ¡ – IaaS ¡cloud ¡is ¡the ¡ fastest-­‑growing ¡segment ¡ 2 ¡

  3. Tradeoffs ¡in ¡Cloud ¡Pricing ¡Op.ons ¡ § On-­‑demand ¡Instances ¡ – No ¡commitment ¡ – Pay-­‑as-­‑you-­‑go ¡ § Reserved ¡Instances ¡ – Reserva.on ¡fee ¡+ ¡discounted ¡price ¡ – Suitable ¡for ¡long-­‑term ¡usage ¡commitment ¡ Instance Type Pricing Option Upfront Hourly On-Demand $0 $0.08 Standard Small 1-Year Reserved $69 $0.039 On-Demand $0 $0.16 Standard Medium 1-Year Reserved $138 $0.078 3 ¡

  4. Mul.-­‑Instance ¡Acquisi.on ¡Problem ¡ § Workload ¡(demand) ¡is ¡.me-­‑varying ¡ 900 User 552 Instance 600 300 0 200 250 300 350 400 Time (hour) § When ¡should ¡I ¡reserve ¡an ¡instance? ¡ § How ¡many ¡instances ¡should ¡I ¡reserve? ¡ ¡ 4 ¡

  5. Predict ¡the ¡Future? ¡ § Exis.ng ¡works ¡rely ¡on ¡predic.on ¡of ¡future ¡ demand ¡ – [Hong ¡SIGMETRICS’11, ¡Bodenstein ¡ICIS’11, ¡ Vermeersch ¡Thesis’11, ¡Wang ¡ICDCS’13] ¡ § However… ¡ – Predic.on ¡is ¡needed ¡for ¡long-­‑term ¡future ¡ § Instance ¡reserva.on ¡period ¡is ¡typically ¡months ¡to ¡years ¡ – Precise ¡predic.on ¡not ¡possible ¡ – Demand ¡history ¡may ¡be ¡limited ¡ § E.g., ¡startup ¡companies, ¡new ¡services ¡ 5 ¡

  6. How ¡well ¡can ¡we ¡make ¡instance ¡ reserva.on ¡decisions ¡online, ¡without ¡ any ¡ a ¡priori ¡informa.on ¡about ¡the ¡ future ¡demand? ¡ 6 ¡

  7. Our ¡Main ¡Contribu.ons ¡ § Propose ¡two ¡online ¡reserva.on ¡algorithms ¡ that ¡offer ¡the ¡best ¡provable ¡cost ¡guarantees ¡ – Determinis.c: ¡ (2- α ) -­‑compe..ve ¡ – Randomized: ¡ e /( e -1+ α ) -­‑compe..ve ¡ § α : ¡normalized ¡discounted ¡price ¡under ¡reserva.on ¡ (0 ≤ α ≤ 1) ¡ § Study ¡prac.cal ¡performance ¡gains ¡using ¡ Google ¡cluster ¡workload ¡traces ¡ 7 ¡

  8. Problem ¡Formula.on ¡ 8 ¡

  9. Pricing ¡of ¡On-­‑Demand ¡and ¡ Reserved ¡Instances ¡ § On-­‑demand ¡Instances ¡ – Fixed ¡hourly ¡price: ¡ p – Cost ¡of ¡running ¡for ¡ h ¡hours: ¡ ph § Reserved ¡Instances ¡ – Upfront ¡reserva.on ¡fee ¡+ ¡discounted ¡price ¡ – Normalized ¡reserva.on ¡fee: ¡ 1 – Reserva.on ¡period: ¡ τ ¡hours ¡ – Cost ¡of ¡running ¡for ¡ h ¡hours: ¡ 1 + α ph § α : ¡normalized ¡discounted ¡price ¡under ¡reserva.on ¡ (0 ≤ α ≤ 1) ¡ ¡ ¡ 9 ¡

  10. User ¡Demand ¡and ¡Reserva.on ¡ At ¡.me ¡ t (discrete ¡.me), ¡the ¡user ¡ § Has ¡demand ¡for ¡ d t ¡instances ¡(.me-­‑varying) ¡ X § Newly ¡ reserves ¡ r t ¡instances t – Available ¡reserved ¡instances: ¡ X + r i i = t − τ +1 § Launches ¡ o t ¡on-­‑demand ¡instances ¡ X – Total ¡available ¡instances: ¡ t X o t + r i ≥ d t i = t − τ +1 10 ¡

  11. Op.mal ¡Offline ¡Algorithm ¡ § Make ¡instance ¡purchase ¡decisions ¡ o t ¡and ¡ r t ¡ with ¡knowledge ¡of ¡all ¡future ¡demands ¡ d t+1 , d t +2 , … On-­‑demand ¡cost ¡ Reserva.on ¡cost ¡ T X min C = ( o t p + r t + α p ( d t − o t )) , { r t ,o t } t =1 t X o t + r i ≥ d t , s.t. i = t − τ +1 o t , r t ∈ { 0 , 1 , 2 , . . . } , t = 1 , . . . , T . ¡ – Can ¡be ¡solved ¡by ¡dynamic ¡programming, ¡but ¡is ¡ computa5onally ¡prohibi5ve ¡ 11 ¡

  12. Online ¡Instance ¡Reserva.on ¡ § Make ¡instance ¡purchase ¡decisions ¡ o t ¡and ¡ r t ¡ without ¡seeing ¡future ¡demands ¡ d t+1 , d t+2 , … On-­‑demand ¡cost ¡ Reserva.on ¡cost ¡ T X min C = ( o t p + r t + α p ( d t − o t )) , { r t ,o t } t =1 t X o t + r i ≥ d t , s.t. i = t − τ +1 o t , r t ∈ { 0 , 1 , 2 , . . . } , t = 1 , . . . , T . ¡ – What ¡is ¡the ¡best ¡that ¡one ¡can ¡do? ¡ 12 ¡

  13. Measure ¡of ¡Op.mality ¡ § Compare ¡an ¡online ¡reserva.on ¡algorithm ¡with ¡ the ¡op.mal ¡offline ¡reserva.on ¡ § An ¡online ¡algorithm ¡ A ¡is ¡ γ -­‑compe55ve ¡ if ¡it ¡ incurs ¡at ¡most ¡ ¡ γ ¡ ¡.mes ¡the ¡op.mal ¡offline ¡cost ¡ – For ¡any ¡demand ¡sequence ¡ d = d 1 , d 2 ,… C A ( d ) ≤ γ C OPT ( d ) – Aims ¡to ¡minimize ¡the ¡compe..ve ¡ra.o ¡ γ 13 ¡

  14. The ¡Best ¡Possible ¡Outcome ¡ Lemma ¡1: ¡ The ¡best ¡achievable ¡compe..ve ¡ra.o ¡is ¡ 2-­‑ α ¡for ¡ determinis5c ¡online ¡algorithms, ¡and ¡is ¡ e / ( e -­‑1+ ¡α ) ¡for ¡ randomized ¡online ¡algorithms. ¡ ¡ Bahncard ¡problem ¡[Fleischer ¡TCS’01]: ¡ – Goal: ¡reduce ¡cost ¡of ¡using ¡the ¡Deutsche ¡Bahn ¡ – User ¡may ¡buy ¡.ckets ¡on-­‑demand ¡or ¡buy ¡an ¡annual ¡ Bahncard ¡to ¡enjoy ¡discounted ¡.ckets ¡ – No ¡knowledge ¡about ¡user’s ¡travel ¡plans ¡or ¡travel ¡ frequency ¡ 14 ¡

  15. Is ¡the ¡op.mal ¡compe..ve ¡ra.o ¡ achievable ¡with ¡mul.ple ¡instances? ¡ ¡ § “Mul.-­‑Bahncard” ¡problem ¡ § Naïve ¡extension: ¡separate ¡Bahncards ¡ – Does ¡not ¡work ¡ 15 ¡

  16. Op.mal ¡Determinis.c ¡Online ¡ Algorithm ¡ 16 ¡

  17. Demand ¡and ¡Reserva.on ¡Curves ¡ Served ¡by ¡on-­‑demand ¡ instances ¡ Demand curve d Demand Reservation curve x t Time Wasted ¡reserva.ons ¡ 17 ¡

  18. Break-­‑Even ¡Point ¡ § Let ¡ c ¡be ¡the ¡cost ¡of ¡one ¡on-­‑demand ¡instance ¡to ¡ serve ¡workload ¡that ¡spans ¡a ¡reserva.on ¡period. ¡ § Using ¡a ¡reserved ¡instance ¡instead, ¡the ¡cost ¡is ¡ 1+ α c § Break-­‑even ¡point: ¡ ¡ c = 1+ α c ¡ ¡ – Let ¡ ¡ β = 1/(1- α ) – c = β : ¡ ¡Break ¡even – c < β : ¡ ¡On-­‑demand ¡is ¡bener ¡ – c > β : ¡ ¡Reserva.on ¡is ¡bener ¡ 18 ¡

  19. Regret ¡and ¡Compensa.on ¡ § At ¡.me ¡ t , ¡look ¡back ¡for ¡one ¡reserva.on ¡period. ¡ § If ¡the ¡incurred ¡on-­‑demand ¡cost ¡ > β , ¡reserve ¡a ¡ new ¡instance: ¡ r t = r t +1. ¡ One ¡reserva.on ¡period ¡ Shaded ¡demand ¡should ¡have ¡been ¡ 19 ¡ served ¡by ¡a ¡reserved ¡instance ¡

  20. Update ¡Reserva.on ¡Curve ¡ § If ¡a ¡new ¡instance ¡is ¡reserved, ¡update ¡the ¡ reserva.on ¡curve, ¡both ¡forward ¡and ¡ backward. ¡ Demand curve d Demand Reservation curve x t- + 1 t Time τ 20 ¡

  21. Repeat ¡un.l ¡No ¡Regret ¡ § Repeat ¡to ¡reserve ¡more ¡new ¡instances, ¡un.l ¡ the ¡(virtual) ¡incurred ¡on-­‑demand ¡cost ¡ < β . ¡ 21 ¡

  22. Proposi.on ¡1: ¡ The ¡determinis.c ¡online ¡ algorithm ¡is ¡( 2- α ) -­‑ compe..ve, ¡and ¡hence ¡is ¡ op5mal ¡among ¡all ¡determinis.c ¡online ¡ algorithms. ¡ 22 ¡

  23. Op.mal ¡Randomized ¡Online ¡ Algorithm ¡ 23 ¡

  24. Basic ¡Idea ¡ § Can ¡use ¡different ¡thresholds ¡ z ¡(other ¡than ¡the ¡ break-­‑even ¡point ¡ β ) ¡to ¡decide ¡whether ¡to ¡ reserve ¡an ¡instance ¡ – A ¡family ¡of ¡determinis.c ¡algorithms ¡ { A z } § The ¡smaller ¡ z , ¡the ¡more ¡aggressive ¡the ¡ reserva.on ¡strategy ¡ – z = 0 : ¡All-­‑reserved ¡ – z = + ∞ : ¡All-­‑on-­‑demand ¡ ¡ 24 ¡

  25. Basic ¡Idea ¡(Cont’d) ¡ § Randomly ¡choose ¡from ¡the ¡family ¡of ¡ determinis.c ¡algorithms ¡ { A z } – Strike ¡balance ¡between ¡reserving ¡too ¡aggressively ¡ and ¡too ¡conserva.vely ¡ – Randomly ¡pick ¡threshold ¡ z according ¡to ¡the ¡ following ¡density ¡func.on ¡ ⇢ (1 − α ) e (1 − α ) z / ( e − 1 + α ) , z ∈ [0 , β ) , f ( z ) = δ ( z − β ) · α / ( e − 1 + α ) , o.w., – Make ¡instance ¡reserva.on ¡decisions ¡based ¡on ¡ determinis.c ¡algorithm ¡ A z 25 ¡

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend