Ask HN: Load testing a site
There are tools out there to load test your site. Say I want to know how my site will behave with 100,000 concurrent users for a certain period of time.
Do you recommend any services ? I have come acros flood.io, loadimpact.com etc on google. But no idea about any of them.
Also, a very noob question but how do these services work ? I mean if I do the testing, does it stress my actual production servers ? If yes, then my site could go down while testing right ? or do I make a copy of everything for testing ?
(
5 comments
| 3 points
| on HN
)
Those services do just that: send requests to a specified URL. Some can play whole scenarios (logging in, setting cookies etc). The power is in the reports they create and the convenience of an easy (repeatable, shareable) setup. You may or may not need to simulate users from across the globe or users with slow connections or certain browsers.
If possible have a second setup of your website for testing. This makes sure you don't pollute your production logfiles or affect real users.
If you want to do distributed testing you can rent a couple of virtual machines from Amazon, etc, and run tsung to test from a cluster:
http://brightbox.com/blog/2014/11/07/distributed-load-testin...
And yes, it will stress whatever site you're testing. In most cases, you'll want to setup another site (make it an exact replica of your main site) and direct your load tests to hit that alternate site instead.
Also, I'm not sure what are you doing but 100k simultaneous user seems like a lot, only way I can think about testing that is to get a few AWS instances and running ab or meter from them...