SORMAS-Project
SORMAS-Project copied to clipboard
APIs are not stable when 10 users are making the same request in parallel
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:
- Setup jmeter
- Open performance tests
- Change users thread to 10 instead of 1 and execute tests
Run with 1 user:

Run with 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:
Run with 8 users:
And VM load:
I think this is kind of a DDOS approach. I would rewrite this an investigation task rather than a bug.
We need to check the firewall logs of test-performance on whether this is a DOS attack.