The Impact of Soft Resource Allocation on n-tier Application Scalability Qingyang Wang, Simon Malkowski, Yasuhiko Kanemasa, Deepal Jayasinghe, Pengcheng.

Slides:



Advertisements
Similar presentations
Symantec 2010 Windows 7 Migration Global Results.
Advertisements

Design and Evaluation of an Autonomic Workflow Engine Thomas Heinis, Cesare Pautasso, Gustavo Alsonso Dept. of Computer Science Swiss Federal Institute.
AP STUDY SESSION 2.
1
1 Vorlesung Informatik 2 Algorithmen und Datenstrukturen (Parallel Algorithms) Robin Pomplun.
& dding ubtracting ractions.
Pricing for Utility-driven Resource Management and Allocation in Clusters Chee Shin Yeo and Rajkumar Buyya Grid Computing and Distributed Systems (GRIDS)
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
Chapter 1 The Study of Body Function Image PowerPoint
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 6 Author: Julia Richards and R. Scott Hawley.
Author: Julia Richards and R. Scott Hawley
1 Copyright © 2013 Elsevier Inc. All rights reserved. Appendix 01.
Properties Use, share, or modify this drill on mathematic properties. There is too much material for a single class, so you’ll have to select for your.
Multiplication X 1 1 x 1 = 1 2 x 1 = 2 3 x 1 = 3 4 x 1 = 4 5 x 1 = 5 6 x 1 = 6 7 x 1 = 7 8 x 1 = 8 9 x 1 = 9 10 x 1 = x 1 = x 1 = 12 X 2 1.
Division ÷ 1 1 ÷ 1 = 1 2 ÷ 1 = 2 3 ÷ 1 = 3 4 ÷ 1 = 4 5 ÷ 1 = 5 6 ÷ 1 = 6 7 ÷ 1 = 7 8 ÷ 1 = 8 9 ÷ 1 = 9 10 ÷ 1 = ÷ 1 = ÷ 1 = 12 ÷ 2 2 ÷ 2 =
UNITED NATIONS Shipment Details Report – January 2006.
Towards Automating the Configuration of a Distributed Storage System Lauro B. Costa Matei Ripeanu {lauroc, NetSysLab University of British.
David Burdett May 11, 2004 Package Binding for WS CDL.
and 6.855J Spanning Tree Algorithms. 2 The Greedy Algorithm in Action
1 RA I Sub-Regional Training Seminar on CLIMAT&CLIMAT TEMP Reporting Casablanca, Morocco, 20 – 22 December 2005 Status of observing programmes in RA I.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
CALENDAR.
1 1  1 =.
FACTORING ax2 + bx + c Think “unfoil” Work down, Show all steps.
Year 6 mental test 5 second questions
Year 6 mental test 10 second questions
1 Aberdeen City Probationer Teacher Induction Programme.
REVIEW: Arthropod ID. 1. Name the subphylum. 2. Name the subphylum. 3. Name the order.
Break Time Remaining 10:00.
PP Test Review Sections 6-1 to 6-6
EU market situation for eggs and poultry Management Committee 20 October 2011.
EU Market Situation for Eggs and Poultry Management Committee 21 June 2012.
2 |SharePoint Saturday New York City
VOORBLAD.
Making Time-stepped Applications Tick in the Cloud Tao Zou, Guozhang Wang, Marcos Vaz Salles*, David Bindel, Alan Demers, Johannes Gehrke, Walker White.
Sample Service Screenshots Enterprise Cloud Service 11.3.
Copyright © 2012, Elsevier Inc. All rights Reserved. 1 Chapter 7 Modeling Structure with Blocks.
1 RA III - Regional Training Seminar on CLIMAT&CLIMAT TEMP Reporting Buenos Aires, Argentina, 25 – 27 October 2006 Status of observing programmes in RA.
Factor P 16 8(8-5ab) 4(d² + 4) 3rs(2r – s) 15cd(1 + 2cd) 8(4a² + 3b²)
Basel-ICU-Journal Challenge18/20/ Basel-ICU-Journal Challenge8/20/2014.
1..
© 2012 National Heart Foundation of Australia. Slide 2.
MaK_Full ahead loaded 1 Alarm Page Directory (F11)
LO: Count up to 100 objects by grouping them and counting in 5s 10s and 2s. Mrs Criddle: Westfield Middle School.
Understanding Generalist Practice, 5e, Kirst-Ashman/Hull
Artificial Intelligence
KAIST Computer Architecture Lab. The Effect of Multi-core on HPC Applications in Virtualized Systems Jaeung Han¹, Jeongseob Ahn¹, Changdae Kim¹, Youngjin.
Before Between After.
Model and Relationships 6 M 1 M M M M M M M M M M M M M M M M
25 seconds left…...
Januar MDMDFSSMDMDFSSS
1 hi at no doifpi me be go we of at be do go hi if me no of pi we Inorder Traversal Inorder traversal. n Visit the left subtree. n Visit the node. n Visit.
Analyzing Genes and Genomes
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
Essential Cell Biology
Converting a Fraction to %
Clock will move after 1 minute
Intracellular Compartments and Transport
PSSA Preparation.
& dding ubtracting ractions.
Essential Cell Biology
The DDS Benchmarking Environment James Edmondson Vanderbilt University Nashville, TN.
Detecting Transient Bottlenecks in n-Tier Applications through Fine- Grained Analysis Qingyang Wang Advisor: Calton Pu.
When Average is Not Average: Large Response Time Fluctuations in n-Tier Applications Qingyang Wang, Yasuhiko Kanemasa, Calton Pu, Motoyuki Kawaba.
Presentation transcript:

The Impact of Soft Resource Allocation on n-tier Application Scalability Qingyang Wang, Simon Malkowski, Yasuhiko Kanemasa, Deepal Jayasinghe, Pengcheng Xiong, Motoyuki Kawaba, Lilian Harada, Calton Pu

22 25th IEEE International Parallel & Distributed Processing Symposium 19 May 2011 Outline  Background & Motivation  Background  Motivational experiment  Performance Impact of Soft Resource Allocation  Over-allocation of soft resources  Under-allocation of soft resources  Special case of under-allocation  Solution  A practical algorithm for good soft resource allocation  Conclusion & Future Works

33 25th IEEE International Parallel & Distributed Processing Symposium 19 May 2011 Cloud Computing Environment Good performance + Cost efficiency  Scaling applications on demand High throughput + low response time High resource utilization

44  Soft resources in n-tier systems  Threads, database connections, TCP connections, locks, etc. Soft Resource Allocation 25th IEEE International Parallel & Distributed Processing Symposium 19 May 2011 Is it okay to duplicate the same configuration of soft resource allocation?

55 25th IEEE International Parallel & Distributed Processing Symposium 19 May 2011 Outline  Background & Motivation  Background  Motivational experiment  Performance Impact of Soft Resource Allocation  Over-allocation of soft resources  Under-allocation of soft resources  Special case of under-allocation  Solution  A practical algorithm for good soft resource allocation  Conclusion & Future Works

66  RUBBoS benchmark  Bulletin board system like Slashdot (  Typical 3-tier or 4-tier architecture  Two types of workload  Browsing only  Read/Write mix  24 web interactions  C-JDBC  Middleware for database scale-out  Read: act as a load-balancer  Write: send a request to all databases to keep consistency Experimental Environment (1) 25th IEEE International Parallel & Distributed Processing Symposium 19 May 2011

77  Emulab (  Relatively modest testbed originally for network research  Virtual network & physical machines (not VM) Experimental Environment (2) 25th IEEE International Parallel & Distributed Processing Symposium 19 May 2011 HardwareSpecifications Server typePC3000 in Emulab ProcessorXeon 3GHz 64bit Memory2GB Network1Gbps Disk2 x 146GB 10,000rpm

88  Software setups Experimental Environment (3) 25th IEEE International Parallel & Distributed Processing Symposium 19 May 2011 FunctionSoftware Web serverApache Application serverApache Tomcat DB clustering middlewareC-JDBC Database serverMySQL a JavaSun jdk1.6.0_14 Operating systemRedhat FC4 System MonitorSysstat 7.0.2

99  Notation Experimental Environment (4) 25th IEEE International Parallel & Distributed Processing Symposium 19 May / 3 / 1 / 2 configuration

10 25th IEEE International Parallel & Distributed Processing Symposium 19 May 2011 Result of Motivational Experiment Scale out

11 Hardware configuration 2 25th IEEE International Parallel & Distributed Processing Symposium 19 May 2011 Challenge Hardware configuration Soft resource allocation Hardware configuration 1 Soft resource allocation 1 Thread pool, DB connection pool Thread pool, DB connection pool Soft resource allocation 2 Good performance Bad performance Good performance Scale out How to choose a reasonable soft resource allocation to match the hardware configuration?

12  Evaluate two important soft resources  Threads  Database connections  Show their performance impact on n-tier applications  Over-allocation & under-allocation cases  Special case of under-allocation  Introduce a practical way to choose a reasonable allocation of soft resources Focus of This Paper 25th IEEE International Parallel & Distributed Processing Symposium 19 May 2011

13 25th IEEE International Parallel & Distributed Processing Symposium 19 May 2011 Outline  Background & Motivation  Background  Motivational experiment  Performance Impact of Soft Resource Allocation  Over-allocation of soft resources  Under-allocation of soft resources  Special case of under-allocation  Solution  A practical algorithm for good soft resource allocation  Conclusion & Future Works

14 25th IEEE International Parallel & Distributed Processing Symposium 19 May 2011 Performance Loss due to Soft Resource Over-allocation (1) Sensitivity analysis: change DB Connection pool size in Tomcat

15 25th IEEE International Parallel & Distributed Processing Symposium 19 May Performance degradation Goodput 1/4/1/4CPU utilization in CJDBC Throughput with response time boundary Performance Loss due to Soft Resource Over-allocation (2) High allocation of DB connections in Tomcat degrades the system performance

16 25th IEEE International Parallel & Distributed Processing Symposium 19 May 2011 JVM Garbage Collection Costs Over-allocation of soft resources causes waste of critical hardware resources % more time used for GC over experimental time JVM Garbage Collection in CJDBC

17 25th IEEE International Parallel & Distributed Processing Symposium 19 May 2011 Outline  Background & Motivation  Background  Motivational experiment  Performance Impact of Soft Resource Allocation  Over-allocation of soft resources  Under-allocation of soft resources  Special case of under-allocation  Solution  A practical algorithm for good soft resource allocation  Conclusion & Future Works

18 25th IEEE International Parallel & Distributed Processing Symposium 19 May 2011 Performance Loss due to Soft Resource Under-allocation (1) Sensitivity analysis: change thread pool size in Tomcat

th IEEE International Parallel & Distributed Processing Symposium 19 May 2011 Performance Loss due to Soft Resource Under-allocation (2) Goodput 1/2/1/ CPU utilization of Tomcat 20 6 Under-allocation of soft resources causes inefficient utilization of hardware resources

20 25th IEEE International Parallel & Distributed Processing Symposium 19 May 2011 Outline  Background & Motivation  Background  Motivational experiment  Performance Impact of Soft Resource Allocation  Over-allocation of soft resources  Under-allocation of soft resources  Special case of under-allocation  Solution  A practical algorithm for good soft resource allocation  Conclusion & Future Works

21 25th IEEE International Parallel & Distributed Processing Symposium 19 May 2011 Special Case of Soft Resource Under- allocation Sensitivity analysis: change thread pool size in Apache

th IEEE International Parallel & Distributed Processing Symposium 19 May 2011 Performance Loss due to Under- allocation of Apache Threads Goodput 1/4/1/4 CPU utilization in CJDBC Low allocation of Apache threads degrades the system performance

23 25th IEEE International Parallel & Distributed Processing Symposium 19 May 2011 Non-Trivial Correlation between Apache and Tomcat Threads (1) > 6 * 4 Why are 30 threads in Apache not enough?

24 25th IEEE International Parallel & Distributed Processing Symposium 19 May 2011 Non-Trivial Correlation between Apache and Tomcat Threads (2) Waiting for TCP FIN reply from the client

25 25th IEEE International Parallel & Distributed Processing Symposium 19 May 2011 Non-Trivial Correlation between Apache and Tomcat Threads (3) The long waiting time for FIN reply from clients is unpredictable and frequently happens under high workload Waiting for TCP FIN reply from client

26 Concurrency for Concurrency for Large number of soft resources in front tier acts as a buffer providing stable workload for lower tiers 25th IEEE International Parallel & Distributed Processing Symposium 19 May 2011 Concurrency of Apache Threads Connecting to Tomcat

27 25th IEEE International Parallel & Distributed Processing Symposium 19 May 2011 Summary of Experiments 1.Over-allocation of soft resources causes waste of critical hardware resources 2.Under-allocation of soft resources causes inefficient utilization of hardware resources 3.Large number of soft resources in front tier acts as a buffer providing stable workload for downstream tiers

28 25th IEEE International Parallel & Distributed Processing Symposium 19 May 2011 Outline  Background & Motivation  Background  Motivational experiment  Performance Impact of Soft Resource Allocation  Over-allocation of soft resources  Under-allocation of soft resources  Special case of under-allocation  Solution  A practical algorithm for good soft resource allocation  Conclusion & Future Works

29 25th IEEE International Parallel & Distributed Processing Symposium 19 May 2011 Soft Resource Allocation Algorithm  Key idea: allocating soft resources globally to utilize the critical hardware resource as efficiently as possible

30 1. Identifying the critical hardware resource first Soft Resource Allocation Algorithm (1) 25th IEEE International Parallel & Distributed Processing Symposium 19 May 2011 (1) Bottleneck server

31 1. Identifying the critical hardware resource first 2. Allocating proper soft resources for the bottleneck server Soft Resource Allocation Algorithm (2) 25th IEEE International Parallel & Distributed Processing Symposium 19 May 2011 Throughput knee Minimum Saturation workload (2) Ave. number of active threads (1) Bottleneck server

32 (3) Dependency between current tier and bottleneck tier 1. Identifying the critical hardware resource first 2. Allocating proper soft resources for the bottleneck server 3. Allocating proper amount soft resources in other tiers Soft Resource Allocation Algorithm (3) 25th IEEE International Parallel & Distributed Processing Symposium 19 May 2011 (2) Ave. number of active threads (1) Bottleneck server

33 25th IEEE International Parallel & Distributed Processing Symposium 19 May 2011 Outline  Background & Motivation  Background  Motivational experiment  Performance Impact of Soft Resource Allocation  Over-allocation of soft resources  Under-allocation of soft resources  Special case of under-allocation  Solution  A practical algorithm for good soft resource allocation  Conclusion & Future Works

34 Achieving good performance by scaling n-tier applications in Cloud requires a unified exploration of both hardware and software Contributions:  We showed allocation of soft resources has a big impact on the total performance of an N-tier system  We showed to decide a proper soft-resources allocation is a complex problem, especially in cloud environments which requires dynamic scaling-out/in  We gave a practical algorithm for proper soft resource allocation 25th IEEE International Parallel & Distributed Processing Symposium 19 May 2011 Conclusion

35 25th IEEE International Parallel & Distributed Processing Symposium 19 May 2011 Future Work  Explore more soft resources such as locks, buffer/queue  Explore more efficient ways to find proper soft resource allocation  Explore the impact of soft resource allocation in virtualized environment

Thank You. Any Questions? Qingyang Wang