+ All Categories
Home > Documents > COMMA: Coordinating the Migration of Multi-tier Applications Jie Zheng, T. S. Eugene Ng, Zhaolei Liu...

COMMA: Coordinating the Migration of Multi-tier Applications Jie Zheng, T. S. Eugene Ng, Zhaolei Liu...

Date post: 01-Jan-2016
Category:
Upload: dale-blankenship
View: 215 times
Download: 0 times
Share this document with a friend
Popular Tags:
19
COMMA: Coordinating the Migration of Multi-tier Applications Jie Zheng, T. S. Eugene Ng, Zhaolei Liu Rice University Kunwadee Sripanidkulchai NECTEC, Thailand VEE’14
Transcript
Page 1: COMMA: Coordinating the Migration of Multi-tier Applications Jie Zheng, T. S. Eugene Ng, Zhaolei Liu Rice University Kunwadee Sripanidkulchai NECTEC, Thailand.

COMMA: Coordinating the Migration of Multi-tier ApplicationsJie Zheng, T. S. Eugene Ng, Zhaolei LiuRice University

Kunwadee SripanidkulchaiNECTEC, Thailand

VEE’14

Page 2: COMMA: Coordinating the Migration of Multi-tier Applications Jie Zheng, T. S. Eugene Ng, Zhaolei Liu Rice University Kunwadee Sripanidkulchai NECTEC, Thailand.

MotivationLive migration can migrate single

VM efficiently.Existing solutions on migrating

VMs in a multi-tier application can cause serious performance degradation.

Page 3: COMMA: Coordinating the Migration of Multi-tier Applications Jie Zheng, T. S. Eugene Ng, Zhaolei Liu Rice University Kunwadee Sripanidkulchai NECTEC, Thailand.

Multi-tier Application

Page 4: COMMA: Coordinating the Migration of Multi-tier Applications Jie Zheng, T. S. Eugene Ng, Zhaolei Liu Rice University Kunwadee Sripanidkulchai NECTEC, Thailand.

Split-components Problem

Page 5: COMMA: Coordinating the Migration of Multi-tier Applications Jie Zheng, T. S. Eugene Ng, Zhaolei Liu Rice University Kunwadee Sripanidkulchai NECTEC, Thailand.

Existing Solutions

Page 6: COMMA: Coordinating the Migration of Multi-tier Applications Jie Zheng, T. S. Eugene Ng, Zhaolei Liu Rice University Kunwadee Sripanidkulchai NECTEC, Thailand.

Problem FormulationGiven a set of n VMs in a multi-

tier application.Minimize the performance

degradation, or impact.

◦TM[i,j]: communication traffic rates between VMs prior to the start of migration.

n

i

n

ijji jiTMttimpact

1

,

Page 7: COMMA: Coordinating the Migration of Multi-tier Applications Jie Zheng, T. S. Eugene Ng, Zhaolei Liu Rice University Kunwadee Sripanidkulchai NECTEC, Thailand.

COMMA“COordinating the Migration of

Multi-tier Applications”◦The first migration coordination

system for multiple VMs.◦Centralized architecture.◦A two-stage scheduling.

Page 8: COMMA: Coordinating the Migration of Multi-tier Applications Jie Zheng, T. S. Eugene Ng, Zhaolei Liu Rice University Kunwadee Sripanidkulchai NECTEC, Thailand.

Two-stage SchedulingFirst stage: migrates static

content.Second stage : migrate

dynamically generated content.

Page 9: COMMA: Coordinating the Migration of Multi-tier Applications Jie Zheng, T. S. Eugene Ng, Zhaolei Liu Rice University Kunwadee Sripanidkulchai NECTEC, Thailand.

First StageMigrate VMs in parallel and finish

all VMs’ data migration at the same time.◦The amount of migrated data is

fixed.Adjusts each VM’s migration

speed according to its virtual disk size _SIZETOTAL_DISK

BANDWIDTH*DISK_SIZEivmi

speed

Page 10: COMMA: Coordinating the Migration of Multi-tier Applications Jie Zheng, T. S. Eugene Ng, Zhaolei Liu Rice University Kunwadee Sripanidkulchai NECTEC, Thailand.

Second StageMigrate dynamically generated

content.◦After the first stage, a set of dirty

blocks are recorded.◦The minimum migration speed of a

VM must be greater than its block dirty rate.

VMs are divided into groups.BANDWIDTH}rateMax_dirty_{

groupvmi

i

Page 11: COMMA: Coordinating the Migration of Multi-tier Applications Jie Zheng, T. S. Eugene Ng, Zhaolei Liu Rice University Kunwadee Sripanidkulchai NECTEC, Thailand.

Inter-group SchedulingTo minimize the impact.Brute-force

◦O(2n*n!)

Page 12: COMMA: Coordinating the Migration of Multi-tier Applications Jie Zheng, T. S. Eugene Ng, Zhaolei Liu Rice University Kunwadee Sripanidkulchai NECTEC, Thailand.

Inter-group Scheduling(Cont.)To minimize the impact.Heuristic

◦Repeatedly take the largest rate element (rate, VMi, VMj) from the list L, check if VMi and VMj are already in the group set S. Merge group or insert new groups.

◦Find the permutation of groups in S with minimal impact

◦O(n!)

Page 13: COMMA: Coordinating the Migration of Multi-tier Applications Jie Zheng, T. S. Eugene Ng, Zhaolei Liu Rice University Kunwadee Sripanidkulchai NECTEC, Thailand.

Intra-group SchedulingStarting the VMs’ migration at

the same time is not an efficient use of available migration bandwidth.

Page 14: COMMA: Coordinating the Migration of Multi-tier Applications Jie Zheng, T. S. Eugene Ng, Zhaolei Liu Rice University Kunwadee Sripanidkulchai NECTEC, Thailand.

Intra-group Scheduling(Cont.)Estimate the migration time of each

VM.◦Assume the minimal required speed for

each VM is equal to the VM’s maximal dirty rate

“Finish migration at the same time”◦Set different start time to each VM.

Extra available bandwidth will be allocated to the VMs to minimize the total migration time of the group.

Page 15: COMMA: Coordinating the Migration of Multi-tier Applications Jie Zheng, T. S. Eugene Ng, Zhaolei Liu Rice University Kunwadee Sripanidkulchai NECTEC, Thailand.

Evaluation-SettingSix physical machines.Kernel-based Virtual

Machine(KVM)Multi-tier application: RUBiS

◦Includes web server, application server, database server.

Performance metric: average response time of the request from clients per second.

Page 16: COMMA: Coordinating the Migration of Multi-tier Applications Jie Zheng, T. S. Eugene Ng, Zhaolei Liu Rice University Kunwadee Sripanidkulchai NECTEC, Thailand.

Migrate 3VMs with different strategies.

Evaluation-Performance

Page 17: COMMA: Coordinating the Migration of Multi-tier Applications Jie Zheng, T. S. Eugene Ng, Zhaolei Liu Rice University Kunwadee Sripanidkulchai NECTEC, Thailand.

Evaluation-ImpactMigrate 4 VMs from at most three

physical machines to the other three.

Page 18: COMMA: Coordinating the Migration of Multi-tier Applications Jie Zheng, T. S. Eugene Ng, Zhaolei Liu Rice University Kunwadee Sripanidkulchai NECTEC, Thailand.

Evaluation-EC2Migrate 2 SPECweb2005 VMs

from a university campus network to EC2 instances.

Page 19: COMMA: Coordinating the Migration of Multi-tier Applications Jie Zheng, T. S. Eugene Ng, Zhaolei Liu Rice University Kunwadee Sripanidkulchai NECTEC, Thailand.

ConclusionPropose COMMA, the first

coordinated live VM migration system for multi-tier applications.◦Based on a two-stage scheduling

algorithm to coordinate the migration of VMs.

◦The goal is to minimize the migration’s impact on inter-component communications.


Recommended