Ó 1998 menascé & almeida. all rights reserved.1 part iv capacity planning methodology

32
8 Menascé & Almeida. All Rights Reserved. 1 Part IV Capacity Planning Methodology

Upload: mildred-craig

Post on 18-Dec-2015

213 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Ó 1998 Menascé & Almeida. All Rights Reserved.1 Part IV Capacity Planning Methodology

8 Menascé & Almeida. All Rights Reserved. 1

Part IV

Capacity Planning Methodology

Page 2: Ó 1998 Menascé & Almeida. All Rights Reserved.1 Part IV Capacity Planning Methodology

8 Menascé & Almeida. All Rights Reserved. 2

Learning Objectives

� Discuss the concept of adequate capacity of a system.

� Introduce service level agreements.

� Present a methodology for capacity planning.

Page 3: Ó 1998 Menascé & Almeida. All Rights Reserved.1 Part IV Capacity Planning Methodology

8 Menascé & Almeida. All Rights Reserved. 3

Learning Objectives (cont’d)

� Discuss the main steps of the methodology:– understanding the environment

– workload characterization

– workload forecasting

– performance modeling

– performance prediction – cost/performance analysis.

Page 4: Ó 1998 Menascé & Almeida. All Rights Reserved.1 Part IV Capacity Planning Methodology

8 Menascé & Almeida. All Rights Reserved. 4

What is Adequate Capacity?

We say that a Web service has adequate capacity if the service-level agreements are continuously met for a specified technology and standards, and if the services are provided within cost constraints.

Page 5: Ó 1998 Menascé & Almeida. All Rights Reserved.1 Part IV Capacity Planning Methodology

8 Menascé & Almeida. All Rights Reserved. 5

Service-Level Agreements (SLA)

• SLAs determine what a user of an application can expect in terms of response time, throughput, system availability, and reliability

– focus on metrics that users can understand– set easy-to-measure goals– tie IT costs to your SLAs

Page 6: Ó 1998 Menascé & Almeida. All Rights Reserved.1 Part IV Capacity Planning Methodology

8 Menascé & Almeida. All Rights Reserved. 6

Service Level Agreements: examples

• Response time for trivial database queries should not exceed 2 sec.

• We want the same level of availability and response time that we had in the mainframe environment.

• The goal for Web services is 99% of availability and less than 1-sec response time for 90% of the HTTP requests for small documents.

Page 7: Ó 1998 Menascé & Almeida. All Rights Reserved.1 Part IV Capacity Planning Methodology

8 Menascé & Almeida. All Rights Reserved. 7

Adequate Capacity

Users

Mgmt

SLAs

SpecifiedTechnology& Standards

CostConstraints

AdequateCapacity

AdequateCapacity

e.g.: NT and T3

e.g.: response time < 2 sec.

e.g.: startup cost < 100K $

Page 8: Ó 1998 Menascé & Almeida. All Rights Reserved.1 Part IV Capacity Planning Methodology

8 Menascé & Almeida. All Rights Reserved. 8

ConfigurationPlan

InvestmentPlan

PersonnelPlan

Understanding the Environment

Workload Characterization

WorkloadModel

Validation and Calibration

Workload Forecasting

Performance PredictionCost PredictionValidModel

Cost Model

Developing a Cost Model

PerformanceModel

Cost/Performance Analysis

Methodology

Page 9: Ó 1998 Menascé & Almeida. All Rights Reserved.1 Part IV Capacity Planning Methodology

8 Menascé & Almeida. All Rights Reserved. 9

ConfigurationPlan

InvestmentPlan

PersonnelPlan

Understanding the Environment

Workload Characterization

WorkloadModel

Validation and Calibration

Workload Forecasting

Performance PredictionCost PredictionValidModel

Cost Model

Developing a Cost Model

PerformanceModel

Cost/Performance Analysis

Methodology

Page 10: Ó 1998 Menascé & Almeida. All Rights Reserved.1 Part IV Capacity Planning Methodology

8 Menascé & Almeida. All Rights Reserved. 10

Understanding the Environment

The goal is to learn what kind of

– hardware (clients and servers)– software (OS, middleware, and

applications)– network connectivity and protocols

are present in the environment.

Page 11: Ó 1998 Menascé & Almeida. All Rights Reserved.1 Part IV Capacity Planning Methodology

8 Menascé & Almeida. All Rights Reserved. 11

Understanding the Environment: example

FDDI ring100 Mbps

LAN 5

16 Mbps token ring

LAN 1

LAN 2

LAN 4

LAN 3

10 MbpsEthernet

10 MbpsEthernet

10 MbpsEthernet

Internet

120 NTclients

100 NTclients

80 Unixclients

100 NTclients

proxyserver

fileserver

fileserver

SQLserver

fileserver

Page 12: Ó 1998 Menascé & Almeida. All Rights Reserved.1 Part IV Capacity Planning Methodology

8 Menascé & Almeida. All Rights Reserved. 12

Elements in Understanding the Environment

Client platform Quantity and type

Server platform Quantity, type, configuration andfunctions

Middleware Type (e.g. TP monitors)

DBMS Type

Application Main types of applications, criticality,etc.

Networkconnectivity

Network diagrams with LANs, WANs,routers, servers, etc.

SLAs Existing SLAs per application

Procurementprocedures

Elements of the procurement process,expenditure limits, justificationprocedures for acquisitions.

Page 13: Ó 1998 Menascé & Almeida. All Rights Reserved.1 Part IV Capacity Planning Methodology

8 Menascé & Almeida. All Rights Reserved. 13

ConfigurationPlan

InvestmentPlan

PersonnelPlan

Understanding the Environment

Workload Characterization

WorkloadModel

Validation and Calibration

Workload Forecasting

Performance PredictionCost PredictionValidModel

Cost Model

Developing a Cost Model

PerformanceModel

Cost/Performance Analysis

Methodology

Page 14: Ó 1998 Menascé & Almeida. All Rights Reserved.1 Part IV Capacity Planning Methodology

8 Menascé & Almeida. All Rights Reserved. 14

Workload Characterization

Workload characterization is the process of precisely describing the system’s global workload in terms of its main components.

The basic components are then characterized by intensity and service demand parameters at each resource of the system.

Page 15: Ó 1998 Menascé & Almeida. All Rights Reserved.1 Part IV Capacity Planning Methodology

8 Menascé & Almeida. All Rights Reserved. 15

Workload Characterization Process

Wkl component # 1(e.g., C/S transactions)

Global Workload

Wkl component # n(e.g., Web doc. Requests)

Basic component 1.1(e.g., personnel transactions)

Basic Component 1.2 (e.g., sales transactions)

Basic component n.k(e.g. video requests)

Basic component n.1(e.g., small HTML docs.)

. . .

Page 16: Ó 1998 Menascé & Almeida. All Rights Reserved.1 Part IV Capacity Planning Methodology

8 Menascé & Almeida. All Rights Reserved. 16

Workload Description: exampleBasic Components and Parameters Type

Sales transaction . Number of transactions submitted per client . Number of clients . Total number of I/Os to the Sales DB . CPU utilization at the DB server . Avg. messages sent/received by the DB server

--WIWISDSDSD

Web-based training . Avg. number of training sessions per day . Avg size of image files retrieved . Avg. size of http documents retrieved . Avg number of image files retrieved/session . Avg. number of documents retrieved/session . Avg. CPU utilization of the httpd server

--WISDSDSDSDSD

SD = service demandWI = workload intensity

Page 17: Ó 1998 Menascé & Almeida. All Rights Reserved.1 Part IV Capacity Planning Methodology

8 Menascé & Almeida. All Rights Reserved. 17

Data Collection Issues

• How to determine the parameter values for each basic component?

Data Collection Facilities

Use benchmark, industry practice,

and ROTs only

Use benchmark,industry practice, ROT,

and measurements

Use measurements only

None Some Detailed

Page 18: Ó 1998 Menascé & Almeida. All Rights Reserved.1 Part IV Capacity Planning Methodology

8 Menascé & Almeida. All Rights Reserved. 18

Data Collection Issues: example

• The server demand at the server for a given application was 10 msec obtained in a controlled environment with a server with a SPECint rating of 3.11.

• What would be the service demand if the server used in the actual system were faster and had a SPECint rating of 10.4?

ActualServiceDemand = MeasuredServiceDemand x ScalingFactor

ScalingFactor = ControlledResourceThroughput / ActualResourceThroughput

ActualServiceDemand = 10 * (3.11/10.4) = 3.0 msec.

Page 19: Ó 1998 Menascé & Almeida. All Rights Reserved.1 Part IV Capacity Planning Methodology

8 Menascé & Almeida. All Rights Reserved. 19

ConfigurationPlan

InvestmentPlan

PersonnelPlan

Understanding the Environment

Workload Characterization

WorkloadModel

Validation and Calibration

Workload Forecasting

Performance PredictionCost PredictionValidModel

Cost Model

Developing a Cost Model

PerformanceModel

Cost/Performance Analysis

Methodology

Page 20: Ó 1998 Menascé & Almeida. All Rights Reserved.1 Part IV Capacity Planning Methodology

8 Menascé & Almeida. All Rights Reserved. 20

Validating Workload Models

ActualWorkload

SyntheticWorkload

SystemSystem

Acceptable?Model

Calibration

Yes

No

Measured RT, Thput., etc

Measured RT,Thput., etc.

Page 21: Ó 1998 Menascé & Almeida. All Rights Reserved.1 Part IV Capacity Planning Methodology

8 Menascé & Almeida. All Rights Reserved. 21

ConfigurationPlan

InvestmentPlan

PersonnelPlan

Understanding the Environment

Workload Characterization

WorkloadModel

Validation and Calibration

Workload Forecasting

Performance PredictionCost PredictionValidModel

Cost Model

Developing a Cost Model

PerformanceModel

Cost/Performance Analysis

Methodology

Page 22: Ó 1998 Menascé & Almeida. All Rights Reserved.1 Part IV Capacity Planning Methodology

8 Menascé & Almeida. All Rights Reserved. 22

Workload Forecasting

• How will the number of e-mail messages handled per day by the server vary over the next 6 months?

• How will the number of hits to the corporate intranet’s Web server vary over time?

Page 23: Ó 1998 Menascé & Almeida. All Rights Reserved.1 Part IV Capacity Planning Methodology

8 Menascé & Almeida. All Rights Reserved. 23

Workload Forecasting (cont’d)

• Answering these questions involves:

– evaluating the organization’s workload trends;– analyzing historical usage data;– analyzing business or strategic plans;– mapping plans into business processes (e.g.,

paperwork reduction will add 50% more e-mail).

• Workload forecasting techniques: moving averages, exponential smoothing, etc.

Page 24: Ó 1998 Menascé & Almeida. All Rights Reserved.1 Part IV Capacity Planning Methodology

8 Menascé & Almeida. All Rights Reserved. 24

ConfigurationPlan

InvestmentPlan

PersonnelPlan

Understanding the Environment

Workload Characterization

WorkloadModel

Validation and Calibration

Workload Forecasting

Performance PredictionCost PredictionValidModel

Cost Model

Developing a Cost Model

PerformanceModel

Cost/Performance Analysis

Methodology

Page 25: Ó 1998 Menascé & Almeida. All Rights Reserved.1 Part IV Capacity Planning Methodology

8 Menascé & Almeida. All Rights Reserved. 25

Performance Modeling and Prediction

• How are performance measures estimated?

System and Workload

Description

Performancemetrics: responsetime, throughput,

utilization, etc

Page 26: Ó 1998 Menascé & Almeida. All Rights Reserved.1 Part IV Capacity Planning Methodology

8 Menascé & Almeida. All Rights Reserved. 26

Estimating performance measures

QueuingNetwork Model

System Description

PerformanceMeasures

• Response time• Throughput• Utilization

• Queue length

• System parameters

• Resources parameters

• Workload parameters- service demands- workload intensity

Page 27: Ó 1998 Menascé & Almeida. All Rights Reserved.1 Part IV Capacity Planning Methodology

8 Menascé & Almeida. All Rights Reserved. 27

ConfigurationPlan

InvestmentPlan

PersonnelPlan

Understanding the Environment

Workload Characterization

WorkloadModel

Validation and Calibration

Workload Forecasting

Performance PredictionCost PredictionValidModel

Cost Model

Developing a Cost Model

PerformanceModel

Cost/Performance Analysis

Methodology

Page 28: Ó 1998 Menascé & Almeida. All Rights Reserved.1 Part IV Capacity Planning Methodology

8 Menascé & Almeida. All Rights Reserved. 28

Validating Performance Models

RealSystem

PerformanceModel

CalculationsMeasurements

Acceptable?Model

Calibration

Yes (*)

No

Measured RT, Thput., etc

Calculated RT,Thput., etc.

(*) Accuracy from 10 to30% is acceptable in CP

Page 29: Ó 1998 Menascé & Almeida. All Rights Reserved.1 Part IV Capacity Planning Methodology

8 Menascé & Almeida. All Rights Reserved. 29

ConfigurationPlan

InvestmentPlan

PersonnelPlan

Understanding the Environment

Workload Characterization

WorkloadModel

Validation and Calibration

Workload Forecasting

Performance PredictionCost PredictionValidModel

Cost Model

Developing a Cost Model

PerformanceModel

Cost/Performance Analysis

Methodology

Page 30: Ó 1998 Menascé & Almeida. All Rights Reserved.1 Part IV Capacity Planning Methodology

8 Menascé & Almeida. All Rights Reserved. 30

Cost Model

• A capacity planning methodology requires the identification of major sources of cost as well as the determination of how cost will vary with system size and architecture.

• Startup costs

• Operating costs

Page 31: Ó 1998 Menascé & Almeida. All Rights Reserved.1 Part IV Capacity Planning Methodology

8 Menascé & Almeida. All Rights Reserved. 31

Cost Model: categories• Hardware costs: client and server machines, disks,

routers, bridges, cabling, maintenance, etc.

• Software costs: operating systems, middleware, DBMS, mail processing software, office automation, applications, etc.

• Telecommunication costs: WAN services, ISP, etc.

• Support costs: salaries and benefits of all system administrators, help desk support, network people, etc

Page 32: Ó 1998 Menascé & Almeida. All Rights Reserved.1 Part IV Capacity Planning Methodology

8 Menascé & Almeida. All Rights Reserved. 32

Part IV: Summary

� Concept of adequate capacity� Service Level Agreement (SLA)� Framework of a methodology for capacity

planning:� workload characterization� workload forecasting� performance modeling and prediction� model validation� cost model