Apache's AB tool allows us to test our server to see how many pages per second a server can handle. The results are obviously is going to vary based on the specs of the server hardware and software configuration. My question is: how do you know when your server's results are too low/can be improved? Or are acceptable/optimized?
|
And if you happen to benchmark a completely slow-as-molasses site, you WILL know there's room for optimization. I once benchmarked a seemingly simple site running with an 8-core server, 16 GB RAM and all that jazz. ab, siege and JMeter all gave me five requests per sec! At that point I knew something was very, very badly wrong. Ironically enough, it was totally misconfigured cache-plugin accessing memcached that was wrong. After fixing that the site was around 100 times faster. :-) |
|||||
|
|
Benchmarking is such a complicated topic... My points.. use a different amount of concurrency in your tests 1-2-8-16-64-256-512-1024-2048 And push lots of requests.. until You start seeing errors.. returned by AB... Then you starting to find your limits of your application + webserver.. Keep in mind also your RTT and Delay.. Remember to run your tests for a little while to get a good average.. I should also note that. You can easily use all the CPU on the server your testing with.. than the server your actually testing.. So keep an eye on cpu and memory on your testing machine.. Hope that Helps :D |
||||
|
|
|
In my mind it's always about volume of users and their expected/anticipated experience. Your use case will vary but I'm sure if Google started responding at the speed of say Expedia people would be disappointed. So ultimately it's all about how does your system react when faced with a certain volume of traffic - and we can't tell you that data, you need to know yourself. |
|||
|
|