art of using xen at scale

40
Art of Using Xen at Scale Pradeep Vincent Principal Engineer, Amazon Web Services

Upload: xen-project

Post on 30-Nov-2014

26.065 views

Category:

Documents


0 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Art of Using Xen at Scale

Art  of  Using  Xen  at  Scale  

Pradeep  Vincent  Principal  Engineer,  Amazon  Web  Services    

 

Page 2: Art of Using Xen at Scale

Agenda  

•  Amazon  Web  Services  -­‐  Intro  •  Virtualiza@on  in  the  Cloud  •  Scale  Impact  on  Virtualiza@on  •  Xen  Enhancements..  •  Future  Features  –  Some  Thoughts  

Page 3: Art of Using Xen at Scale

AMAZON  WEB  SERVICES  -­‐  INTRO    

Page 4: Art of Using Xen at Scale

Amazon  Web  Services    

 “..delivers  a  highly  scalable  cloud  compu@ng  

plaIorm  with  high  availability  and  dependability,  and  the  flexibility  to  enable  

customers  to  build  a  wide  range  of  applica@ons.”  

Page 5: Art of Using Xen at Scale

Amazon  Web  Services    •  Includes  more  than  20  Services  –  Compute  Services  

•  EC2  –  Storage  Services  

•  S3  •  EBS  

– Database  Services  –  Content  Delivery  Services  – Messaging  Services  – And  many  more..  

•  More  Details  :  aws.amazon.com  

Page 6: Art of Using Xen at Scale

EC2  Instance  Types  

Standard  Instances  

Micro  Instances  

High  Memory  Instances  

High  Compute  Instances  

Cluster  Compute  Instances  

Page 7: Art of Using Xen at Scale

VIRTUALIZATION  IN  THE  CLOUD  

Page 8: Art of Using Xen at Scale

Virtualiza@on  and  Cloud  

•  Virtualiza@on  a  key  enabler  for  Cloud  Compu@ng  

•  Virtualiza@on  Provides..  – Secure  Control  Plane    – Fine  grained  resource  alloca@on  – Cloud  Specific  Business  Logic  in  Dom-­‐0    

Page 9: Art of Using Xen at Scale

Virtualiza@on  in  the  Cloud  

•  Guest  OS(Kernel)  chosen  by  customer  – Large  and  ever  changing  set  

•  Aggressive  inges@on  of  Security  fixes  – Security  is  paramount  

•  Unique  Challenges  at  Scale..    

 

Page 10: Art of Using Xen at Scale

SCALE  IMPACT  ON  VIRTUALIZATION  

Page 11: Art of Using Xen at Scale

Scale  Ma_ers..  

Page 12: Art of Using Xen at Scale

   

Intra  Host  ‘Scaling’  Mul@-­‐tenancy  

 

Page 13: Art of Using Xen at Scale

Mul@-­‐tenancy  

•  Scaling  Challenges  – Performance  Scaling:  I/O  performance  etc  – Tools  Scaling:  XM  etc  

•  Isola@on  Challenges  – Performance  Isola@on  – VM  Fault  Isola@on  

Page 14: Art of Using Xen at Scale

Fault  Isola@on  

Page 15: Art of Using Xen at Scale

VM-­‐level  Fault  Isola@on  

•  Failure  related  to  one  VM  isolated  from  Peer  VMs  

•  Good  Hypervisor  Level  Fault  Isola@on  in  Xen  •  End-­‐to-­‐End  Fault  Isola@on  Important  –  Including  Dom-­‐0  I/O  Stack  –  Including  Control  Plane  (e.g.  Xenwatch)  

Page 16: Art of Using Xen at Scale

Performance  

Page 17: Art of Using Xen at Scale

Consistency  of  Performance    

Performance  Isola@on    

Page 18: Art of Using Xen at Scale

Performance  Scaling  

•  Cri@cal  for  Mul@-­‐tenancy  •  Par@cularly  I/O  Performance  •  Good  in  Xen  •  Deserves  con@nued  Focus..  

 

Page 19: Art of Using Xen at Scale

I/O  Performance  

 

Direct  AHached  Device  Performance  Good  But..    

Loss  of  Control  and  Flexibility  Not  Great  

Page 20: Art of Using Xen at Scale

   

Para-­‐virtualized  I/O  Performance  Important  

 

Page 21: Art of Using Xen at Scale

Reduce  Cost  

Page 22: Art of Using Xen at Scale

Hardware  Enablement  

•  Xen  Enablement  bit  ‘Slow’  for  some  hardware  

•  Faster  ‘Produc@on’  quality  enablement  in  Xen  – Help  Cloud  adopt  new  hardware  faster  

 

Page 23: Art of Using Xen at Scale

   Upstream  Linux  IntegraOon  GREAT  !!  

Page 24: Art of Using Xen at Scale

Interface  Compa@bility  

Page 25: Art of Using Xen at Scale

Interface  Compa@bility  

•  Applies  to  Many  Types  of  Interfaces  – Paravirtualized  Driver  Interface    •  Blkfront  –  Blkback  •  NeIront  –  Netbk  

– Hypercall  Interface  – Control  Plane  Interface  (XM  vs  XL)  

•  Has  Been  Good  in  Xen    – Deserves  con@nued  focus  

Page 26: Art of Using Xen at Scale

XEN  ENHANCEMENTS..  

Page 27: Art of Using Xen at Scale

Serve  Spiky  Workloads  For  Less  

Page 28: Art of Using Xen at Scale

Micro  instance  in  EC2  

Page 29: Art of Using Xen at Scale

Micro  Instance  and  CPU  Hogs  

Page 30: Art of Using Xen at Scale

Large  ‘CPU  Time’  Bucket  

10s  of    milliseconds  

Bigger  than  10s  of  millisecs  

Page 31: Art of Using Xen at Scale

FUTURE  FEATURES    Some  Thoughts  on  

Page 32: Art of Using Xen at Scale

Mul@-­‐@er  Scheduling  ?  

•  Lots  of  use  cases  in  the  Cloud  •  Classes  with  priori@za@on  – Beyond  ‘CPU  Pools’  – Similar  to  Linux  Scheduler  ?  – Real  Time  Scheduling/Advanced  Func@onality  

•  Preserve  exis@ng  Scheduler  Seman@cs  to  the  extent  possible  

Page 33: Art of Using Xen at Scale

Dom-­‐0  Resource  Accoun@ng  

•  CPU  consumed  in  Dom-­‐0  for  each  VM  –  Isn’t  accounted  against  the  VM  per  se  – Fairness  Issues  – Priori@za@on  Issues    

Page 34: Art of Using Xen at Scale

Dom-­‐0  Resource  Accoun@ng  

•  Possible  Solu@ons  – Group  Scheduling  in  Dom-­‐0  –  Par@al  Solu@on  – Xen  and  Dom-­‐0  Scheduler  Coopera@on  ??  •  Hypervisor  –  Dom-­‐0  Interface  Blurred..  

– Something  else  ??  

•  Scheduler  deals  with  Threads..  – One  Thread  serving  Mul@ple  VMs  not  great  –  ‘Thread  Aligned’  VM  Resource  Consump@on  Good  

Page 35: Art of Using Xen at Scale

Key  Takeaways  

•  Virtualiza@on  Key  For  Cloud  •  End-­‐to-­‐End  Fault  Isola@on  Important  •  Performance  Isola@on  And  Performance  Consistency  Important  

•  Para-­‐virtualized  I/O  Performance  Important  •  Faster  ‘Produc@on’  Quality  Hardware  Enablement    

•  Interface  Compa@bility  Cri@cal  

Page 36: Art of Using Xen at Scale

SHAMELESS  MARKETING  

Page 37: Art of Using Xen at Scale

We  are  Hiring  !  

Page 38: Art of Using Xen at Scale

We  are  Hiring  !  

We  are  Hiring  !  

Page 39: Art of Using Xen at Scale

We  are  Hiring  !  

We  are  Hiring  !  

We  are  Hiring  !  We  are  Hirin

g  !  

aws.amazon.com/careers  

Page 40: Art of Using Xen at Scale

THANK  YOU  

•  EMAIL:  [email protected]  

•  MORE  INFO:  WWW.AWS.AMAZON.COM