Adaptive Virtual Resource Management With Fuzzy Model .

3y ago
26 Views
2 Downloads
1.30 MB
7 Pages
Last View : 30d ago
Last Download : 3m ago
Upload by : Ellie Forte
Transcription

Adaptive Virtual Resource Management with Fuzzy ModelPredictive Control This paper proposes a new Fuzzy Model Predictive Control(FMPC) based approach to address these challenges in resourcemanagement. This approach is architected to answer two keyquestions: The first one asks how to accurately capture thecomplex relationship between resource allocation and applicationperformance. The second asks how to adaptively optimize the VMresource allocation as changes occur dynamically in the system.Specifically in the approach described in this paper, a fuzzy-logicbased modeling method is employed to learn the relationshipbetween VM resource allocation and application performance,which can efficiently capture complex system behaviors withoutrequiring any a priori knowledge. Then a predictive controlleruses this model to predict the resource demand for all VMs andtake the resource control actions that enable the system to quicklyreach its optimization objective. These two phases work in aclosed-loop manner where the model is constructed and updatedonline and resource allocations are adjusted dynamically in orderto adapt to the changes in the system in a timely manner.ABSTRACTVirtualized systems such as utility datacenters and clouds areemerging as important new computing platforms with greatpotential to conveniently deliver computing across the Internetand efficiently utilize resources consolidated via virtualization.Resource management in virtualized systems remains a keychallenge because of their intrinsically dynamic and complexnature, where the applications have dynamically changingworkloads and virtual machines (VMs) compete for the sharedresources in a convolved manner. To address this challenge, thispaper proposes a new resource management approach that caneffectively capture the nonlinear behaviors in VM resource usagesthrough fuzzy modeling and quickly adapt to the changes in thevirtualized system through predictive control. The resulting fuzzymodel-predictive-control (FMPC) approach is capable ofoptimizing the VM-to-resource allocations according to high-levelservice differentiation or revenue maximization objectives. Aprototype of this proposed approach was implemented for Xenbased VM systems and evaluated using a typical onlinetransaction benchmark (RUBiS). The results demonstrate that theproposed approach can efficiently allocate CPU resource to singleor multiple VMs to achieve application- or system-levelperformance objective.This proposed approach was prototyped on Xen-based VMenvironments and evaluated using a typical online transactionbenchmark (RUBiS [14]). The results demonstrate that it canaccurately estimate the resource demand for a VM runningdynamically changing workload and quickly achieve the desiredQoS target. The results also show that more complex behaviors ofresource competing VMs can also be captured by the proposedapproach and the system-level objective can be quickly achievedand sustained in such a scenario. Compared to a typical linearmodel based MPC approach, the FMPC approach can obtain 5%better overall QoS as well as faster adaption to the changes.1. INTRODUCTIONVirtualized systems such as utility datacenters [27] and clouds[28][29] are emerging as promising new platforms that cansignificantly improve how resources are provisioned toapplications and how computing is delivered to users. One the onehand, applications can be conveniently deployed via virtualmachines (VMs) without being tied to any specific physicalmachine or constrained by any specific set of resources. On theother hand, resources can be consolidated and multiplexed acrossVM-hosted applications to increase utilization and reduce cost.The fundamental goal for resource management in such systems isthat resources should be automatically and dynamically allocatedto the applications’ VMs according to application-level objectives(e.g., QoS—Quality of Service) and system-level objectives (e.g.,service differentiation, revenue maximization).The rest of this paper is organized as follows. Section 2 describesthe background and motivation. Section 3 discusses the detaileddesign and implementation of the proposed approach and Section4 presents an experimental evaluation. Section 5 examines therelated work and Section 6 concludes this paper.2. BACKGROUND AND MOTIVATION2.1 Adaptive Virtual Resource ManagementEmerging virtualized systems such as utility datacenters andclouds promise to be important new computing platforms whereapplications could be executed efficiently and resources could beutilized efficiently. A key challenge to fulfilling this promise is tocorrectly understand an application’s VM’s resource demandbased on its QoS target and effectively optimize the resourceallocation across VMs based on resource-provider objectives. Themajor difficulty lies in the intrinsically dynamic and complexnature in the resource usage behaviors in such virtualized system.In order to reach the above goal, resource management invirtualized systems needs to address the challenges raised by theintrinsically dynamic and complex resource usage behaviors insuch systems. For example, when an application’s workloadchanges over time in intensity and composition of requests, itsVM’s demands of different types of resources also changeaccordingly. As applications are consolidated to the same physicalhosts via VMs, they also compete for the shared resources andinterfere with each other. As a result, one application’sperformance depends on not only its own VM’s resource usagebut also others’ behaviors. Even if the application workloads stayrelatively steady, service-level objectives (SLOs) may changeover time and as a result resources might need to be reallocated.First, the dynamics in an application’s workload can lead tocomplex behaviors in its VM’s resource usages as its intensity andcomposition change over time. For instance, a web workload’srequest rate varies depending on the time of day and theoccurrence of events [26]; a database workload can also change in1

terms of its composition of a wide variety of queries with differentlevels of CPU and I/O demands [18]. Second, interference amongVMs hosted on the same physical machine can lead to complexnonlinear resource usage behaviors as they compete for varioustypes of resources that cannot be strictly partitioned. For example,when co-hosted VMs compete for the shared last level cache ordisk I/O bandwidth, the relationship between each VM’s resourceallocation and its application’s performance is known to benonlinear [11][25]. Finally, even if the application workloads stayrelatively steady, their SLAs, which specify the QoS that theyrequire and the cost that they are willing to pay, may change overtime. Consequently, resources in the system need to be reallocatedacross different applications’ VMs in order to sustain the systemlevel objective. As more applications become Internet-scale andresources become more consolidated, the above scenarios wouldalso be increasingly common in a virtualized system.Note that the fuzzy modeling approach differs fundamentally fromtraditional rule-based system management approach [20][21]. Thelatter is based on the use of a set of event-condition-action ruleswhich are triggered only when certain events happen and somepreconditions are met. In such an approach, the rules are typicallyspecified by system experts, which is often intractable to apply toa complex system because of the difficulty in defining thresholdsand corrective actions for all possible system states. In contrast, afuzzy model is built for the entire input space of the system andcan be used for continuous control, where the fuzzy rulesrepresenting the model are created automatically from theobserved input-output data.2.3 Model Predictive ControlModel predictive control (MPC) [2] is an advanced controltechnique in which the controller takes control actions byoptimizing an objective function that defines the objective ofcontrolling the system. To enable the predictive capabilities of thecontrol system, an explicit model that characterizes the systembehaviors is leveraged to make predictions of system output overa specific future prediction horizon. Such modeling andoptimization typically involved in MPC can be performediteratively in an online fashion, where real-time data are used toupdate the model in the modeling phase and new optimal action iscomputed based on the model to adjust the system control. In thisway, the system can adapt to the changes in the system behaviorin a timely fashion.Different approaches have been studied for virtual resourcemanagement and they are examined in detail in Section 5. Inparticular, machine learning techniques can be employed toautomatically learn the relationship between a VM’s resourceallocation and its application’s performance; Control-theorytechniques can be used to build a feedback loop into the resourcemanagement which can automatically adjust resource allocationsand quickly reach the desired system objective. This paperproposes a new resource management approach based on thecombination of these two types of techniques that can effectivelycapture the nonlinearly in virtualized system behaviors andquickly adapt to the changes in such behaviors, which arediscussed in details in the following subsections.In contrast to an open-loop optimal control technique, the MPCsystem works in a closed-loop manner by feeding back theinformation on previous inputs and outputs to the controller at theend of each control period in order to keep track of predictionerrors and control variations, so that on one hand the controller isable to make more informative control actions based on thefeedbacks, while on the other hand the system is able to be drivenback to the set-point target appropriately without large oscillationseven in the presence of noise.2.2 Fuzzy-logic based System ModelingThis paper adopts a fuzzy-logic-based learning technique to modelapplication performance and VM resource usage in a virtualizedsystem such as utility datacenters and clouds, because fuzzymodeling is particularly suited to efficiently model systems withcomplex behaviors [7]. The technique combines fuzzy logic withmathematical equations to describe the discovered patterns ofsystem behavior and to guide the control strategies of the system.A fuzzy model is a rule base which consists of a collection offuzzy rules in the form of ―If x is A then y is B‖, where A and Bare linguistic values defined by fuzzy sets with associatedmembership functions. These rules are trained using the input (x)and output (y) data observed from the system and together theyrepresent the model representing the system behaviors.MPC has been used by related work on VM resource management(examined in detail in Section 5), where most approaches adopt―black box‖ linear input-output models which are accurate enoughto model nonlinear system behaviors within a limited region ofcontrol operation. In this paper, we propose to use fuzzy modelingto build the model in MPC which can capture the nonlinearity insystem behaviors and perform optimized control over the entireoperating space. We believe that such a fuzzy MPC approach hasthe potential to both capture the nonlinearity in a VM’s resourceusage behaviors effectively and adapt to the dynamic changes inthese behaviors in a timely manner.While building a fuzzy model, data clustering techniques (e.g.,[13]) are often employed to discover the important features of thesystem and derive a concise representation of the system’sbehavior. Each cluster is treated as a fuzzy set and then each set isassociated with a fuzzy rule. As a result, only a small number offuzzy rules are needed in the fuzzy model. The mapping from agiven input to an output on a fuzzy rule base is called fuzzyinference, which entails the following steps: 1) Evaluation ofantecedents: the input variables are fuzzified to the degree towhich they belong to each of the appropriate fuzzy sets via thecorresponding membership functions, 2) Implication toconsequents: implication is performed on each fuzzy rule bymodifying the fuzzy set in the consequent to the degree specifiedby the antecedent; 3) Aggregation of consequents: the outputs ofall the fuzzy rules are aggregated into a single fuzzy set which isthen inversely translated into a single numeric value through adefuzzification method.3. APPROACHFigure 1 illustrates the architecture of our proposed system whichconsists of four key modules, Application Sensors, Fuzzy ModelEstimator, Optimizer, and Resource Allocator. As the applicationsare running on their VMs, the Application Sensors monitor theperformance yi(t) from each application i and then send them toFuzzy Model Estimator. The estimator collects all necessaryinformation including current and historical applicationperformance and VM resource allocations to create the fuzzymodel for performance prediction. Such a model, whichrepresents the relationship between the control input (resourceallocations to the VMs) and the measured output (performance ofthe applications), is updated every control period. Based on themodel, the Optimizer produces a resource allocation scheme for2

In the premise Ai and Bi are fuzzy sets associated with the fuzzyrule Ri. Their corresponding membership functions µAi and µBidetermine the membership grades of the control input vectors u(t)and y(t-1), respectively, which indicate the degree that theybelong to the fuzzy sets. In the consequence, the output y(t) is alinear function of the current control input and the previous outputwith trainable parameter matrices ai and bi.The Estimator adopts an efficient one-pass clustering algorithm,subtractive clustering [13], to build a concise rule base with asmall number of fuzzy rules that can effectively represent theVMs’ behaviors. Each cluster exemplifies a representativecharacteristic of the system behaviors and can be used to create afuzzy rule accordingly. In this way, both the system structure andparameters are learned and adapted in real time from online datastreams. The system model gradually evolves as opposed tohaving a fixed structure model, and the learning process isincremental and automatic. Owing to the speed of subtractiveclustering and fuzzy modeling, this whole model updating processcan be completed quickly within a fine-grained control interval.Figure 1 The architecture of the FMPC control systemthe next time interval that optimizes the system according to apredefined objective function. Then the Resource Allocatoradjusts the VM’s resource allocations accordingly. Together,these modules form a continuous feedback loop for the virtualresource management.The Estimator is invoked by the Optimizer discussed below inevery control step t to predict the performance for specific inputvalues and assist it to search for the optimal allocation solutionacross the input space. The Estimator applies fuzzy inference topredict the output y(t) for a given control input u(t), y(t-1) based on a trained fuzzy rule base with S fuzzy rules. It entails thefollowing steps: 1) Evaluation of antecedents: the input variablesare fuzzified to the degree, , to which they belong to each of thefuzzy sets via the corresponding membership functions for eachfuzzy rule Ri;2) Implication to consequents: implication isperformed on each fuzzy rule by computing yi(t) based on theequation in the consequent of the rule; 3) Aggregation ofconsequents: the final prediction is performed as , where the outputs yi(t) of all the fuzzy rules areaggregated into a single numeric value based on theircorresponding membership grades .3.1 Fuzzy Model EstimatorThe proposed FMPC is a fuzzy-model-based predictive controlapproach [2]. The major difference between FMPC and traditionalMPC approaches lies in the modeling part. In FMPC, the fuzzymodel estimator is responsible for building models that candescribe complex system behaviors using fuzzy logic basedmethod. The strength of this approach includes the followingaspects: 1) it simplifies the learning of the complex models bydescribing nonlinearity using a set of linear sub models capturedby the fuzzy rules; 2) it can perform optimized control over theentire operating space; 3) it inherits the benefits of traditionalpredictive control that can guarantee dynamic performance in aclosed-loop system and achieve desired target in a stable manner.Consider a resource provider that hosts multiple applications bymultiplexing multiple types of resources among them via VMs, ageneral MIMO model in MPC described by the followingequation is used to build the time-varying relationship betweenresource allocations and application performance,3.2 OptimizerGenerally, the objective function in MPC can be formulated as ‖ ‖ ‖ ‖(2)where P and M indicate the prediction and control horizon.isthe predictive error between y(t i), the output of the next ith steppredicted from the current time step t (using the fuzzy modelproduced by the Estimator), and the reference output yref(t i) ofthe next ith step.indicates the control effort. The importanceof tracking accuracy in performance targeting and maintainingstability in control operation can be determined by tuning the Q(i)and R(i) factors for the two components of the equation. Larger Qfactor will make the controller react aggressively to trackingerrors in performance. Larger R factor will guarantee the stabilityof the system by preventing from large oscillation in the resultingresource allocation, but lead to slower response to the trackingerror.where the input vector u(t) [u1(t), u2(t), , uN(t)]T represents theallocation of p types of controllable resources to the qapplications’ VMs at time step t (N pq), and the output vectory(t) [y1(t), y2(t), yq(t)]T is referred to as the predictedperformance of q applications at time step t. For example, if thereare two applications whose performance relies on two types ofresources, i.e. CPU and disk I/O, then u(t) is a 4-dimensionalvector, [uCPU1(t), uCPU2(t), uIO1(t), uIO2(t)]T.In traditional MPC approaches, linear models are applied toapproximate the nonlinear behaviors around the current operatingpoint, while m and n reflecting the impact of the previous inputsand outputs to current prediction are usually set to small values inorder to reduce the complexity of the model, e.g., with m 0, n 1, y(t) Φ( u(t), y(t-1) ) au(t) by(t-1).To reduce the complexity of the problem, we choose an objectivefunction with M P 1. In addition, in Equation 2, theperformance of the q different applications, represented in y [y1(t), y2(t), yq(t)]T, are treated with equal importance. Inpractice, applications concurrently hosted in a virtualizeddatacenter or cloud are often given different preferences, becausethey have different priorities or they generate different amounts ofrevenue to the system. Without loss of generality, we use a weightvector w [w1(t), w2(t), wq(t)]T to represent the preferencesIn our proposed FMPC, the general Φ function from the controlinputs to the system outputs is instantiated by a fuzzy modelcomposed of a collection of Takagi-Sugeno fuzzy rules [7](1)3

given to the applications. The objective function can beformulated as‖ ()‖‖()‖ [()] maximum values that the system can achieve; and the Q and Rfactor are both set to 1 in order to balance the importance betweentracking accuracy and controlling stability.A Linear MPC (LMPC) based approach which leverages a linearauto-regressive-moving-average (ARMA) model [4] in themodeling part of MPC is used as a baseline. By comparing it toour FMPC-based approach, we can evaluate whether our proposedapproach can estimate VM resource needs more accurately andachieve better level of service. For both approaches, as soon as theworkload is launched, the controller starts with an initial resourceallocation that is much less than the actual demand. The model iscreated from scratch once it collects the first few data point

2.3 Model Predictive Control Model predictive control (MPC) [2] is an advanced control technique in which the controller takes control actions by optimizing an objective function that defines the objective of controlling the system. To enable the predictive capabilities of the control system, an explicit model that characterizes the system

Related Documents:

Sybase Adaptive Server Enterprise 11.9.x-12.5. DOCUMENT ID: 39995-01-1250-01 LAST REVISED: May 2002 . Adaptive Server Enterprise, Adaptive Server Enterprise Monitor, Adaptive Server Enterprise Replication, Adaptive Server Everywhere, Adaptive Se

Summer Adaptive Supercross 2012 - 5TH PLACE Winter Adaptive Boardercross 2011 - GOLD Winter Adaptive Snocross 2010 - GOLD Summer Adaptive Supercross 2010 - GOLD Winter Adaptive Snocross 2009 - SILVER Summer Adaptive Supercross 2003 - 2008 Compete in Pro Snocross UNIQUE AWARDS 2014 - TEN OUTSTANDING YOUNG AMERICANS Jaycees 2014 - TOP 20 FINALIST,

Chapter Two first discusses the need for an adaptive filter. Next, it presents adap-tation laws, principles of adaptive linear FIR filters, and principles of adaptive IIR filters. Then, it conducts a survey of adaptive nonlinear filters and a survey of applica-tions of adaptive nonlinear filters. This chapter furnishes the reader with the necessary

Highlights A large thermal comfort database validated the ASHRAE 55-2017 adaptive model Adaptive comfort is driven more by exposure to indoor climate, than outdoors Air movement and clothing account for approximately 1/3 of the adaptive effect Analyses supports the applicability of adaptive standards to mixed-mode buildings Air conditioning practice should implement adaptive comfort in dynamic .

Virtual Office Management System (VOMS) is an information technology-based application that is the answer to the needs of virtual office management entrepreneurs in Indonesia. Keywords: virtual office, information technology, management, enterprise resource planning, software, business application, operational efficiency, resource effectiveness .

Each NETLAB remote PC or remote server runs inside of a virtual machine. VMware ESXi provides virtual CPU, virtual memory, virtual disk drives, virtual networking interface cards, and other virtual hardware for each virtual machine. ESXi also provides the concept of a virtual networking switch.

"Virtual PC Integration Components" software must be installed into each virtual machine. In a Windows host, the "Virtual PC Integration Components" software for a Windows virtual machine is located at C:\Program Files (x86)\Windows Virtual PC\Integration Components\ Multiple virtual machines can access the same target folder on the host.

adaptive controls and their use in adaptive systems; and 5) initial identification of safety issues. In Phase 2, the disparate information on different types of adaptive systems developed under Phase 1 was condensed into a useful taxonomy of adaptive systems.