M
M
Maxim Ivanov2017-06-05 09:54:56
stress testing
Maxim Ivanov, 2017-06-05 09:54:56

How to do load testing with ab the right way?

Now the task is to test the web service for the load, there was little time, delivery is coming soon, and this task was neglected.
I know that there are a lot of online services, but they test the success of the return of the page.
Well, that is, for 10,000 users with simultaneous requests, there were quite a few failed requests (we tested it first on siege).
But the fact is that you need to test the entire api service for the load (after all, other problems may pop up there, writing the cache at the wrong time, reading something to disk, the database will not be available if the cache is old, etc.).
Api returns json objects, fields with id, which are later needed for other requests, and here all sorts of sieges will no longer help, because they do not know how to work with response, is it worth taking ab for this?
At first I thought to use selenium for load testing, but the ui changes dynamically, which means it is difficult to build such a use case for load testing if used for testing functionality.
What can you recommend?
Can this be done in NodeJS?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Burov, 2017-06-05
@BuriK666

wrk can LUA
https://github.com/wg/wrk/blob/master/SCRIPTING

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question