Self-Adaptive QoS Guarantees and Optimization in Clouds Jim (Zhanwen) Li (Carleton University)...

21
Self-Adaptive QoS Guarantees and Optimization in Clouds Jim (Zhanwen) Li (Carleton University) Murray Woodside (Carleton University) John Chinneck (Carleton University) Marin Litoiu (York University)

Transcript of Self-Adaptive QoS Guarantees and Optimization in Clouds Jim (Zhanwen) Li (Carleton University)...

Page 1: Self-Adaptive QoS Guarantees and Optimization in Clouds Jim (Zhanwen) Li (Carleton University) Murray Woodside (Carleton University) John Chinneck (Carleton.

Self-Adaptive QoS Guarantees and Optimization in Clouds

Jim (Zhanwen) Li (Carleton University) Murray Woodside (Carleton University)

John Chinneck (Carleton University) Marin Litoiu (York University)

Page 2: Self-Adaptive QoS Guarantees and Optimization in Clouds Jim (Zhanwen) Li (Carleton University) Murray Woodside (Carleton University) John Chinneck (Carleton.

Outline(CERAS) Cloud OverviewOptimization for Clouds: DefinitionOptimization MethodCase Studies

2

Page 3: Self-Adaptive QoS Guarantees and Optimization in Clouds Jim (Zhanwen) Li (Carleton University) Murray Woodside (Carleton University) John Chinneck (Carleton.

Centre of Excellence for Research in Adaptive Systems

ParticipantsIBMOntario GovernmentOntario Cancer InstituteUofWaterloo, UofToronto, Queen’s, Carleton, York University

Three complementary research thrusts to enable cloud computingService and resource virtualization: what do we offer in a cloud?Programming models for web services: how do we add value?Adaptive computing: how do we manage the cloud?

DeliverablesA cloud infrastructure (CERAS Cloud)Algorithms and methods to manage the cloud infrastructureServices

Tools in cloudDesktops Web services and applications

Demonstrate how emerging application can be run more effectively in a cloud infrastructure

Page 4: Self-Adaptive QoS Guarantees and Optimization in Clouds Jim (Zhanwen) Li (Carleton University) Murray Woodside (Carleton University) John Chinneck (Carleton.

Cloud = SaaS+Virtualization …

Delivering software functionality online, similar to the one installed on your machine. Flavours

Infrastructure as a ServiceSoftware as a ServicePlatform as a ServiceDesktop as a Service

4

– Pricing models

• pay per usage ( Amazon)

• pay a subscription (Microsoft and

Salesforce)

• pay per transaction (Expedia)

• use it for free (Google)

DesktopOffice

DatabasesOS

Network DatabaseStorageCPU

ServersWeb servers

ERP CRM Software dev tools

Page 5: Self-Adaptive QoS Guarantees and Optimization in Clouds Jim (Zhanwen) Li (Carleton University) Murray Woodside (Carleton University) John Chinneck (Carleton.

Management in CERAS Cloud

5

Page 6: Self-Adaptive QoS Guarantees and Optimization in Clouds Jim (Zhanwen) Li (Carleton University) Murray Woodside (Carleton University) John Chinneck (Carleton.

Two Deployment Scenarios

6

Page 7: Self-Adaptive QoS Guarantees and Optimization in Clouds Jim (Zhanwen) Li (Carleton University) Murray Woodside (Carleton University) John Chinneck (Carleton.

Outline(CERAS) Cloud OverviewOptimization for Clouds: DefinitionOptimization MethodCase Studies

7

Page 8: Self-Adaptive QoS Guarantees and Optimization in Clouds Jim (Zhanwen) Li (Carleton University) Murray Woodside (Carleton University) John Chinneck (Carleton.

Optimization for CloudsNecessities

Economic: cost and profit; time: installation, maintenance Quality of maintenance and configurations

ChallengesScalability and complexity:

thousands to millions of various decisions. Service selection, Service deployment, Workloads balanceOptimization must be efficient enough for real-time management.

Guaranteed QoS: SLA to workloads and components, software and hardware delays

Constraints from system and businesscapacity and availability of resources and budgets

Interaction of configurationsDynamic in virtualization

8

Page 9: Self-Adaptive QoS Guarantees and Optimization in Clouds Jim (Zhanwen) Li (Carleton University) Murray Woodside (Carleton University) John Chinneck (Carleton.

Feedback Control for QoS and Optimization

9

1. Karman Filter for estimation and prediction2. Quantitative model : Performance Model, 3. Qualitative model: an Optimization Model that can be

solved effectively and efficiently4. Execute Optimal decisions

Page 10: Self-Adaptive QoS Guarantees and Optimization in Clouds Jim (Zhanwen) Li (Carleton University) Murray Woodside (Carleton University) John Chinneck (Carleton.

Model-based Optimization Architecture

10

Page 11: Self-Adaptive QoS Guarantees and Optimization in Clouds Jim (Zhanwen) Li (Carleton University) Murray Woodside (Carleton University) John Chinneck (Carleton.

Service System Metamodel

11

Page 12: Self-Adaptive QoS Guarantees and Optimization in Clouds Jim (Zhanwen) Li (Carleton University) Murray Woodside (Carleton University) John Chinneck (Carleton.

Outline(CERAS) Cloud OverviewOptimization for Clouds: DefinitionOptimization MethodCase Studies

12

Page 13: Self-Adaptive QoS Guarantees and Optimization in Clouds Jim (Zhanwen) Li (Carleton University) Murray Woodside (Carleton University) John Chinneck (Carleton.

Scalable Network Flow Model

13

.

.

.

.

.

.

1

2

3

4

h

.

.

.

[ 0 , , ]1 1C

[ 0 , , ]2 2C

[ 0 , , ]3 3C

[ 0 , , ]4 4C

[ 0 , , ]m mC

1

2

3

4

s

.

.

.

.

.

.Hosts

Services

13

Classes of Users

1 1[ , , ]SLAf P

11

21

22

3n

42

4n

sn

.

.

.

.

.

.

1

2

n

11d

21d

22d

42d

3nd

4nd

snd

1

1

1

2 2[ , , ]SLAf P

[ , , ]oSLA of P

1

2

3

4

t

.

.

.

ServerTasks

5

.

.

.

.

.

.

.

.

.

.

.

.

15

21

24

33

42

4t

ht

11

12

23

32

42

44

53

5s

4t

• NFM presents the states of the system as an Optimization Model• Parameters of the NFM are updated at runtime• Scalable to millions of configurations and decisions

• Applications: Decisions among replication, migration, on or off etc• Workloads: Dynamic workload management• Resources: License/memory/CPU requirements and availability• Costs (or profits): penalization and rewards• QoS management

Page 14: Self-Adaptive QoS Guarantees and Optimization in Clouds Jim (Zhanwen) Li (Carleton University) Murray Woodside (Carleton University) John Chinneck (Carleton.

Optimization Loop

14

1. Network optimization allocates the flows to optimize costs and meet average delay constraints, without knowledge of contention delay

2. LQN performance model calculates contention delay

3. Contention delay is inserted into the network model and allocation is iterated

4. Result is an allocation that minimizes costs and meets delay constraint, including contention.

Page 15: Self-Adaptive QoS Guarantees and Optimization in Clouds Jim (Zhanwen) Li (Carleton University) Murray Woodside (Carleton University) John Chinneck (Carleton.

Outline(CERAS) Cloud OverviewOptimization for Clouds: DefinitionOptimization MethodCase Studies

15

Page 16: Self-Adaptive QoS Guarantees and Optimization in Clouds Jim (Zhanwen) Li (Carleton University) Murray Woodside (Carleton University) John Chinneck (Carleton.

Simplified Cost ModelAssumption: no request cyclesObjective Function

Constraints

16

Page 17: Self-Adaptive QoS Guarantees and Optimization in Clouds Jim (Zhanwen) Li (Carleton University) Murray Woodside (Carleton University) John Chinneck (Carleton.

Case Study I: Min RT, Min Cost

17

Page 18: Self-Adaptive QoS Guarantees and Optimization in Clouds Jim (Zhanwen) Li (Carleton University) Murray Woodside (Carleton University) John Chinneck (Carleton.

Case Study II: ScalabilityConsider a cloud with many services all structured like this one

18

A fragment of the network flow model

Page 19: Self-Adaptive QoS Guarantees and Optimization in Clouds Jim (Zhanwen) Li (Carleton University) Murray Woodside (Carleton University) John Chinneck (Carleton.

Case Study II cont

19

Full optimization can save around 20% hosts in useFull optimization can significantly save costshowever, full optimization may increase the cost of contentions.

Utilizations are increased to the desired upper bound in Full Optimization

Page 20: Self-Adaptive QoS Guarantees and Optimization in Clouds Jim (Zhanwen) Li (Carleton University) Murray Woodside (Carleton University) John Chinneck (Carleton.

ConclusionsThe combination of NFM and nonlinear performance model

Effectively optimizing many interacted configurations subject to quite a few QoS and economic constraints

New optimization algorithmsScalability, Efficiency, Flexibility, Autonomic Tuning

Full optimization is best but it is less practicalRisks and overhead

In practice, cloud administrators will settle with incremental optimization

and launch full optimization when the COST becomes high

20

Page 21: Self-Adaptive QoS Guarantees and Optimization in Clouds Jim (Zhanwen) Li (Carleton University) Murray Woodside (Carleton University) John Chinneck (Carleton.

21