23
Copyright © 2012, [email protected] A Minimum Cost Resource Allocation Approach for Cloud Data Centers 指指指指 指指指 指指 指指指 指指指指指指指指指指指 指指指指指指指指指指指指 1

A Minimum Cost Resource Allocation Approach for Cloud Data Centers

  • Upload
    alka

  • View
    41

  • Download
    0

Embed Size (px)

DESCRIPTION

A Minimum Cost Resource Allocation Approach for Cloud Data Centers . 指導教授:王國禎 學生 :連懷恩 國立交通大學資訊工程系 行動計算與寬頻網路實驗室. Outline. Introduction Related work Model formulation Preliminaries of resizing problem A branch and bound algorithm A server/VM chain algorithm Conclusion Reference. - PowerPoint PPT Presentation

Citation preview

Page 1: A Minimum Cost Resource Allocation Approach for Cloud Data Centers

Copyright © 2012, [email protected]

1

A Minimum Cost Resource Allocation Approach for Cloud Data Centers

指導教授:王國禎 學生:連懷恩國立交通大學資訊工程系行動計算與寬頻網路實驗室

Page 2: A Minimum Cost Resource Allocation Approach for Cloud Data Centers

Copyright © 2012, [email protected]

2

Outline

• Introduction• Related work• Model formulation• Preliminaries of resizing problem• A branch and bound algorithm• A server/VM chain algorithm• Conclusion• Reference

Page 3: A Minimum Cost Resource Allocation Approach for Cloud Data Centers

Copyright © 2012, [email protected]

3

Introduction

• Existing approaches only consider come aspects of resource allocation problem(e.g., either for VM or for server level) in cloud data center.

• A complete resource allocation approach should include the following features: per application resource allocation, resizing on both VM and server level, transition cost, VM placement, and optimization over time domain.

• Generality and minimum cost.

Page 4: A Minimum Cost Resource Allocation Approach for Cloud Data Centers

Copyright © 2012, [email protected]

4

Introduction

• Assume that we have a load-prediction module that provides the workload of each application in the following few time slots.

• Our objective is a minimum cost resource allocation approach. The “cost” should include operating cost and transition cost.

Page 5: A Minimum Cost Resource Allocation Approach for Cloud Data Centers

Copyright © 2012, [email protected]

5

Related Work

Approach Number of active servers

Number of VMs for each app Transition cost VM placement

Optimization over time domain

Chunqiang Tang et al. [1] X O X O X

Norman Bobroff et al. [2] O X X O O

Minghong Lin et al. [3] O X O X O

Our proposed approach O O O O O

Page 6: A Minimum Cost Resource Allocation Approach for Cloud Data Centers

Copyright © 2012, [email protected]

6

Model Formulation – Operating Cost• The energy cost of active servers and VMs.

[1]

Page 7: A Minimum Cost Resource Allocation Approach for Cloud Data Centers

Copyright © 2012, [email protected]

7

Model Formulation – Transition Cost

• The cost to transit the resource allocation between different time slots, including the cost of switching servers to active or dormant state, the cost of adding or removing VMs from an application, and the cost of VM migration.

• Mostly it may not have a measurable unit. Operator can decide the ratio between the operating cost and transition cost, which is known as the break-even time.

Page 8: A Minimum Cost Resource Allocation Approach for Cloud Data Centers

Copyright © 2012, [email protected]

8

Model Formulation - NotationsVariable Definition

The # of VMs that allocated to the ith app in the jth server in time slot k

The # of VMs that switch on/off owned by the ith app in the jth server in time slot kA 0-1 variable, which indicates that whether the jth server is active in time slot k

kjix ,

kjiy ,

kjz

Constant DefinitionOperating cost of a single idle server in one time slot

Operating cost of a single VM in one time slot

Transition cost of switching a single server to active or dormant state

Transition cost of adding or removing a single VM

Transition cost of migrating a single VM

capacity Each server can host at most capacity VMs

serverPVMPserverVMmigrate

Page 9: A Minimum Cost Resource Allocation Approach for Cloud Data Centers

Copyright © 2012, [email protected]

9

Model Formulation – Cost FunctionAssume that there are N apps, M servers, and prediction window size WMinimize

Subject to

W

k

M

j

N

i

kjiVM

W

k

M

j

kj

kjserver

W

k

W

k

M

j

N

i

kjiVM

M

j

kjserver yzzxPzP

1 1 1,

1

0 1

1

1 1 1 1,

1

1

0 1 1

1,,

1,2

1 W

k

M

j

N

i

kji

kji

kjimigrate yxx

1,...,1,0,,...,2,1,,...,2,1,1,,

1, WkMjNiyxx k

jik

jik

ji

WkNidx ki

M

j

kji ,...,2,1,,...,2,1,

1,

WkMjzcapacityx kj

N

i

kji ,...,2,1,,...,2,1,

1.

Page 10: A Minimum Cost Resource Allocation Approach for Cloud Data Centers

Copyright © 2012, [email protected]

10

Preliminaries of Resizing Problem• A traditional linear programming may not be

suitable since it is an integer programming in high dimension and it can not exploit the structure of the problem.

• Following are some preliminaries of the resizing problem:1) It is easy to observe that a minimum cost

solution of resizing problem is always to resize the resource provisioning to match the resource demand unless the resource demand goes down then up within a break-even time.

Page 11: A Minimum Cost Resource Allocation Approach for Cloud Data Centers

Copyright © 2012, [email protected]

11

Preliminaries of Resizing Problem

– For example, let ∆VM be the break-even time of a

VM. That is, PVM x ∆VM = δVM x 2 , and it implies we should keep the VM alive when the demand

goes down then up within a ∆VM . This is also true for servers.

– We call this a break-event time condition when the resource demand goes down then up within a VM/server’s break-event time.

Page 12: A Minimum Cost Resource Allocation Approach for Cloud Data Centers

Copyright © 2012, [email protected]

12

Preliminaries of Resizing Problem

2) Another observation is the off-line migration of

VM. PVM x ∆VM ≥ δVM x 2 – Pserver x ∆i , where ∆i ≤ ∆VM , when the VM can be migrated to another server off-line and then the original server can be switched to dormant state.

3) To find a minimum cost solution, we only need to check if we should keep the VM/server alive when there comes a break-even time condition. Note that we also need to consider the off-line migration for a VM’s break-even time condition.

Page 13: A Minimum Cost Resource Allocation Approach for Cloud Data Centers

Copyright © 2012, [email protected]

13

Preliminaries of Resizing Problem

• The problem is, when overlapped break-event time condition occur from several apps, it is hard to tell an off-line migration will benefit or not. This will lead to another problem in the break-even time condition of servers, since we can do the resource allocations of servers only when the number of running VMs are determined.

• We introduce a branch and bound algorithm to conquer this problem.

Page 14: A Minimum Cost Resource Allocation Approach for Cloud Data Centers

Copyright © 2012, [email protected]

14

B&B Algorithm – Main Idea

• The key idea of the B&B algorithm: if the lower bound for some tree node A is greater than the upper bound for some other node B, then A may be safely discarded from the search. Branching and pruning.

• A global upper bound: the minimum cost among all accomplished paths so far.

• The lower bound of each node: current accumulated cost + minimum remaining operating cost + switching cost to the status of sink node

Page 15: A Minimum Cost Resource Allocation Approach for Cloud Data Centers

Copyright © 2012, [email protected]

15

B&B Algorithm – A Paradigm

• PVM = 1.0, Pserver = 0.5, ∆VM = 0.6, ∆server = 0.7

Page 16: A Minimum Cost Resource Allocation Approach for Cloud Data Centers

Copyright © 2012, [email protected]

16

B&B Algorithm – Tree Structure

• Suppose there are N applications, define the resource provision tuple as a (n+1)-tuple. The 1st element represents the # of active servers, the 2nd element represents the # of VMs for the first app, and i-th element represents the # of VMs for the (i-1)-th app.

• A search tree with depth T. Every node consists of a resource provision tuple, the current accumulated cost field and lower bound field.

• Using doubly linked list. A path can be represented by its tail node and backtracked to all its preceding nodes.

Page 17: A Minimum Cost Resource Allocation Approach for Cloud Data Centers

Copyright © 2012, [email protected]

17

B&B Algorithm – Branch Table

• A branch table consists of T rows resource provision tuple, and it shows the maximum number of resource that can be retained other than the minimum need in each time slot.

• A one-pass scan to construct the table.• For a node, the possible number of branches in the

next time slot is the product of all elements of the tuple of that node. However, we will not produce any new branch until the time right before we want to discover a new path from it.

Page 18: A Minimum Cost Resource Allocation Approach for Cloud Data Centers

Copyright © 2012, [email protected]

18

B&B Algorithm – Speed Up

• The principle of speed up: discard nodes as early as possible、 avoid unnecessary branches– Two baseline path– Depth first search– Off-line migration and produce branch only when

it is needed

Page 19: A Minimum Cost Resource Allocation Approach for Cloud Data Centers

Copyright © 2012, [email protected]

19

B&B Algorithm – Complexity

• If an app can have at most V VMs, the worst case complexity will be O(W VN). But the worst case rarely happens in the real situation.

• There is a necessary condition for an off-line migration so that we can reduce the complexity further.

• The details of the necessary condition still needs to be clarified.

Page 20: A Minimum Cost Resource Allocation Approach for Cloud Data Centers

Copyright © 2012, [email protected]

20

A Server/VM Chain Algorithm

• A chain representation of server/VM in space-time diagram.

Page 21: A Minimum Cost Resource Allocation Approach for Cloud Data Centers

Copyright © 2012, [email protected]

21

A Server/VM Chain Algorithm• We make an assumption that when we want to

remove a VM, we always choose the latest added one to remove.

• We make this assumption to reduce the complexity, but in fact, this is also a reasonable assumption.

Page 22: A Minimum Cost Resource Allocation Approach for Cloud Data Centers

Copyright © 2012, [email protected]

22

Conclusion

• The most complete resource allocation approach in cloud data center so far.

• It is theoretically optimal if we succeed, however the actual results still heavily rely on the quality of prediction.

• Some important necessary condition and optimality still needs to be proven.

Page 23: A Minimum Cost Resource Allocation Approach for Cloud Data Centers

Copyright © 2012, [email protected]

23

Reference[1] Chunqiang Tang, Malgorzata Steinder, Michael Spreitzer, and Giovanni

Pacifici, “A Scalable Application Placement Controller for Enterprise Data Centers”, ACM '07 Proceedings of the 16th international conference on World Wide Web

[2] Norman Bobroff, Andrzej Kochut, Kirk Beaty, “Dynamic Placement of Virtual Machines for Managing SLA Violations”, 10th IFIP/IEEE International Symposium on Integrated Network Management, 2007

[3] Minghong Lin, Adam Wierman, Lachlan L. H. Andrew, and Eno Thereska, “Dynamic Right-Sizing for Power-Proportional Data Centers,” IEEE INFOCOM, 2011

[4] Anton Beloglazov, Rajkumar Buyya1, Young Choon Lee, and Albert Zomaya, “A Taxonomy and Survey of Energy-Efficient Data Centers and Cloud Computing Systems”, Advances in Computers, Volume 82