virtual cloud r98922135 陳昌毅 r98944033 顏昭恩 r98922150 黃伯淳 2010/06/03

20
Virtual cloud R98922135 陳陳陳 R98944033 陳陳陳 R98922150 陳陳陳 2010/06/03

Upload: brice-wilkinson

Post on 19-Jan-2016

269 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Virtual cloud R98922135 陳昌毅 R98944033 顏昭恩 R98922150 黃伯淳 2010/06/03

Virtual cloudR98922135 陳昌毅R98944033 顏昭恩R98922150 黃伯淳

2010/06/03

Page 2: Virtual cloud R98922135 陳昌毅 R98944033 顏昭恩 R98922150 黃伯淳 2010/06/03

Outline

• Goal• Introduction– Full virtualization– Para-virtualization

• VMware• XEN• System Diagram• Current Progress• Future Work• Q&A

Page 3: Virtual cloud R98922135 陳昌毅 R98944033 顏昭恩 R98922150 黃伯淳 2010/06/03

Goal

• Construct cloud platform that provides VM as a service

• Motivation– A Private cloud platform– Common cloud platform (Eucalyptus, ONE) doesn’t provide

migration

• Challenge– A convenient environment to migrate VM

• Access image through NFS is extremely slow

Page 4: Virtual cloud R98922135 陳昌毅 R98944033 顏昭恩 R98922150 黃伯淳 2010/06/03

• XEN– A hypervisor– Virtualization

• Eucalyptus– Controller system– NO migration mechanism

• OpenNEbula

Related work

Page 5: Virtual cloud R98922135 陳昌毅 R98944033 顏昭恩 R98922150 黃伯淳 2010/06/03

• We use a distributed share file system to host VM image. – VM can migrate without a central storage.

• Construct VMs as multiple prototypes according to their functionalities.

Innovations

Page 6: Virtual cloud R98922135 陳昌毅 R98944033 顏昭恩 R98922150 黃伯淳 2010/06/03

Why Virtualization

• To increase the utilization of costly hardware resources.

• Easy to management.• Portability.

Page 7: Virtual cloud R98922135 陳昌毅 R98944033 顏昭恩 R98922150 黃伯淳 2010/06/03

XEN

• Para-virtualization• Full virtualization (Hardware assisted)• Xend (domain-0)

Page 8: Virtual cloud R98922135 陳昌毅 R98944033 顏昭恩 R98922150 黃伯淳 2010/06/03

System Diagram

Page 9: Virtual cloud R98922135 陳昌毅 R98944033 顏昭恩 R98922150 黃伯淳 2010/06/03

Share File SystemPros Cons

NFS Easy to manage IO bottleneck

Glustre Distribute file system Need to modify kernel

Gluster User space distribute file system

P2P

Modified Glustre kernel is unstable to work with XEN

Page 10: Virtual cloud R98922135 陳昌毅 R98944033 顏昭恩 R98922150 黃伯淳 2010/06/03

Migration

• Why we need live migration? We want to move VM without interrupting VM

service.Products:– Xen : live migration– VMware:VMotion

Two important consideration: 1. Downtime 2. Total migration time

Page 11: Virtual cloud R98922135 陳昌毅 R98944033 顏昭恩 R98922150 黃伯淳 2010/06/03

Pre-copy migration

Page 12: Virtual cloud R98922135 陳昌毅 R98944033 顏昭恩 R98922150 黃伯淳 2010/06/03

Managed Migration(Xen)

1. 1st round: – Copy all memory pages to destination machine. – Replace shadow page table to original one, and mark all pages read-

only . – Create a dirty bit map for the VM.

2. 2nd-(n-1)th round: – During the pages transferring, if VM want to modify a page, it will

invoke Xen to set the appropriate bit in the dirty bit map. – Dirty pages will be resend again.– Reset dirty bit map for the next round.

3. nth round: – When the Dirty rate is bigger than up bound, begin to do stop-and-

copy.

Page 13: Virtual cloud R98922135 陳昌毅 R98944033 顏昭恩 R98922150 黃伯淳 2010/06/03

User Interface

Page 14: Virtual cloud R98922135 陳昌毅 R98944033 顏昭恩 R98922150 黃伯淳 2010/06/03

User Interface

Page 15: Virtual cloud R98922135 陳昌毅 R98944033 顏昭恩 R98922150 黃伯淳 2010/06/03
Page 16: Virtual cloud R98922135 陳昌毅 R98944033 顏昭恩 R98922150 黃伯淳 2010/06/03

Demo- Migration

•Source

Page 17: Virtual cloud R98922135 陳昌毅 R98944033 顏昭恩 R98922150 黃伯淳 2010/06/03

Demo- Migration

• Destination

Page 18: Virtual cloud R98922135 陳昌毅 R98944033 顏昭恩 R98922150 黃伯淳 2010/06/03

• 13 nodes plus a master to sort 8.6GB data.• Local– All images are on local disks.

• SFS_local– All images are on local disks and are accessed via

Gluster file system.• SFS_remote– All images are on remote disks and are accessed

over Gluster file system.

Hadoop Benchmark

Page 19: Virtual cloud R98922135 陳昌毅 R98944033 顏昭恩 R98922150 黃伯淳 2010/06/03

1 2 3 4 5 6 7 8 9 100

20406080

100120140160180

localSFS_localSFS_remote

Iteration

Performance Comparison

local SFS_local SFS_remote

87.50 103.90 160.70 Sec

Seconds

Page 20: Virtual cloud R98922135 陳昌毅 R98944033 顏昭恩 R98922150 黃伯淳 2010/06/03

Q&A