Copyright © 2012, A Minimum Cost Resource Allocation Approach for Cloud Data Centers 指導教授:王國禎 學生:連懷恩 國立交通大學資訊工程系 行動計算與寬頻網路實驗室 1.

Slides:



Advertisements
Similar presentations
Autonomic Scaling of Cloud Computing Resources
Advertisements

Traveling Salesperson Problem
Optimal Rectangle Packing: A Meta-CSP Approach Chris Reeson Advanced Constraint Processing Fall 2009 By Michael D. Moffitt and Martha E. Pollack, AAAI.
Exact algorithms for the minimum latency problem Exact algorithms for the minimum latency problem 吳邦一 黃正男 詹富傑 樹德科大 資工系.
EE 553 Integer Programming
Branch & Bound Algorithms
Network Coding in Peer-to-Peer Networks Presented by Chu Chun Ngai
Copyright © 2012, An SLA-aware load balancing scheme for cloud datacenters 指導教授:王國禎 學生:黎中誠 國立交通大學資訊工程系 行動計算與寬頻網路實驗室 1.
Green Cloud Computing Hadi Salimi Distributed Systems Lab, School of Computer Engineering, Iran University of Science and Technology,
Xavier León PhD defense
CPSC 322, Lecture 9Slide 1 Search: Advanced Topics Computer Science cpsc322, Lecture 9 (Textbook Chpt 3.6) January, 23, 2009.
PDS 無線網路概論 Introduction to Wireless Networks 王國禎 國立交通大學 資訊工程系 行動計算與寬頻網路實驗室
Branch and Bound Similar to backtracking in generating a search tree and looking for one or more solutions Different in that the “objective” is constrained.
November 10, 2009Introduction to Cognitive Science Lecture 17: Game-Playing Algorithms 1 Decision Trees Many classes of problems can be formalized as search.
1 高等演算法 Homework One 暨南大學資訊工程學系 黃光璿 2004/11/11. 2 Problem 1.
Branch and Bound Algorithm for Solving Integer Linear Programming
Present By : Bahar Fatholapour M.Sc. Student in Information Technology Mazandaran University of Science and Technology Supervisor:
Distributed Constraint Optimization * some slides courtesy of P. Modi
Daniel Kroening and Ofer Strichman Decision Procedures An Algorithmic Point of View Deciding ILPs with Branch & Bound ILP References: ‘Integer Programming’
Algorithm Design and Analysis Liao Minghong School of Computer Science and Technology of HIT July, 2003.
Decision Procedures An Algorithmic Point of View
Department of Computer Science Engineering SRM University
IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED SYSTEMS 2007 (TPDS 2007)
Copyright © 2010, OpenFlow - Innovate in Your Network 指導教授:王國禎 學生:洪維藩 國立交通大學資訊科學與工程研究所 行動計算與寬頻網路實驗室.
Copyright © 2010, SLA-aware load balancing for cloud datacenters 指導教授:王國禎 學生:黎中誠 國立交通大學資訊工程系 行動計算與寬頻網路實驗室.
A Scalable Application Placement Controller for Enterprise Data Centers Chunqiang Tang, Malgorzata Steinder, Michael Spreitzer, Giovanni Pacifici IBM T.J.
Network Aware Resource Allocation in Distributed Clouds.
Copyright © 2011, A Dynamic Area of Interest Management and Collaboration Model for P2P MMOGs 張晏誌 行動計算與寬頻網路實驗室 王國禎 教授 1.
Copyright © 2012, A Minimum Cost Resource Allocation Approach for Cloud Data Centers 指導教授:王國禎 學生:連懷恩 國立交通大學資訊工程系 行動計算與寬頻網路實驗室 1.
Copyright © 2011, Programming Your Network at Run-time for Big Data Applications 張晏誌 指導老師:王國禎 教授.
An Autonomic Framework in Cloud Environment Jiedan Zhu Advisor: Prof. Gagan Agrawal.
Introduction to Job Shop Scheduling Problem Qianjun Xu Oct. 30, 2001.
© 2009 IBM Corporation 1 Improving Consolidation of Virtual Machines with Risk-aware Bandwidth Oversubscription in Compute Clouds Amir Epstein Joint work.
17 th International Teletraffic Congress Topological design of telecommunication networks Michał Pióro a,b, Alpar Jüttner c, Janos Harmatos c, Áron Szentesi.
Copyright © 2011, Resource allocation for MMOG based on AFK players in the cloud 指導教授:王國禎 博士 學生:陳治豪 國立交通大學網路工程研究所 行動計算與寬頻網路實驗室.
Disclosure risk when responding to queries with deterministic guarantees Krish Muralidhar University of Kentucky Rathindra Sarathy Oklahoma State University.
+ Simulation Design. + Types event-advance and unit-time advance. Both these designs are event-based but utilize different ways of advancing the time.
CP Summer School Modelling for Constraint Programming Barbara Smith 2. Implied Constraints, Optimization, Dominance Rules.
The Application of The Improved Hybrid Ant Colony Algorithm in Vehicle Routing Optimization Problem International Conference on Future Computer and Communication,
Copyright © 2011, Performance Evaluation of a Green Scheduling Algorithm for Energy Savings in Cloud Computing Truong Vinh Truong Duy; Sato,
On Graphs Supporting Greedy Forwarding for Directional Wireless Networks W. Si, B. Scholz, G. Mao, R. Boreli, et al. University of Western Sydney National.
A dynamic optimization model for power and performance management of virtualized clusters Vinicius Petrucci, Orlando Loques Univ. Federal Fluminense Niteroi,
Applications of Dynamic Programming and Heuristics to the Traveling Salesman Problem ERIC SALMON & JOSEPH SEWELL.
Managing Server Energy and Operational Costs Chen, Das, Qin, Sivasubramaniam, Wang, Gautam (Penn State) Sigmetrics 2005.
Outline Introduction Minimizing the makespan Minimizing total flowtime
Chapter 1 Introduction n Introduction: Problem Solving and Decision Making n Quantitative Analysis and Decision Making n Quantitative Analysis n Model.
Algorithm Design Methods (II) Fall 2003 CSE, POSTECH.
Maximization of System Lifetime for Data-Centric Wireless Sensor Networks 指導教授:林永松 博士 具資料集縮能力無線感測網路 系統生命週期之最大化 研究生:郭文政 國立臺灣大學資訊管理學研究所碩士論文審查 民國 95 年 7 月.
國立清華大學高速通訊與計算實驗室 NTHU High-Speed Communication & Computing Laboratory Optimal Provisioning for Elastic Service Oriented Virtual Network Request in Cloud.
1 Inventory Control with Time-Varying Demand. 2  Week 1Introduction to Production Planning and Inventory Control  Week 2Inventory Control – Deterministic.
Copyright © 2010, Performance and Power Management for Cloud Infrastructures Hien Nguyen Van; Tran, F.D.; Menaud, J.-M. Cloud Computing (CLOUD),
Copyright © 2011, A Road-based QoS-aware Multipath Routing for Urban Vehicular Ad Hoc Networks 指導教授:王國禎 學生:謝宜玲 國立交通大學資訊科學與工程研究所 行動計算與寬頻網路實驗室.
Dynamic Placement of Virtual Machines for Managing SLA Violations NORMAN BOBROFF, ANDRZEJ KOCHUT, KIRK BEATY SOME SLIDE CONTENT ADAPTED FROM ALEXANDER.
CSCE350 Algorithms and Data Structure Lecture 21 Jianjun Hu Department of Computer Science and Engineering University of South Carolina
Copyright © 2011, A Resource Allocation Mechanism of Data Center for Public Cloud Service 指導教授:王國禎 學生:連懷恩 國立交通大學網路工程研究所 行動計算與寬頻網路實驗室.
Optimizing server placement in distributed systems in the presence of competition Jan-Jan Wu( 吳真貞 ), Shu-Fan Shih ( 施書帆 ), Pangfeng Liu ( 劉邦鋒 ), Yi-Min.
Copyright © 2010, Install OpenFlow Mininet 指導教授:王國禎 學生:洪維藩 國立交通大學資訊科學與工程研究所 行動計算與寬頻網路實驗室.
Introduction to Multiple-multicast Routing Chu-Fu Wang.
February 25, 2016Introduction to Artificial Intelligence Lecture 10: Two-Player Games II 1 The Alpha-Beta Procedure Can we estimate the efficiency benefit.
1 Chapter 5 Branch-and-bound Framework and Its Applications.
Tuesday, March 19 The Network Simplex Method for Solving the Minimum Cost Flow Problem Handouts: Lecture Notes Warning: there is a lot to the network.
Scheduling with Constraint Programming
Globa Larysa prof, Dr.; Skulysh Mariia, PhD; Sulima Svitlana
Adaptive Cloud Computing Based Services for Mobile Users
Introduction to Operations Research
Analysis & Design of Algorithms (CSCE 321)
The Alpha-Beta Procedure
Introduction to Artificial Intelligence Lecture 9: Two-Player Games I
Flow Feasibility Problems
Branch-and-Bound Algorithm for Integer Program
Presentation transcript:

Copyright © 2012, A Minimum Cost Resource Allocation Approach for Cloud Data Centers 指導教授:王國禎 學生:連懷恩 國立交通大學資訊工程系 行動計算與寬頻網路實驗室 1

Copyright © 2012, Outline Introduction Related work Model formulation Preliminaries of resizing problem A branch and bound algorithm A server/VM chain algorithm Conclusion Reference 2

Copyright © 2012, 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. 3

Copyright © 2012, 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. 4

Copyright © 2012, Related Work 5 Approach Number of active servers Number of VMs for each app Transition costVM placement Optimization over time domain Chunqiang Tang et al. [1] XOXOX Norman Bobroff et al. [2] OXXOO Minghong Lin et al. [3] OXOXO Our proposed approach OOOOO

Copyright © 2012, Model Formulation – Operating Cost The energy cost of active servers and VMs. [1] 6

Copyright © 2012, 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. 7

Copyright © 2012, Model Formulation - Notations 8 VariableDefinition 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 k A 0-1 variable, which indicates that whether the jth server is active in time slot k ConstantDefinition Operating 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

Copyright © 2012, Model Formulation – Cost Function Assume that there are N apps, M servers, and prediction window size W Minimize Subject to 9

Copyright © 2012, 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. 10

Copyright © 2012, Preliminaries of Resizing Problem –For example, let ∆ VM be the break-even time of a VM. That is, P VM 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. 11

Copyright © 2012, Preliminaries of Resizing Problem 2)Another observation is the off-line migration of VM. P VM x ∆ VM ≥ δ VM x 2 – P server 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. 12

Copyright © 2012, 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. 13

Copyright © 2012, 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 14

Copyright © 2012, B&B Algorithm – A Paradigm P VM = 1.0, P server = 0.5, ∆ VM = 0.6, ∆ server =

Copyright © 2012, B&B Algorithm – Tree Structure Suppose there are N applications, define the resource provision tuple as a (n+1)-tuple. The 1 st element represents the # of active servers, the 2 nd 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. 16

Copyright © 2012, 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. 17

Copyright © 2012, 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 18

Copyright © 2012, B&B Algorithm – Complexity If an app can have at most V VMs, the worst case complexity will be O(W V N ). 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. 19

Copyright © 2012, A Server/VM Chain Algorithm A chain representation of server/VM in space-time diagram. 20

Copyright © 2012, 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. 21

Copyright © 2012, 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. 22

Copyright © 2012, 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 23