How do you do load testing and capacity planning for web sites?
The short answer is: Nobody can answer this question except you.
The long answer is that benchmarking your specific workload is something that you need to undertake yourself, because it’s a bit like asking “How long is a piece of string?”.
Can you help me with my capacity planning?
Benchmark your code on hardware similar to what you’ll be using in production, identify any bottlenecks, then determine how much of a workload your current hardware can handle, and/or how much hardware horsepower you need to handle your target workload
Source: https://serverfault.com/questions/384686/can-you-help-me-with-my-capacity-planning
Glossary #
- Latency
- Throughput
- Percentiles
Testing #
Tools #
Remediation #
Almost always it’s just these 2 main options:
- Scale up:
- Bigger server
- Moar RAM
- Faster disks
- Scale out:
- Get moar servers
- See: Load Balancing
Resources #
https://serverfault.com/questions/350454/how-do-you-do-load-testing-and-capacity-planning-for-web-sites https://serverfault.com/questions/384686/can-you-help-me-with-my-capacity-planning https://serverfault.com/questions/350458/how-do-you-do-load-testing-and-capacity-planning-for-databases https://serverfault.com/questions/2107/tools-for-load-testing-http-servers https://stackoverflow.com/questions/1754427/jmeter-alternative
Tutorials #
https://www.digitalocean.com/community/tutorials/an-introduction-to-load-testing