1 / 74

Supporting Time-Critical Event Processing in Grids and Clouds

Supporting Time-Critical Event Processing in Grids and Clouds. Qian Zhu Advisor: Professor Gagan Agrawal. Adaptive Applications. Earthquake modeling. Coastline forecasting. Medical systems. Time-Critical Event Processing Compute-intensive Time constraints

lieu
Télécharger la présentation

Supporting Time-Critical Event Processing in Grids and Clouds

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Supporting Time-Critical Event Processing in Grids and Clouds • Qian Zhu • Advisor: Professor Gagan Agrawal

  2. Adaptive Applications Earthquake modeling Coastline forecasting Medical systems • Time-Critical Event Processing • Compute-intensive • Time constraints • Application-specific flexibility • Application Quality of Service (QoS)

  3. Adaptive Applications that perform time-critical event processing Adaptive Applications (Cont’d) HPC Applications (compute-intensive) Deadline-driven Scheduling • Aim at maximize performance • Do not consider adaptation • Not very compute-intensive • Application-specific flexibility: parameter adaptation • Trade-off between application QoS and execution time

  4. Motivating Application- Real-time Volume Rendering • Interactively create a 2D projection of a large time-varying 3D data set • Application Flexibility • Error tolerance (image quality) • Image size • Benefit definition (QoS metric) • To view the rendered images from as many angles as possible • For each view angle, display the image with the best resolution at the desired image size

  5. Motivating Application- Real-time Volume endering • Example (a) (b) Note: RMI data set from Lawrence Livermore National Laboratory • How well can we do given 1 minute as the time constraint ?

  6. 1km 1km Motivating Application- Great Lake Nowcasting and Forecasting • Monitor meteorological conditions of the Lake Erie for nowcasting and forecasting

  7. Motivating Application - Great Lake Nowcasting and Forecasting • Application flexibility • Resolution of grids • Internal time step • External time step • Benefit definition (QoS metric) • To predict the water level first • To predict other meteorological information as much as possible • How much meteorological information can we predict given 1 hour?

  8. Goal: Maximize the application benefit (QoS) while satisfying the pre-specified time constraints Time Critical Event Processing • Grid Computing Environment • Geographically distributed • Heterogeneous • Unreliable • Cloud Computing Environment • On-demand resource availability • Pay-as-you-go pricing model

  9. Grid Cloud Resource Provisioning Power Management Fault Tolerance Resource Allocation Dissertation Overview Scientific computing Mobile applications Parallel computing Adaptive applications that perform time-critical event processing Parameter Adaptation

  10. Challenges -- Parameter Adaptation • A Large Number of Parameters to be Adapted • Discrete and continuous • Correlations between parameters • No Knowledge about the Impact of Such Parameters on Execution Time or Benefit • Pre-specified Time Constraints • Low adaptation overhead

  11. Benefit Value Resource Configuration Challenges -- Resource Allocation • Grid/Cloud: Heterogeneous and Dynamic Resources • Resource Allocation Impacts Application Benefit • A 20-min event from Volume Rendering application • Different CPU, Memory and/or Bandwidth Usage • Different application components • Different value of adaptive parameters

  12. Challenges -- Fault Tolerance • Grid Resources • Heterogenous and Unreliable • Time Constraints • Trade-off between Resource Efficiency and Reliability • Effective, Low-overhead Failure Recovery

  13. Challenges -- ResourceBudget Constraints • Elastic Cloud Computing • Pay-as-you-go model • Satisfy the Application QoS with the Minimum Resource Cost • Dynamic Resource Provisioning • Dynamically varying application workloads • Resource budget

  14. Goal: Maximize the application benefit (QoS) while satisfying the pre-specified time constraints Contributions • Parameter adaptation • Q. Zhu and G. Agrawal (ICAC2008) • Resource allocation • Q. Zhu and G. Agrawal (IPDPS2009) • Fault tolerance • Q. Zhu and G. Agrawal (SC2009) • Budget constrained resource provisioning • Q. Zhu and G. Agrawal (HPDC 2010) • Power-aware consolidation of workflows • Q. Zhu, J. Zhu and G. Agrawal (submitted to SC2010)

  15. Roadmap • Motivation and Introduction • Parameter Adaptation in the Grid Environment • Application model • Autonomic adaptation algorithm • Resource allocation in time-critical event processing • Budget Constrained Resource Provisioning • Power-aware Consolidation of Workflows • Future Work • Conclusion

  16. Contributions • Develop an Autonomic Adaptation Algorithm • Effectively adjust the parameters • Low overhead • Design of an Adaptive Middleware with Support of Easy Deployment of Applications in Grid Environments • Consider Heterogeneous Resources • Efficiency value definition • Efficiency value estimation • Greedy-based scheduling algorithm

  17. WSTP Tree Construction Service Compression Service Temporal Tree Construction Service Unit Image Rendering Service Decompression Service Image Composition Service Application and Environment Model • Volume Rendering application

  18. Goal: Maximize the application benefit (QoS) while satisfying the pre-specified time constraints Algorithm Overview • Train system model • Learn the relationship between the values of adaptive parameters and executiontime, application benefit Normal Processing Phase Event Handling Phase Input Data Input Data Time Constraint ... checkpoint 1 ... checkpoint 2 ... ... checkpoint 1 ... checkpoint 2 ... (collect data) (adjust parameters) (adjust parameters) (collect data) • Apply the trained system model for parameter adaptation

  19. Parameter Adaptation to OptimalControl Model • Adaptation Process Performance Measure Controller u(k) D(k) D(k) w(k) Application • Control Policy • Policy with learning -- Reinforcement learning

  20. Resource Allocation • Heterogeneous and Dynamic Resources • Different CPU, Memory and/or Bandwidth Usage • Different service components • Different values of adaptive service parameters • Schedule the Service Components to Maximize the Benefit Function Within the Time Constraint

  21. Efficiency Value • Definition • Represent how efficient to execute a service on a node • Consider application benefit and execution time • Estimation • Based on fuzzy logic • Assign to and to yields the maximum benefit • Our definition of efficiency value captures the suitability of different nodes for different services

  22. Roadmap • Motivation and Introduction • Parameter Adaptation in the Grid Environment • Budget Constrained Resource Provisioning • Background: Cloud environment • Dynamic resource provisioning algorithm • Framework Design • Experimental evaluation • Power-aware Consolidation of Workflows • Future Work • Conclusion

  23. Background: Cloud Environment • Amazon EC2, Google AppEngine, Microsoft Azure, Magellan ... • Utility-like Computing • On-demand scalability of resources • Resource Cost • Pricing model: Pay-as-you-go • Virtualization • Resource sharing • Customized deployment and easy migration • Assumption: Fine-grained resource allocation (i.e., change CPU, memory on-the-fly) and pricing

  24. Background: Pricing Model • Charged Fees • Base price • Transfer fee • Linear Pricing Model • Exponential Pricing Model

  25. Problem Description • Adaptive Applications • Adaptive parameters • Benefit • Time constraint • Cloud Computing Environment • Resource budget • Overprovisioning/Underprovisioning • Goal • Maximize the application benefit while satisfying the time constraints and resource budget

  26. Contributions • Dynamic Resource Provisioning Algorithm • Based on multi-input-multi-output feedback control model • Optimization to reduce provisioning overhead • Adaptive and SOA Oriented Framework • Support dynamic virtual CPU and memory allocation based on application requirements

  27. Approach Overview • Resource Provisioning Controller • Multi-input-multi-output (MIMO) feedback control model • Modeling between adaptive parameters and performance metrics • Control policy: reinforcement learning • Resource Model • Map change of parameters to change in CPU/memory allocations • Optimization: avoid frequent resource changes Dynamic Resource Provisioning (feedback control) change to the adaptive parameters Resource Model (with optimization) change to CPU/memory allocations

  28. 0 0 0 • Satisfy time constraints and resource budget • Relationship between adaptive parameters and performance metrics • Decide how to change values of the adaptive parameters Resource Provisioning Controller Performance Metrics Multi-Input-Multi-Output Model Control Policy 0

  29. Control Model Formulation -- Performance Metrics • Performance Metrics • Processing progress: ratio between the currently obtained application benefit and the elapsed execution time • Performance/cost ratio: ratio between the currently obtained application benefit and the cost of the resources that have been assigned • Notation Application benefit obtained at time step k Elapsed execution time at time step k Resource cost at time step k

  30. Control Model Formulation -- Multi-Input-Multi-Output Model • Auto-Regressive-Moving-Average with Exogenous Inputs (ARMAX) • Second-order model • is ith adaptive parameter at time step k • are updated at the end of every interval Previous observed performance metrics Previous and current values of adaptive parameters

  31. , subject to the time and resource budget constraints Action taken at time step k Application benefit Control Model Formulation -- Control Policy • : Maximize Application Benefit • Reinforcement learning (Q-Learning) • Reward function • : Minimize Control Overhead( ) • Proportional-Integral (PI) controller • Update Parameter Values

  32. Resource Model • Offline Training • Collect Data Points: • Learn the Relationship Between the Values of the Parameters and CPU/memory Usage • Model Optimization • Avoid frequent change to CPU/memory allocations due to resource cost • Balance global CPU/memory among multiple services

  33. Performance Analysis Priority Assignment Status Query Application Controller Resource Model Model Optimizer VM VM VM VM VM VM Service Wrapper Framework Design Application Performance Manager Resource Provisioning Controller Service Deployment Virtualization Management (Eucalyptus, Open Nebular...) Xen Hypervisor Xen Hypervisor Xen Hypervisor ... ... ...

  34. Experiments Setup • Schemes Compared • Work-conserving • Static scheduling • Metrics • Benefit Percentage • Resource Cost • Emulated Cloud Environment • Xen 3.0 • , • ,

  35. Resource Model Validation: Hardware Heterogeneity • Our model predicts CPU cycle and memory usage within 3% comparing to the actual resource usage • Model trained on homogeneous hardware (M1) and on heterogeneous hardware (M2 and M3)

  36. Performance of Dynamic Resource Provisioning Algorithm • Considered both linear and exponential pricing models • In linear pricing model, Our approach performs 24% worse than Work Conserving

  37. Performance of Dynamic Resource Provisioning Algorithm • Work Conserving costs 66% more than our approach does

  38. Resource Provisioning Overhead • Optimal Execution: ideal resource configurations • Our approach performs 4%, 2%, 2%, 1% and 0.8% worse than the Optimal Execution

  39. Roadmap • Motivation and Introduction • Parameter Adaptation in the Grid Environment • Budget Constrained Resource Provisioning • Power-aware Consolidation of Workflows • Opportunities for consolidation • Workload analysis • Consolidation algorithm • Experimental Evaluation • Future Work • Conclusion

  40. Motivation • Another Critical Issue in Cloud Environment: Power Management • HPC servers consume a lot of energy • Significant adverse impact on the environment • To Reduce Resource and Energy Costs • Server consolidation • Minimize the total power consumption and resource costs without a substantial degradation in performance

  41. Problem Description • Our Target Applications • Workflows with DAG structure • Multiple processing stages • Opportunities for consolidation • Research Problems • Combine parameter adaptation, budget constraints and resourceallocation with consolidation and power optimization • Challenge: consolidation without parameter adaptation • Support power-aware parameter adaptation -- future work

  42. Contributions • A power-aware consolidation framework, pSciMapper, based on hierarchical clustering and an optimization search method • pSciMapper is able to reduce the total power consumption by up to 56% with a most a 15% slowdown for the workflow • pSciMapper incurs low overhead and thus suitable for large-scale scientific workflows

  43. Opportunities for Consolidation: GLFS • GLFS nowcasts and forecasts meteorological information for Lake Erie • GLFS is compute-intensive • Individual tasks could incur low resource usage

  44. Resource Usage of GLFS Task1 <500, 3, 600> <1000, 6, 600> <2000, 12, 1200> <1000, 6, 600>

  45. Resource Usage of GLFS Task2

  46. Observations • Periodic Behavior w.r.t. CPU, memory, disk, and network usage: Time Series • Average Resource Usage is Significantly Smaller than its Peak Value • Dependent on the Values of the Application Parameters and the Characteristics of the Host Server

  47. Power Consumption Analysis • Resource Usage Activity • CPU, memory, disk and network • Server Consolidation • Virtualization • Interference of consolidated workloads

  48. Power Consumption Analysis: Resource Usage • All resource activities impact power consumption • Variation in the CPU utilization has the largest impact • Memory footprint and cache activities also impact the consumed power

  49. Power Consumption Analysis: Virtualization • Virtualization incurs very low power overhead • Contention of CPU cycles • Dynamic CPU provisioning saves power

  50. Power Consumption Analysis: Interference • Consolidating dissimilar workloads incur a small slowdown in the execution time and large savings in power and resource costs • Consolidating workloads with similar resource requirements significantly increase the execution time

More Related