How to simulate a huge amount of simultaneous requests to a web-server? How to simulate a huge amount of simultaneous requests to a web-server? nginx nginx

How to simulate a huge amount of simultaneous requests to a web-server?


You could give siege a try as well.

The article you've linked looks good to me.

Generating 60,000 rq/s and answering them at the same time will be a problem because you most definitely run out of resources. It would be best to have some other computers (maybe on the same network) to generate the requests and let your server only handle answering those.

Here's an example siege configuration for your desired 60,000 rq/s that will hit your server for one minute.

# ~/.siegerclogfile         = $(HOME)/siege.logverbose         = truecsv             = truelogging         = trueprotocol        = HTTP/1.1chunked         = truecache           = falseaccept-encoding = gzipbenchmark       = trueconcurrent      = 60000connection      = closedelay           = 1internet        = falseshow-logfile    = truetime            = 1Mzero-data-ok    = false

If you don't have the infrastructure to generate the load, rent it. A very great service is Blitz.IO (I'm not affiliated with them). They have an easy and intuitive interface and (most important) they can generate nearly any traffic for you.