• 沒有找到結果。

Automatic Resource Scaling for Web Applications in the Cloud

N/A
N/A
Protected

Academic year: 2022

Share "Automatic Resource Scaling for Web Applications in the Cloud"

Copied!
18
0
0

加載中.... (立即查看全文)

全文

(1)

Automatic Resource Scaling for Web Applications in the Cloud

Ching-Chi Lin

Institute of Information Science, Academia Sinica

Department of Computer Science and Information Engineering, Nation Taiwan University

Jeng-An Lin, Li-Chung Song

Department of Computer Science and Information Engineering, Nation Taiwan University

Pangfeng Liu

Department of Computer Science and Information Engineering, Nation Taiwan University Graduate Institute of Networking and Multimedia, Nation Taiwan University

Jan-Jan Wu

Institute of Information Science, Academia Sinica

Research Center for Information Technology Innovation, Academia Sinica

(2)

Introduction

Web applications face fluctuating loads.

Using a fixed number of VM as web ser ver is not enough.

Over-provision or under provision.

Auto-scaling

(3)

Auto-Scaling

Estimate the load.

Up-scale or down-scale the resourc es.

Purpose

Maintains application service quality .

Reduces wasted resources.

(4)

Related Works

Cloud service: Amazon EC2, Google App Engine, …

Software: Scalr, RightScale, …

Constraints:

Replying on user-provided scaling met rics and threshold values.

Employing the simple Majority Vote sc aling algorithm.

Lack of capability for predicting wor kload change.

(5)

Our Contribution

WebScale

A modularized auto scaling system for dynamic resource provision in data ce nters.

Consider different algorithms

Propose a trend analysis technique .

(6)

Technical approach

Majority Vote

Each VM makes their choice according to their current loading.

Compare with threshold.

The scaling decision equals to the ma jority one among all choices.

(7)

Workload-Based

Determines the number of running V Ms needed based on the incoming wo rkload.

Has the advantage of knowing the n eeded number of VMs in advance com pare to Majority Vote.

current VM

scale VM

Capacity Workload

VM

(8)

Trend Analysis

Works as a helper to the scaling a lgorithms.

More ”correct” decision.

Only predict the trend of workload change instead of accurately value .

Trend is the direction of workload ch anging.

(9)

Example of Trend Analysis

(10)

Experiment Setting

Environment:

24 physical servers, each with 4 core X5460 CPU * 2 with hyperthreading,16 GB memory, and 250 GB disk.

Web application: MediaWiki

Performance measuring tool: Httper f

(11)

Experiment Workload

(12)

Experiment Results – Majority Vo

te

(13)

Experiment Results – Workload-ba

sed

(14)

Experiment Results – Database

(15)

Experiment results - Summa ry

Majority vote is not an effective.

Especially with frequently changing w orkloads.

Workload-based with trend analysis performs the best among all three strategies.

(16)

Conclusion

Auto-scaling technique provides o n-demand resources according to wo rkload in cloud computing system.

We implemented an modularized aut o-scaling system, WebScale.

Our experiment results show that f or workloads with periodic behavio r, using workload-based algorithm with trend analysis performs the b est among all three strategies.

(17)

參考文獻

相關文件

Feng-Jui Hsieh (Department of Mathematics, National Taiwan Normal University) Hak-Ping Tam (Graduate Institute of Science Education,. National Taiwan

2 Department of Educational Psychology and Counseling / Institute for Research Excellence in Learning Science, National Taiwan Normal University. Research on embodied cognition

Department of Computer Science and Information

Department of Computer Science and Information

Department of Computer Science and Information

2 Center for Theoretical Sciences and Center for Quantum Science and Engineering, National Taiwan University, Taipei 10617, Taiwan.. (Dated: April

2 Center for Theoretical Sciences and Center for Quantum Science and Engineering, National Taiwan University, Taipei 10617, Taiwan..

2 Department of Physics, Center for Theoretical Sciences, and Center for Quantum Science and Engineering, National Taiwan University, Taipei 10617, Taiwan..