model-based run-time adaptation in dynamic virtualized

56
KIT University of the State of Baden-Wuerttemberg and National Research Center of the Helmholtz Association SOFTWARE DESIGN AND QUALITY GROUP INSTITUTE FOR PROGRAM STRUCTURES AND DATA ORGANIZATION, FACULTY OF INFORMATICS www.kit.edu Model-based Run-Time Adaptation in Dynamic Virtualized Resource Landscapes Nikolaus Huber ([email protected]) Open Excellence Workshop, Karlsruhe, December 4 th , 2012

Upload: others

Post on 12-Feb-2022

2 views

Category:

Documents


0 download

TRANSCRIPT

KIT – University of the State of Baden-Wuerttemberg and

National Research Center of the Helmholtz Association

SOFTWARE DESIGN AND QUALITY GROUP

INSTITUTE FOR PROGRAM STRUCTURES AND DATA ORGANIZATION, FACULTY OF INFORMATICS

www.kit.edu

Model-based Run-Time Adaptation in Dynamic Virtualized Resource Landscapes

Nikolaus Huber ([email protected])

Open Excellence Workshop, Karlsruhe, December 4th, 2012

Descartes Research Group

http://www.descartes-research.net 2 Dec. 04, 2012

Overview

do we need models?

should the models look like?

do we do with the models?

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Descartes Research Group

http://www.descartes-research.net 3 Dec. 04, 2012

Data Center n

Data Center 2

Data Center 1

Motivation

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Internet

Descartes Research Group

http://www.descartes-research.net 4 Dec. 04, 2012

Data Center n

Data Center 2

Data Center 1

Motivation

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Internet

SLA Violation Resource Inefficiency

Descartes Research Group

http://www.descartes-research.net 5 Dec. 04, 2012

Data Center n

Data Center 2

Data Center 1

Motivation

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Internet

Server 1 .. Server n

Virtual Machines

Server

Rack

SLA Violation Resource Inefficiency

Descartes Research Group

http://www.descartes-research.net 6 Dec. 04, 2012

Data Center n

Data Center 2

Data Center 1

Motivation

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Internet

Server 1 .. Server n

Virtual Machines

Server

Rack

SLA Violation Resource Inefficiency

Descartes Research Group

http://www.descartes-research.net 7 Dec. 04, 2012

Data Center n

Data Center 2

Data Center 1

Motivation

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Internet

Server 1 .. Server n

Virtual Machines

Server

Rack

+1

SLA Violation Resource Inefficiency

Descartes Research Group

http://www.descartes-research.net 8 Dec. 04, 2012

Data Center n

Data Center 2

Data Center 1

Motivation

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Internet

Server 1 .. Server n

Virtual Machines

Server

Rack

+1 +1

SLA Violation Resource Inefficiency

Descartes Research Group

http://www.descartes-research.net 9 Dec. 04, 2012

Data Center n

Data Center 2

Data Center 1

Motivation

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Internet

Server 1 .. Server n

Virtual Machines

Server

Rack

+1 +1

SLA Violation Resource Inefficiency

Descartes Research Group

http://www.descartes-research.net 10 Dec. 04, 2012

Motivation

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Meta-Model that

Captures structural information

Reflects dynamic aspects

Describes adaptation process

Descartes Research Group

http://www.descartes-research.net 11 Dec. 04, 2012

Adaptation Points

Application Architecture

Resource Landscape

Adaptation Process

<<Container>>Node1

<<Container>>Node3

<<Container>>Node2

<<InternalAction>>

ResourceDemandX

Degrees-of-

Freedom

DMM: Resource Landscape

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Further details in:

• N. Huber, F. Brosig and S. Kounev. Modeling Dynamic Virtualized Resource Landscapes. In Proceedings of the 8th ACM SIGSOFT International Conference on the Quality of Software Architectures (QoSA 2012), Bertinoro, Italy, June 25-28, 2012.

Descartes Research Group

http://www.descartes-research.net 12 Dec. 04, 2012

Resource Lanscape: Example

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Descartes Research Group

http://www.descartes-research.net 13 Dec. 04, 2012

Common concepts in

data centers

Containers/Layering

(physical and logical)

Abstraction of resources

Resource sharing

Advantage:

Flexibility

Structural information

Resource Layers & Containers

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Data Center

Cluster

Hardware

Virtualization

Middleware

Service

Descartes Research Group

http://www.descartes-research.net 14 Dec. 04, 2012

Resource Layers & Containers

DistributedDataCenter

DataCenter

CompositeHardwareInfrastucture

belongsTo

consistsOf

0..1

1..*

Container

RuntimeEnvironment

ofClass : RuntimeEnvironmentClasses

ComputingInfrastructure

ContainerTemplateConfigurationSpecification

* 0..1templateconfigSpec

1

*

contains

containedInAbstractHardwareInfrastucture

1..*

1..*

1 contains

partOf

contains

0..1

NetworkInfrastructureStorageInfrastructure

ofContainer

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Container

RuntimeEnvironment

ofClass : RuntimeEnvironmentClasses

ComputingInfrastructure

ContainerTemplateConfigurationSpecification

* 0..1templateconfigSpec

1

*

contains

containedIn0..1ofContainer

Descartes Research Group

http://www.descartes-research.net 15 Dec. 04, 2012

Resource Landscape: Container Templates

and Runtime Environment Classes

ContainerRepository

ContainerTemplate

ConfigurationSpecification

templates

templateConfig

0..1

0..*

0..1

1

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

HYPERVISOROSOS_VMPROCESS_VMMIDDLEWAREOTHER

«enumeration»RuntimeEnvironmentClasses

Descartes Research Group

http://www.descartes-research.net 16 Dec. 04, 2012

Resource Landscape:

Configuration Specification

ConfigurationSpecification

CustomConfigurationSpecificationActiveResourceSpecificationPassiveResourceSpecification

PassiveResourceType

capacity : EBigInteger

PassiveResourceCapacity capacity

1

0..*passiveResourceSpecification

EObject

0..1

non-functionalProperties

DELAYFCFSPROCESSOR_SHARINGRANDOMN/A

«enumeration»SchedulingPolicy

schedulingPolicy : SchedulingPolicyprocessingRate : EDouble

ProcessingResourceSpecification

ProcessingResourceTypenumber : EBigInteger

NumberOfParallelProcessingUnits

bandwidth : EDouble

LinkingResourceSpecification

CommunicationLinkResourceType

1

0..*

parentResourceSpecification

processingResources

activeResourceType

processingResourceSpec1

1 nrOfParProcUnitscommunicationLinkResourceType

0..*

1parentResourceSpecification

linkingResources

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Descartes Research Group

http://www.descartes-research.net 17 Dec. 04, 2012

Modeling Virtualization Platforms

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Further details in:

• N. Huber, M. Quast, M. Hauck, and S. Kounev. Evaluating and Modeling Virtualization Performance Overhead for Cloud Environments. In Proceedings of the 1st International Conference on Cloud Computing and Services Science (CLOSER 2011), Noordwijkerhout, The Netherlands, May 7-9 2011. Best Paper Award.

Virtualization Platform

Binary Translation

Para-Virtualization

Full Virtualization

Virtualization Type

exclusive OR

Legend

inclusive OR

Resource Management

Configuration

CPU Scheduling

CPU Allocation

Core Affinity

Workload Profile

I/O

CPU

Memory

Network

Disk

CPU Priority Memory Allocation

Number of VMs

Resource

Overcommitment

VMM Architecture

Dom0

Monolitic

e.g. cap=50e.g. mask=1,2

e.g. vcpu=4

Descartes Research Group

http://www.descartes-research.net 18 Dec. 04, 2012

Automated Experimental Analysis

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Further details in:

• N. Huber, M. von Quast, F. Brosig and S. Kounev. Analysis of the Performance-Influencing Factors of Virtualization Platforms. In 12th International Symposium on Distributed Objects, Middleware, and Applications (DOA 2010), Crete, Greece, October 2010. Springer Verlag.

Experiments

Start MasterVMConfigure MasterVM

(benchmark, run schedule)Stop MasterVM Clone MasterVM

Start cloned VMs

Configure VMsVM1: execute benchmark

Start MasterVM,

Collect results

Further

Experiments

Process results

Further configurations

required

YES

NOYES

NOVMn: execute benchmark

...

Scheduled

experiment start

Experiment stop

Descartes Research Group

http://www.descartes-research.net 19 Dec. 04, 2012

Experiment Setup

Virtualization Platforms

Citrix XenServer 5.5

VMware ESX 4.0

Experimental environment

SunFire X4440 Server, AMD Opteron 24*2.4 GHz, 128 GB DDR2 RAM

Different benchmark types

Passmark PerformanceTest v7 (CPU, Memory, HDD)

SPECcpu (CPU + Memory)

Iperf (Network)

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Descartes Research Group

http://www.descartes-research.net 20 Dec. 04, 2012

Virtualization Overhead

XenServer 5.5

Throughput metric: higher values are better

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Benchmark native virtualized Delta (abs.) Delta (rel.)

Passmark CPU, 1 core 639.3 634.0 5.3 0,83%

Passmark CPU, 2 cores 1232.0 1223.0 9.0 0.97%

SPECint(R)_base2006 3.61%

SPECfb(R)_base2006 3.15%

Passmark Memory, 1 core 492.9 297.0 195.9 39.74%

Passmark Memory, 2 cores 501.7 317.5 184.2 36.72%

Iperf (send) 527.0 393.0 134.0 25,43%

Iperf (receive) 528.0 370.0 158.0 29,92%

Descartes Research Group

http://www.descartes-research.net 21 Dec. 04, 2012

Scalability

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Affinity OFF

Scaling CPU resource

Performance impact of affinity

Descartes Research Group

http://www.descartes-research.net 22 Dec. 04, 2012

Scalability

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Affinity ON

Scaling CPU resource

Performance impact of affinity

Descartes Research Group

http://www.descartes-research.net 23 Dec. 04, 2012

Modeling Virtualization Platforms - II

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Virtualization Platform

Binary Translation

Para-Virtualization

Full Virtualization

Virtualization Type

exclusive OR

Legend

inclusive OR

Resource Management

Configuration

CPU Scheduling

CPU Allocation

Core Affinity

Workload Profile

I/O

CPU

Memory

Network

Disk

CPU Priority Memory Allocation

Number of VMs

Resource

Overcommitment

VMM Architecture

Dom0

Monolitic

e.g. cap=50e.g. mask=1,2

e.g. vcpu=4

Overhead reduction:

~ 12% (CPU)

~ 40% (MEM)

Overhead:

~ 5% (CPU)

Descartes Research Group

http://www.descartes-research.net 24 Dec. 04, 2012

Resource Landscape - Summary

Specification of containers

Specification of resources

Performance influence(s) of layers

Virtualization

Middleware

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Adaptation Points

Application Architecture

Resource Landscape

Adaptation Process

<<Container>>Node1

<<Container>>Node3

<<Container>>Node2

<<InternalAction>>

ResourceDemandX

Degrees-of-

Freedom

Descartes Research Group

http://www.descartes-research.net 25 Dec. 04, 2012

DMM: Application Architecture

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Further details in:

• F. Brosig, N. Huber, and S. Kounev. Modeling Parameter and Context Dependencies in Online Architecture-Level Performance Models. In Proceedings of the 15th ACM SIGSOFT International Symposium on Component Based Software Engineering (CBSE 2012), Bertinoro, Italy, June 26-28, 2012.

Adaptation Points

Application Architecture

Resource Landscape

Adaptation Process

<<Container>>Node1

<<Container>>Node3

<<Container>>Node2

<<InternalAction>>

ResourceDemandX

Degrees-of-

Freedom

Descartes Research Group

http://www.descartes-research.net 26 Dec. 04, 2012

Modeling the Application Level

Service Behavior Abstractions

for Different Levels of Granularity

Parameter and Context Dependencies

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Required service:purchase(List demands)

Provided service:newOrder(String assemblyId, int quantity)

Manufacturing

<<AssemblyContext>>

Manufacturing

<<BasicComponent>>

Dealer

<<BasicComponent>>

Dealer

<<AssemblyContext>>

Required/Provided service:scheduleManufacturing(String workOrderId)

Descartes Research Group

http://www.descartes-research.net 27 Dec. 04, 2012

Deployment

CompB

<<AssemblyContext>>

<<ResourceContainer>>

ApplicationServer1

CompB

<<AssemblyContext>>

Component Repository

System

Deployment

Resource Landscape

<<ResourceContainer>>

ApplicationServer2

CompB

<<BasicComponent>>

<<ResourceDemandingElement>>

CompB_Allocation

<<DeploymentContext>>

CompB_Allocation

<<DeploymentContext>>

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Descartes Research Group

http://www.descartes-research.net 28 Dec. 04, 2012

DMM: Adaptation Points

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Further details in:

• N. Huber, F. Brosig and S. Kounev. Modeling Dynamic Virtualized Resource Landscapes. In Proceedings of the 8th ACM SIGSOFT International Conference on the Quality of Software Architectures (QoSA 2012), Bertinoro, Italy, June 25-28, 2012.

Adaptation Points

Application Architecture

Resource Landscape

Adaptation Process

<<Container>>Node1

<<Container>>Node3

<<Container>>Node2

<<InternalAction>>

ResourceDemandX

Degrees-of-

Freedom

Descartes Research Group

http://www.descartes-research.net 29 Dec. 04, 2012

Adaptation Points: Examples

Scaling Resources

Replicating VMs, Migrating VMs

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Descartes Research Group

http://www.descartes-research.net 30 Dec. 04, 2012

Specification of valid system configurations

“Decorator” model of static view

Adaptation Points

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

AdaptationPointDescriptions AdaptationPoint AdaptableEntity

VariationType ModelEntityConfigurationRange

PropertyRange

minValueConstraint : OclConstraintmaxValueConstraint : OclConstraint

SetOfConfigurations

possibleValues : OclConstraint EObject

ModelVariableConfigurationRange

minValue : EDoublemaxValue : EDouble

0..*

adaptationPoints

1adaptableEntityvariationPossibility

1

1entity

0..*

variants

Descartes Research Group

http://www.descartes-research.net 31 Dec. 04, 2012

DMM: Adaptation Process

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Details in:

• N. Huber, A. van Hoorn, A. Koziolek, F. Brosig, and S. Kounev. S/T/A: Meta-modeling Run-time Reconfiguration in Component-based System Architectures. In 9th IEEE Int. Conference on e-Business Engineering (ICEBE), Hangzhou, China, September 9-11 2012.

Adaptation Points

Application Architecture

Resource Landscape

Adaptation Process

<<Container>>Node1

<<Container>>Node3

<<Container>>Node2

<<InternalAction>>

ResourceDemandX

Degrees-of-

Freedom

Descartes Research Group

http://www.descartes-research.net 32 Dec. 04, 2012

Motivation

Rapid growth of autonomic computing and

self-adaptive systems engineering

Open challenges

Hard-coded or system-specific reconfiguration techniques

How to separate software design and implementation from system

reconfiguration logic?

Main issues

How to abstract from system-specific details?

How to enable the reuse of adaptation strategies?

Vision: Holistic model-based Approach

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Descartes Research Group

http://www.descartes-research.net 33 Dec. 04, 2012

Model-based System Adaptation

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

uses

Managed System

Adaptation Language

models

para-meterizes

Log

ica

l V

iew

Tech

nic

al V

iew

Adaptation Points Model

1 GBit

... ...

4 GBit

Gbit Switch

Application Servers

Database Server

reconfiguresevaluates

...

Strategies Tactics Actions

System Architecture QoS Model

<<BranchAction>>

CompA CompB

CompC CompD

InterfaceX InterfaceY InterfaceZ

<<Provides>>

<<Provides>> <<Requires>>

<<Requires>>

<<Provides>> <<Provides>>

<<Interface>>

<<BasicComponent>>

<<BasicComponent>>

<<BasicComponent>>

<<CompositeComponent>>

<<Interface>> <<Interface>><<BranchTransition>>

Condition: number.VALUE >= 0

<<BranchTransition>>Condition:

number.VALUE < 0

CompA

Inst_CompC

<<CompositeComponent>>

<<AssemblyContext>>

Inst_CompB

<<AssemblyContext>>

Inst_CompD

<<AssemblyContext>>

<<LoopAction>>Loop iteration count:

array.NUMBER_OF_ELEMENTS

<<ExternalCallAction>>requiredService2

<<ExternalCallAction>>requiredService3

Descartes Research Group

http://www.descartes-research.net 34 Dec. 04, 2012

Adaptation Language - Idea

Describe system adaptation processes at the

system architecture level

Distinguish high-level reconfiguration objectives from

low-level implementation details

Explicitly separate technical from logical aspects

Capture reconfiguration logic in a generic, human-

understandable, machine processable and reusable way

Provide intuitive modeling concepts that can be

employed by system architects and software developers

Facilitate maintenance and reuse

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Descartes Research Group

http://www.descartes-research.net 35 Dec. 04, 2012

StrategyX

TacticA

Action1

reconfigure

execute

use

trigger / guide

Events / Objectives

System Model /Real System

StrategyY

TacticB TacticC

Action2

Action3

Action4ActionN

Separate

Logical view, high-level

process

Technical view, low-level

operations

S/T/A Adaptation Language

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Descartes Research Group

http://www.descartes-research.net 36 Dec. 04, 2012

Separation of Concerns

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Strategies

• High-level

• Independent of system specific details

• Describe process view

• Indeterminism

Tactics & Actions

• Low-level

• System specific

• Reconfiguration operations

• Deterministic

Descartes Research Group

http://www.descartes-research.net 37 Dec. 04, 2012

Actions refer to adaptation points / DoF Model

Tactics execute actions in adaptation plans

Strategies use weighted tactics

S/T/A Meta-Model

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Event

Strategy

OverallGoal

description : String

Objective

specification : String

Repository

WeightedTactic

weight : Double

Tactic AdaptationPlan

Parameter

name : String

type : TypeAbstractControlFlowElement

Action ActionReference

Start StopLoop

iterationCount : Integer

Branch

condition : String

1..*

hasObjectivestriggeringEvents

0..1

objective

1

tactics

1..*

uses1

implemented

Plan

1

strategies

1..*

tactics

1..*

steps

0..*

successor0..1

predecessor0..1

parameters

0..*

actions

1..*

outputParam0..1

inputParams0..*

outputParam0..1

inputParams0..*

referredAction

1

branches1..2

body1

Action

Tactic

StrategyWeightingFunction

1

Descartes Research Group

http://www.descartes-research.net 38 Dec. 04, 2012

Example Strategies

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Descartes Research Group

http://www.descartes-research.net 39 Dec. 04, 2012

Example Tactics

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Descartes Research Group

http://www.descartes-research.net 40 Dec. 04, 2012

Evaluation

S/T/A implemented in PerOpteryx

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Descartes Research Group

http://www.descartes-research.net 41 Dec. 04, 2012

Self-Adaptive Resource Management

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Online reconfiguration impact prediction

for trade-off analysis

Service A

VM1

VM replication/

cloning

Service A

VM1*

Scaling up/

Improving dependability

Online prediction

Dependability/

Responsiveness

OK

Service A

VM1

Service B

VM1

Service C

VM1

Dynamic server

consolidation

LiveVM

migration

Online prediction

Efficiency

OK

Reconfiguration results

SLA OK

SLA

De

pe

nd

ab

ility

/

Re

sp

on

siv

en

ess m

etr

ic

Time [mins, hours, days, weeks, moths]

Online prediction for

problem anticipation/detection

SLA violated

Workload change

Online prediction

SLA

De

pe

nd

ab

ility

/

Re

sp

on

siv

en

ess m

etr

ic

SLA

violation

Time [mins, hours, days, weeks, moths]

Further details in:

• N. Huber, F. Brosig, and S. Kounev. Model-based Self-Adaptive Resource Allocation in Virtualized Environments. In 6th International Symposium on Software Engineering for Adaptive and Self-Managing Systems (SEAMS 2011), Honolulu, HI, USA, May 23-24, 2011.

Descartes Research Group

http://www.descartes-research.net 42 Dec. 04, 2012

Self-Adaptive Resource Allocation

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Analyze Act

Decide

Anticipate/Detect

Problem

Generate

Reconfiguration

Scenario

Predict

Reconfiguration

Effect(s)

Problem

resolved

Problem persists

Reconfigure

System

Workload

Forecasting

Collect

Monitor

System and

Workload

Customer

Specification(s)

Descartes Research Group

http://www.descartes-research.net 43 Dec. 04, 2012

Reconfiguration Algorithm

PUSH Phase

• Add resources

• vCPUs (if available)

• Application server nodes

• until

PULL Phase

• Remove underutilized resources as long as no SLAs are violated

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Decide

Descartes Research Group

http://www.descartes-research.net 44 Dec. 04, 2012

Experimental Setup

Six blade servers

2 Xeon E5430 4-core CPUs

32 GB of main memory

Citrix XenServer 5.5

Oracle WebLogic 10.3.3

Oracle Database 11g

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

DatabaseSupplier

Emulator

Application

Server

Nodes

Load

Balancer

Benchmark

Driver Agents

Benchmark

Driver Master

GBit LAN

Xen Xen

XenXen

XenXen

Descartes Research Group

http://www.descartes-research.net 45 Dec. 04, 2012

What If: New Service Added?

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Descartes Research Group

http://www.descartes-research.net 46 Dec. 04, 2012

What If: Workload Changes?

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Descartes Research Group

http://www.descartes-research.net 47 Dec. 04, 2012

Benefits in Cost Savings

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Descartes Research Group

http://www.descartes-research.net 48 Dec. 04, 2012

Self-Adaptive Resource Allocation

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Analyze Act

Decide

Anticipate/Detect

Problem

Generate

Reconfiguration

Scenario

Predict

Reconfiguration

Effect(s)

Problem

resolved

Problem persists

Reconfigure

System

Workload

Forecasting

Collect

Monitor

System and

Workload

Customer

Specification(s)

Descartes Research Group

http://www.descartes-research.net 49 Dec. 04, 2012

WORKLOAD CLASSIFICATION

AND FORECASTING

Nikolas Herbst (Diploma thesis)

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Descartes Research Group

http://www.descartes-research.net 50 Dec. 04, 2012

Workload Classification & Forecasting

Nikolas Herbst – Workload Classification and Forecasting

Overhead Limitation

Forecast Frequency

Forecast Horizon

Confidence Level

Forecast Objectives

(I) Select strategies

Forecast Objectives

Workload Intensity

Trace

INITIAL

Naïve,

Smoothing,

Random

Walk

Forecast Strategy Overhead Groups

(II) Evaluate

accuracy

Accuracy

Feedback

FAST

Trend

Inter-

polation

COMPLEX Decom-

position &

Seasonal

Patterns

Descartes Research Group

http://www.descartes-research.net 51 Dec. 04, 2012

Experiment: Example for

Forecast Accuracy Improvement

Nikolas Herbst – Workload Classification and Forecasting

• Real-world workload intensity trace (IBM CICS transactions on System z)

• Comparison of Workload Classification & Forecasting (WCF) approach to Extended Exponential Smoothing (ETS) and Naive forecast

Descartes Research Group

http://www.descartes-research.net 52 Dec. 04, 2012

Experiment

Nikolas Herbst – Workload Classification and Forecasting

WCF

ETS

Naive

WC

F |

ETS

| N

aive

percentage error

Descartes Research Group

http://www.descartes-research.net 53 Dec. 04, 2012

Case Study: Example for Using

Forecast Results

Nikolas Herbst – Workload Classification and Forecasting

• Scenario: Additional server instances at certain thresholds, 3 weeks

• Real-world workload intensity trace (Wikipedia DE page requests per hour)

Descartes Research Group

http://www.descartes-research.net 54 Dec. 04, 2012

Case Study

Nikolas Herbst – Workload Classification and Forecasting

Resource provisioning:

(I) Without forecasting (solely reactive):

Resource provisioning actions triggered by

76 SLA violations

(II) Interpreting WCF forecast results (add. proactive):

Reduction to 34 or less SLA violations

No significant change in resource usage observed

(server instances per hour)

Descartes Research Group

http://www.descartes-research.net 55 Dec. 04, 2012

Summary

Meta-Model for

Resource Landscape

Performance Influences of

Virtualization Layers

Adaptation Points

Adaptation Process

Example: Model-based

resource allocation

Workload Forecasting

Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

Adaptation Points

Application Architecture

Resource Landscape

Adaptation Process

<<Container>>Node1

<<Container>>Node3

<<Container>>Node2

<<InternalAction>>

ResourceDemandX

Degrees-of-

Freedom

Descartes Research Group

http://www.descartes-research.net 56 Dec. 04, 2012 Nikolaus Huber – Model-based Run-time Adaptation of Dynamic Virtualized

Resource Landscapes

http://www.descartes-research.net/

Adaptation Points

Application Architecture

Resource Landscape

Adaptation Process

<<Container>>Node1

<<Container>>Node3

<<Container>>Node2

<<InternalAction>>

ResourceDemandX

Degrees-of-

Freedom