Moodle Database Error Too Many Requests

Moodle Database Error Too Many Requests

by Markolin Nicolas -
Number of replies: 4

We conducted a test process with 450 synchronous participants. We encountered database error when everyone tried to login at the same time. At the same time, we get the same error when even a person refreshes the page for a long time. There is no problem with our connection. It only happens when the number of requests increases.

What solution do I need to find?


Average of ratings: -
In reply to Markolin Nicolas

Re: Moodle Database Error Too Many Requests

by Ken Task -
Picture of Particularly helpful Moodlers

If linux OS, suggest installing MySQLTuner ... a perl script ... and run it with superuser creds for the DB server.  It will look at config for MySQL/MariaDB and stats/usage of DB server.   Makes recommendations for tweaking config of DB server.  Default for max_allowed_connections is 151 ... 

'SoS', Ken

In reply to Markolin Nicolas

Re: Moodle Database Error Too Many Requests

by James W -
Recently, one of our customers approached us with the below moodle error:
Error: Database connection failed
Our Support Engineers started troubleshooting this error by checking the database in the account.

We checked the MySQL availability using the command :
$telnet database_host_name 3306
As a result, we got to know that MySQL is up and working well.

We then checked the database settings which is set in the configuration file config.php using the commands
cd /var/www/html/moodle
vi config.php
We could find that the database set in the file was having a spelling mistake in it. So we set it with the right one.

Regards,
John
In reply to James W

Re: Moodle Database Error Too Many Requests

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
I'm not sure what this has to do with the OP's issue (in your case it wouldn't have worked at all)