24
Capacity planning for web sites

Capacity planning for web sites

  • Upload
    jake

  • View
    37

  • Download
    0

Embed Size (px)

DESCRIPTION

Capacity planning for web sites. Promoting a web site. Thoughts on increasing web site traffic but… Two possible scenarios…. Scenario 1: sudden traffic increase. Web site causes its own surge – new marketing New link to another popular site Site mentioned by popular index – slashdot effect - PowerPoint PPT Presentation

Citation preview

Page 1: Capacity planning for web sites

Capacity planning for web sites

Page 2: Capacity planning for web sites

Promoting a web site

• Thoughts on increasing web site traffic but…

• Two possible scenarios…

Page 3: Capacity planning for web sites

Scenario 1: sudden traffic increase

• Web site causes its own surge – new marketing

• New link to another popular site• Site mentioned by popular index – slashdot

effect• Site hosts a web application used by other

applications

Page 4: Capacity planning for web sites
Page 5: Capacity planning for web sites
Page 6: Capacity planning for web sites

Scenario 2: cumulative increase

• Occurs as site becomes more widely known• Introduction of new technologies e.g. XML

increases load• Network effect – increase in connections to

a site from other sites

Page 7: Capacity planning for web sites
Page 8: Capacity planning for web sites

ResultWeb server inundated with requests

Resulting processes cause memory overload Web server

slows then crashes

Page 9: Capacity planning for web sites

Performance issues

• Speed is first problem• Components of web systems –possible

bottlenecks• Content – one web page = many files• Increased web services- increased no of hits• Web traffic – randomness of accesses• User’s perception of performance

Page 10: Capacity planning for web sites

Solution – capacity planning

• Estimates space, hardware, software, infrastructure needed over future period

• Takes into account projected growth in site usage

• “Just in time” – add the capacity just before it is needed – no unused resources

Page 11: Capacity planning for web sites

Answers the questions

Future needs? “What if..” scenarios

e.g. is bandwidth adequate?e.g. can system handle load spikes?

Will performance be scalable?

What monitoring tools are available?

How can more capacity be provided?

Page 12: Capacity planning for web sites

Why is capacity planning important?

• Ensure positive user experience• Maximise productivity• Avoid financial surprises• Maintain stability and availability• Arrange for emergency capacity• Assess performance of new

applications/architecturesTittel (2002) “Why plan web capacity?”

Page 13: Capacity planning for web sites

“Because capacity problems can’t be solved instantaneously…”

(Menasce & Almeida (2001))

Page 14: Capacity planning for web sites

Planning capacity

• Some definitions• Clarifying requirements• Planning activities

– Monitoring– Predicting– Estimating

• Action and review

Page 16: Capacity planning for web sites

Some definitions

• Relating to server– Service level– Service time– Waiting time

• Relating to network– Latency– Throughput– Bandwidth– Utilization– Quality of service•Relating to web site

–Hits per second–Errors per second–Time-out rate

Page 17: Capacity planning for web sites

Clarifying requirements

• What is the purpose of the site? How available should it be?• How tolerant are the users?• Have you analysed log files?• How many HTTP operations per unit time expected?• What is the average transfer size going to be?• Will you provide any streaming media?• Will the web server spawn additional processes?• What other processes need to be run on the web server or over the

network?• What sort of scalability do you need?• What is your budget? Can you force suppliers to compete?• Future traffic and usage growth – spare capacity levels?

Killelea (2002)

Page 18: Capacity planning for web sites

Planning activities

Understand environment

Workload characteristics

Performance prediction

Cost/performance analysis

Workload prediction

Monitor performance

Cost model

Workload model

Performance model

PlansAdapted from Menasce & Almeida (2001)

Page 19: Capacity planning for web sites

Workload prediction

• Differentiate between types of workload• Characteristics, e.g.

– “Burstyness”– Large transfers

• Analysis– Capacity trending– Analytical modelling

Page 20: Capacity planning for web sites

Measuring and predicting performance

• Which are the critical web site IT resources• Average & “under-load” response times• Web server performance benchmarks and

monitoring tools• Scenario data sets• Load testing and modelling

Page 21: Capacity planning for web sites

Plan for…

• How much bandwidth?– Hits/second x average size of hit in bits = bits/second

• How fast a server?– Load balancing– Load clustering– Mirror servers

• How much memory?– Memory-using components of server:– Operating system, web server configuration, web content, server-

side programs

Page 22: Capacity planning for web sites

And…

• Establish upgrade process for resources• Scalability – capacity interdependencies

between infrastructure components• Monitor actual traffic growth and resource

usage• Revise plan when any component changes

(kit, traffic or market)

Page 23: Capacity planning for web sites

Ways of providing capacity/improving performance

• Reconfigure network• Rewrite critical applications• Reduce content load• Proxy, caching and mirror servers• Test using your performance model

Page 24: Capacity planning for web sites

What influence can you have as a web administrator?

– Can’t directly influence Internet– May not be able to influence resource decisions

• Write down capacity requirement• Monitor performance, keep records• Alter server configuration – performance

and content• Plan for future scalability