dynamic and secure application consolidation with nested virtualization and library os in cloud...

1
Dynamic and Secure Application Consolidation with Nested Virtualization and Library OS in Cloud Kouta Sannomiya and Kenichi Kourai (Kyushu Institute of Technology) FlexCapsule OS rary OS for running inside app VMs imized for each application uce the overhead of nested virtualization ed on Xen’s Mini-OS port for VM migration pend/resume para-virtualized devices d only a small amount of memory ieve faster migration than traditional VM Optimizing Instance Deployment in IaaS -as-you-go pricing is usual in IaaS clouds imum instance deployment is desired for cost saving le-in/scale-out: adjust the number of instances not reduce the number of instance to less than one le-up/scale-down: adjust the amount of resources se service downtime when switching instance types Scale- in Scale- out Instanc e 1 App CPU Instanc e 2 App Instanc e 1 App Scale- down Scale-up Instanc e 1 App CPU CPU CPU CPU CPU CPU CPU CPU CPU CPU CPU CPU RAM RAM RAM RAM RAM RAM RAM pplication consolidation onsolidate applications into one instance his causes service downtime solation among applications becomes weaker consolidat ion de- consolidation Instan ce 1 App 1 Instan ce2 App 2 Instan ce 3 App 3 Instanc e 1 App 1 App 2 App 3 FlexCapsule Run each application in a lightweight virtual machine Run app VMs inside an instance using nested virtualization Migrate an app VM with an application between instances Reduce downtime on application consolidation Provide strong isolation between app VMs Guarantee security among consolidated application Instance 1 App VM 1 App 1 Library OS App VM 2 App 2 Library OS Managemen t VM OS Server Guest hypervisor Host hypervisor Instance 2 App VM 2 Guest hypervisor Migrati on App VM’s Migration Performance The downtime was 0.1s shorter than Linux VM Thanks to simple and fast suspend/resume The migration time was 2x shorter than Linux VM In minimum memory footprint FlexCapsule OS Server Enable managing app VMs like traditional proc Start, kill, get application information (ps) Enable cooperation between app VMs Achieve fork() by duplicating an app VM Manage packet forwarding rules to app VMs An app VM dynamically registers a new rule on lis Administr ator Instance App VM 1 App 1 App VM 2 App 2 Managemen t VM OS Server Shell Get information ps command Result: Clie nt App VM 1 192.168.122.1 0 : 80 App VM 2 parent 192.168.122.1 1 : 25 Management VM 131.206.203.12 3 NAPT Table 80 : 192.168.122.10:8 0 App VM 2 child 192.168.122.1 2 25 : 192.168.122.10:2 5 OS Server Management fork request create child Impact of Scale-up/scale-down We measured application performance when scaling up/down an instance Run the Dhrystone benchmark in an app VM The performance was changed Future Work Implement FlexCapsule OS based on OSv (in progress) Implement necessary functions in the OS server 131.206.203.123 : 80 forwarding App VM App FlexCapsu le OS register 50 60 70 80 90 100 0 2 4 6 8 10 CPU Cap (%) time (sec) Throughput improvement 0 32 64 96 128 0 0.1 0.2 0.3 0.4 0.5 App VM (Mini- OS) Linux VM Allocated Memory MB Downtime(sec) 0 32 64 96 128 0 3 6 9 12 15 App VM (Mini- OS) Allocated Memory(MB) Migration time (sec) Hypervisor : Xen 4.2

Upload: imogen-melton

Post on 04-Jan-2016

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Dynamic and Secure Application Consolidation with Nested Virtualization and Library OS in Cloud Kouta Sannomiya and Kenichi Kourai (Kyushu Institute of

Dynamic and Secure Application Consolidation with Nested Virtualization and Library OS in Cloud

Kouta Sannomiya and Kenichi Kourai (Kyushu Institute of Technology)

FlexCapsule OS Library OS for running inside app VMs

− Optimized for each application− Reduce the overhead of nested virtualization− Based on Xen’s Mini-OS

Support for VM migration− Suspend/resume para-virtualized devices

Need only a small amount of memory− Achieve faster migration than traditional VM

Optimizing Instance Deployment in IaaS Pay-as-you-go pricing is usual in IaaS clouds

− Minimum instance deployment is desired for cost saving Scale-in/scale-out: adjust the number of instances

− Cannot reduce the number of instance to less than one Scale-up/scale-down: adjust the amount of resources

− Cause service downtime when switching instance types

Scale-in

Scale-out

Instance 1App

CPU

Instance 2App

Instance 1App Scale-down

Scale-up

Instance 1App

CPU

CPU CPU

CPU CPU

CPU CPU

CPU CPU

CPU CPUCPU

RAM

RAM

RAM

RAM

RAM

RAMRAM

Application consolidation− Consolidate applications into one instance− This causes service downtime− Isolation among applications becomes weaker

consolidation

de-consolidation

Instance 1

App 1

Instance2

App 2

Instance 3

App 3

Instance 1App 1

App 2

App 3

FlexCapsule Run each application in a lightweight virtual machine

− Run app VMs inside an instance using nested virtualization− Migrate an app VM with an application between instances• Reduce downtime on application consolidation

− Provide strong isolation between app VMs• Guarantee security among consolidated application

Instance 1App VM 1

App 1

Library OS

App VM 2

App 2

Library OS

Management VM

OS Server

Guest hypervisor

Host hypervisor

Instance 2App VM 2

Guest hypervisor

Migration

App VM’s Migration Performance The downtime was 0.1s shorter than Linux VM

− Thanks to simple and fast suspend/resume The migration time was 2x shorter than Linux VM

− In minimum memory footprint

FlexCapsule OS Server Enable managing app VMs like traditional processes

− Start, kill, get application information (ps)

Enable cooperation between app VMs− Achieve fork() by duplicating an app VM

Manage packet forwarding rules to app VMs− An app VM dynamically registers a new rule on listen()

AdministratorInstance

App VM 1App 1

App VM 2App 2

Management VM

OS ServerShell

Get information

ps command

Result:

Client

App VM 1192.168.122.10 : 80

App VM 2parent

192.168.122.11 : 25

Management VM131.206.203.123

NAPT Table80 : 192.168.122.10:80

App VM 2child

192.168.122.12

25 : 192.168.122.10:25

OS Server

Management

fork request create child

Impact of Scale-up/scale-down We measured application performance when scaling

up/down an instance− Run the Dhrystone benchmark

in an app VM− The performance was changed

Future Work Implement FlexCapsule OS based on OSv (in progress) Implement necessary functions in the OS server Run various applications in app VMs

131.206.203.123 : 80 forwarding

App VMApp

FlexCapsule OS

register

50 60 70 80 90 1000

2

4

6

8

10

CPU Cap (%)

time

(sec

)

Throughput improvement

0 32 64 96 1280

0.1

0.2

0.3

0.4

0.5

App VM (Mini-OS)

Linux VM

Allocated Memory( MB)

Dow

ntim

e(se

c)

0 32 64 96 1280

3

6

9

12

15

App VM (Mini-OS)

Linux VM

Allocated Memory(MB)

Mig

ratio

n tim

e (s

ec)

Hypervisor : Xen 4.2