Need help for loadtest 200 concurrent user in login page

Need help for loadtest 200 concurrent user in login page

by Tung Nguyen -
Number of replies: 2
Hi everyone, 

I've just built a system using Moodle. The requirement is that the login function should not take more than 3 seconds for 90% of the time with 200 concurrent users.

For the JMeter configuration, I've set up the following:

  • Number of threads (users): 200
  • Ramp-up period: 1 second

However, the results consistently show a login time of around 8-10 seconds


 

Here is the benchmark scores: 


My system specs are quite good:

Moodle runs on 2 servers:

  • CPU: 4 vCPUs
  • RAM: 16GB
  • SSD

The database instance also has 4 vCPUs and 16GB of RAM.

I've tried using Apache2 with upgraded workers. Then, I switched to NginX and updated PHP-FPM to 25 workers, but the issue remains the same.

Additionally, I'm using PHP APCu and PHP Opcache.

So, I'm here, looking for some help from you guys.

Thanks so much


Average of ratings: -
In reply to Tung Nguyen

Re: Need help for loadtest 200 concurrent user in login page

by Ken Task -
Picture of Particularly helpful Moodlers
Suggest installing MySQLtuner on DB server ... compat with MySQL and MariaDB.   Run it with super user creds for DB server.
Run from both locations ... on DB server and on Web server.

If you've not tweaked DB server settings max connections is 151 by default.

Tuner will show that and it might find other items to tweak as well.

'SoS', Ken
In reply to Tung Nguyen

Re: Need help for loadtest 200 concurrent user in login page

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
There is something seriously wrong. Test 4, Writing file performance, taking 17.4 sec whereas the critical limit is 1.25 sec is a disaster. I can't remember any production server having that Benchmark score over 2000.  A small VM should be around 100 (smaller the better).

The problem is with the disk storage, it can't be SSD, even a micro-SD card performs better. I've once got a score of 1025 with a Raspberry Pi Zero W, which is meant as an embedded controller.

You must contact the provider, with numbers from a disk benchmark he knows. There are simply too many in the Linux space, perhaps bonnie++ is the most well known.