1 / 24

Capacity planning for web sites

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

jake
Télécharger la présentation

Capacity planning for web sites

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. Capacity planning for web sites

  2. Promoting a web site • Thoughts on increasing web site traffic but… • Two possible scenarios…

  3. 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

  4. 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

  5. Result Web server inundated with requests Resulting processes cause memory overload Web server slows then crashes

  6. 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

  7. 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

  8. Answers the questions Future needs? “What if..” scenarios Will performance be scalable? e.g. is bandwidth adequate? e.g. can system handle load spikes? What monitoring tools are available? How can more capacity be provided?

  9. 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/architectures Tittel (2002) “Why plan web capacity?”

  10. “Because capacity problems can’t be solved instantaneously…” (Menasce & Almeida (2001))

  11. Planning capacity • Some definitions • Clarifying requirements • Planning activities • Monitoring • Predicting • Estimating • Action and review

  12. www.simac.be/solutions/ management/3.htm, accessed 27.4.05

  13. Relating to server Service level Service time Waiting time Relating to network Latency Throughput Bandwidth Utilization Quality of service Some definitions • Relating to web site • Hits per second • Errors per second • Time-out rate

  14. 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)

  15. Planning activities Understand environment Workload characteristics Workload model Cost model Workload prediction Monitor performance Performance model Performance prediction Cost/performance analysis Adapted from Menasce & Almeida (2001) Plans

  16. Workload prediction • Differentiate between types of workload • Characteristics, e.g. • “Burstyness” • Large transfers • Analysis • Capacity trending • Analytical modelling

  17. 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

  18. 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

  19. 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)

  20. Ways of providing capacity/improving performance • Reconfigure network • Rewrite critical applications • Reduce content load • Proxy, caching and mirror servers • Test using your performance model

  21. 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

More Related