SORMAS-Project icon indicating copy to clipboard operation
SORMAS-Project copied to clipboard

APIs are not stable when 10 users are making the same request in parallel

Open rdutu-vg opened this issue 3 years ago • 2 comments

During fixing performance tests, discovered that if we use more than 1-2 users the tests are not stable. Added 10 users in the performance tests to make the same requests in the same time, at 1s distance between calls, and the application was returning 503 or 502 instead of 200 for some users.

Testing environment : test-performance

Steps to reproduce:

  1. Setup jmeter
  2. Open performance tests
  3. Change users thread to 10 instead of 1 and execute tests

Run with 1 user: 1 user

Run with 10 users: 10 users

Tested it multiple times, on local and jenkins, and the results are the same. The main endpoints covered by performance tests are GET uuids, GET uuid, Post entities.

Updates from new automated api measurements tests:

Run with 1 user: 1 user for api checks

Run with 8 users: 8 users results And VM load: 8 users load

rdutu-vg avatar Apr 22 '22 15:04 rdutu-vg

I think this is kind of a DDOS approach. I would rewrite this an investigation task rather than a bug.

StefanKock avatar Apr 28 '22 08:04 StefanKock

We need to check the firewall logs of test-performance on whether this is a DOS attack.

MartinWahnschaffe avatar Aug 10 '22 13:08 MartinWahnschaffe