xvmo on
play

XvMo%on: Unified Virtual Machine Migra%on over Long Distance Ali - PowerPoint PPT Presentation

XvMo%on: Unified Virtual Machine Migra%on over Long Distance Ali Jos Mash,zadeh, Min Cai, Gabriel Tarasuk-Levin, Ricardo Koller, Tal Garfinkel, Sreekanth SeBy Stanford


  1. XvMo%on: ¡ Unified ¡Virtual ¡Machine ¡ Migra%on ¡over ¡Long ¡Distance Ali ¡José ¡Mash,zadeh, ¡Min ¡Cai, ¡Gabriel ¡Tarasuk-­‑Levin, ¡ Ricardo ¡Koller, ¡Tal ¡Garfinkel, ¡Sreekanth ¡SeBy ¡ Stanford ¡University ¡– ¡VMware, ¡Inc. ¡

  2. Live ¡Migra%on Virtual ¡Machine ¡ Source ¡Host ¡ Des,na,on ¡Host ¡ Cloud ¡

  3. Migra%on ¡Benefits • Test ¡to ¡produc,on ¡migra,ons ¡ • Disaster ¡Preparedness ¡Tes,ng ¡ • Cross-­‑Datacenter ¡Load ¡Balancing ¡ • Shared-­‑Nothing ¡Architecture ¡

  4. Migra%on ¡in ¡Prac%ce Virtual ¡Machine ¡ Virtual ¡Machine ¡ Requires: ¡ Shared ¡Storage ¡ Fast ¡Networking ¡ Source ¡Host ¡ Des,na,on ¡Host ¡ Single ¡Subnet ¡

  5. This ¡is ¡not ¡what ¡we ¡really ¡want • Migra,ons ¡are ¡limited ¡to ¡machines ¡that: ¡ With ¡shared ¡storage, ¡fast ¡networks, ¡and ¡same ¡LAN ¡ • Technological ¡Changes: ¡ • Shared ¡nothing ¡applica,on ¡architectures ¡ • Network ¡mobility ¡possible: ¡LISP, ¡OTV, ¡VXlan, ¡OpenFlow ¡ (SDN) ¡ • Very ¡large ¡virtualized ¡datacenters ¡ • No ¡reason ¡for ¡these ¡limita,ons ¡any ¡longer ¡ • Customers ¡have ¡new ¡use ¡cases ¡

  6. XvMo%on • XvMo,on: ¡First ¡commercially ¡viable ¡WAN ¡migra,on ¡ • Achieve ¡Low ¡Down,me ¡AND ¡Atomic ¡Switchover ¡ • Uses ¡Asynchronous ¡IO ¡Mirroring ¡ • Principle: ¡ Flow ¡control ¡mechanisms ¡for ¡memory ¡and ¡disk ¡

  7. Customer ¡Scenario LAN ¡ WAN ¡ Bandwidth ¡ 10 ¡Gbps ¡ 1 ¡Gbps ¡or ¡less ¡ (some,mes ¡40 ¡Gbps) ¡ Latency ¡ <1 ¡ms ¡ ~100 ¡ms ¡ Typical ¡Network ¡ Dedicated ¡NIC(s) ¡ Shared ¡connec,on ¡ between ¡sites ¡

  8. Example ¡Workload Client ¡ Applica,on ¡ Highly ¡Available ¡ Database ¡ HA ¡Timeouts ¡several ¡seconds ¡ TCP ¡Timeouts ¡120 ¡seconds ¡

  9. Down%me ¡(Switchover ¡Time) Virtual ¡Machine ¡ Source ¡Host ¡ Des,na,on ¡Host ¡ Running ¡ Stopped ¡ Running ¡ Goal: ¡Less ¡than ¡1 ¡Second ¡of ¡Down,me ¡

  10. Atomicity Virtual ¡Machine ¡ Virtual ¡Machine ¡ Source ¡Host ¡ Des,na,on ¡Host ¡ Goal: ¡Atomic ¡switchover ¡

  11. XvMo%on • Unifies ¡Memory ¡Migra,on ¡and ¡Storage ¡Migra,on ¡ • Tolerates ¡wide ¡area ¡network ¡bandwidth/latency ¡and ¡ reliability ¡ • Tolerates ¡heterogeneous ¡storage ¡performance ¡ • Down,mes ¡and ¡workload ¡impact ¡comparable ¡to ¡local ¡ migra,on ¡ • Atomic ¡switchover ¡ • Deployed ¡in ¡customer ¡metro ¡area ¡networks ¡ • Cross ¡con,nent ¡migra,on ¡e.g. ¡Palo ¡Alto ¡to ¡India ¡is ¡ prac,cal ¡

  12. Overview • Architecture ¡Overview ¡ • Wide ¡Area ¡Memory ¡Migra,on ¡ • Wide ¡Area ¡Storage ¡Migra,on ¡ • Evalua,on ¡

  13. Unified ¡Live ¡Migra%on Virtual ¡Machine ¡ Virtual ¡Machine ¡ Source ¡Host ¡ Des,na,on ¡Host ¡

  14. XvMo%on ¡Architecture Source ¡ Des4na4on ¡ Virtual ¡Machine ¡IO ¡ Live ¡Migra,on ¡ Live ¡Migra,on ¡ Streams ¡ Streams ¡ TCP ¡ IO ¡Mirror ¡ IO ¡Buffer ¡ IO ¡Buffer/Writer ¡

  15. Overview • Architecture ¡Overview ¡ • Wide ¡Area ¡Memory ¡Migra4on ¡ • Wide ¡Area ¡Storage ¡Migra,on ¡ • Evalua,on ¡

  16. XvMo%on ¡Architecture: ¡ Live ¡Migra%on Source ¡ Des4na4on ¡ Virtual ¡Machine ¡IO ¡ Live ¡Migra,on ¡ Live ¡Migra,on ¡ Streams ¡ Streams ¡ TCP ¡ IO ¡Mirror ¡ IO ¡Buffer ¡ IO ¡Buffer/Writer ¡

  17. Live ¡Migra%on: ¡ Total ¡Time ¡vs ¡Down%me Source ¡ Des,na,on ¡ Memory ¡

  18. Live ¡Migra%on: ¡ Total ¡Time ¡vs ¡Down%me Source ¡ Des,na,on ¡ Memory ¡

  19. Live ¡Migra%on: ¡ Total ¡Time ¡vs ¡Down%me Source ¡ Des,na,on ¡ Memory ¡

  20. Live ¡Migra%on: ¡ Total ¡Time ¡vs ¡Down%me Source ¡ Des,na,on ¡ Memory ¡ • Itera,ve ¡copy ¡hopefully ¡reduces ¡the ¡working ¡set ¡ each ¡itera,on ¡ • Depends ¡on ¡Network ¡being ¡faster ¡than ¡Dirty ¡rate ¡

  21. Current ¡Solu%on: ¡ Early ¡Resume/Post-­‑copy • Problem: ¡Applica,ons ¡can ¡change ¡memory ¡faster ¡ than ¡network ¡bandwidth ¡ • Solu,on: ¡ • Stop ¡migra,on ¡copy ¡everything ¡ • Resume ¡early ¡if ¡down,me ¡is ¡high ¡ • Des,na,on ¡remote ¡page ¡faults ¡on ¡missing ¡pages ¡

  22. Stun ¡During ¡Page ¡Send ¡(SDPS) • Problems ¡with ¡Early ¡Resume: ¡ • Remote ¡page ¡faults ¡very ¡expensive ¡for ¡high ¡latency ¡ networks ¡ • Not ¡atomic: ¡Unsafe ¡for ¡WANs ¡where ¡network ¡hiccups ¡ are ¡more ¡likely ¡ • Solu,on: ¡ ThroBle ¡VM ¡just ¡enough ¡to ¡keep ¡dirty ¡rate ¡< ¡ network ¡rate ¡

  23. SDPS ¡Down%me ¡Results 2.5 ¡ 2 ¡ Down4me ¡(s) ¡ 1.5 ¡ 1 ¡ 0.5 ¡ 0 ¡ 24-­‑users ¡ 48-­‑users ¡ SDPS ¡OFF ¡ SDPS ¡ON ¡

  24. Overview • Architecture ¡Overview ¡ • Wide ¡Area ¡Memory ¡Migra,on ¡ • Wide ¡Area ¡Storage ¡Migra4on ¡ • Evalua,on ¡

  25. XvMo%on ¡Architecture: ¡ IO ¡Mirroring Source ¡ Des4na4on ¡ Virtual ¡Machine ¡IO ¡ Live ¡Migra,on ¡ Live ¡Migra,on ¡ Streams ¡ Streams ¡ TCP ¡ IO ¡Mirror ¡ IO ¡Buffer ¡ IO ¡Buffer/Writer ¡

  26. Problem: ¡ Synchronous ¡ mirroring ¡over ¡the ¡WAN ¡ slows ¡guest ¡workload ¡ Goal: ¡ Hide ¡network ¡latency ¡from ¡VM ¡

  27. XvMo%on ¡Buffering: ¡ Asynchronous ¡IO Source ¡ Des4na4on ¡ VM ¡ Streams ¡ Streams ¡ Transport ¡ Transport ¡ TCP ¡ IO ¡ IO ¡ Framework ¡ Framework ¡ Mirror ¡IO ¡ IO ¡Buffer ¡ Bulk ¡Disk ¡Copy ¡ IO ¡

  28. XvMo%on ¡Buffering: ¡ Asynchronous ¡IO Source ¡ Des4na4on ¡ VM ¡ Streams ¡ Streams ¡ Transport ¡ Transport ¡ TCP ¡ Framework ¡ Framework ¡ IO ¡ IO ¡ IO ¡ IO ¡ IO ¡Buffer ¡

  29. Problem: ¡ Workload ¡may ¡be ¡ too ¡fast ¡on ¡source ¡for ¡the ¡ des;na;on ¡ Goal: ¡ThroBle ¡copy ¡process ¡and ¡ workload ¡as ¡necessary ¡

  30. XvMo%on ¡Buffering: ¡ Conges%on ¡Control Source ¡ Des4na4on ¡ VM ¡ Streams ¡ Streams ¡ Transport ¡ Transport ¡ TCP ¡ Framework ¡ Framework ¡ Back ¡ IO ¡ IO ¡ IO ¡ IO ¡ IO ¡ IO ¡ IO ¡ IO ¡ IO ¡ Pressure ¡ Slow ¡ IO ¡Buffer ¡ Disk ¡ Send ¡free ¡buffer ¡space ¡ IO ¡ Limit ¡per-­‑disk ¡OIOs/buffer ¡on ¡des,na,on ¡

  31. XvMo%on ¡Buffering: ¡ Conges%on ¡Control Source ¡ Des4na4on ¡ VM ¡ Streams ¡ Streams ¡ Transport ¡ Transport ¡ TCP ¡ Framework ¡ Framework ¡ Back ¡ IO ¡ IO ¡ IO ¡ IO ¡ IO ¡ IO ¡ IO ¡ IO ¡ IO ¡ Pressure ¡ Slow ¡ IO ¡Buffer ¡ Disk ¡ Send ¡free ¡buffer ¡space ¡ IO ¡ Limit ¡per-­‑disk ¡OIOs/buffer ¡on ¡des,na,on ¡

  32. Overview • Architecture ¡Overview ¡ • Wide ¡Area ¡Memory ¡Migra,on ¡ • Wide ¡Area ¡Storage ¡Migra,on ¡ • Evalua4on ¡

  33. Evalua%on • Migra,on ¡Time: ¡Total ¡end-­‑to-­‑end ¡,me ¡ • Down,me: ¡Time ¡machine ¡execu,on ¡is ¡suspended ¡ for ¡final ¡switchover ¡ • Workload ¡Penalty: ¡Average ¡percentage ¡penalty ¡to ¡ the ¡VM ¡workload ¡ • OLTP ¡IO ¡Workload ¡(data ¡disk ¡only) ¡ • 10 ¡GB ¡system/12 ¡GB ¡data ¡

  34. XvMo%on ¡Down%mes 1.2 ¡ 1 ¡ Down,me ¡(s) ¡ 0.8 ¡ 0.6 ¡ 0.4 ¡ 0.2 ¡ 0 ¡ 0 ¡ 50 ¡ 100 ¡ 150 ¡ 200 ¡ Latency ¡(ms) ¡ Take ¡Away: ¡~1 ¡second ¡down,me ¡independent ¡of ¡distance ¡

  35. XvMo%on ¡Migra%on ¡Time Latency ¡ 300 ¡ 250 ¡ Total ¡Time ¡(s) ¡ 200 ¡ 150 ¡ 100 ¡ 50 ¡ 0 ¡ 0 ¡ 50 ¡ 100 ¡ 150 ¡ 200 ¡ Latency ¡(ms) ¡ Take ¡Away: ¡small ¡linear ¡,me ¡increase ¡with ¡distance ¡

  36. California ¡to ¡India ¡Migra%on • 1 ¡Gbps ¡network ¡with ¡214 ¡ms ¡RTT ¡ • OLTP: ¡68 ¡MB/s ¡disk ¡copy ¡– ¡89 ¡MB/s ¡memory ¡copy ¡ • ~11% ¡Workload ¡Penalty ¡from ¡ThroBling ¡

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