New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Benchmarking Web Server
Let's say I have 2 vps (A and .
I want to simulate a 10K visitor login at the same time. So, basically VPS B will send 10K request at the same time to VPS A.
The request would be something like https://vpsa.com/login.php?username=1&password=1
Is this possible ? and what tools should i use for this purpose ?
Disclaimer : This is a legitimate question, in case anyone have fancy idea to accuse me asking for how to DDOS
Comments
You can first try Loader.io. 10k clients/test for free. I'm not sure if that is distributed over a minute, but should be easy to setup.
https://linux.die.net/man/1/siege
This is good, but is there a self hosted solution similar to this service ?
e.g. is it possible to spawn 10K of Curl Process and fire them at the same time ?
There is Siege in Linux + Paessler Web Stress (Windows Gui).
https://www.paessler.com/tools/webstress
It's pretty useful.
What about apache bench?
How you handle the login would depend on the application on VPS A, but you could perhaps use the URL the login form is posted to and send POST requests with the relevant information.
https://github.com/wg/wrk
The company I am working on using Jmeter, implement distributed remote testing over multiple servers. However, I don't know the tech detail.
I was just about to run some tests on various caching solutions on a freshly re-installed ultravps via the private nic.
Will check out siege and wrk.
you mean AB ? sometimes it doesn't finish the bench. Throwing some kind of error (forget what it's)
Not had that myself, but I've not used it much tbf.
You probably want to use POST, not GET requests. Here's an example for wrk (installation instructions):
Save it as "login.lua" and then run it with
Though it won't achieve exactly "10000 requests". It will try to do as much requests as possible (in the 30s span) and will show you the average number of requests per second.
This test won't answer the question "Can my VPS handle 10000 login requests?" It's "How much login requests per second it can handle?"
I was using AB, and it can't complete the test. it said connection reset by peer. What does it mean ?
Jmeter: https://jmeter.apache.org/