Specific configurations

Specific configurations

by kaushik varma -
Number of replies: 11
Sir, I am novice in this, and not able to find the specific configurations. Can you please guide us in this to correct forum ?
Average of ratings: -
In reply to kaushik varma

Re: Quiz / Server Crash

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Well they are visible in my previous post, in blue - at least I can see them on my browser. Here is a screen-shot:

P.S. If you are believe that this is a performance issue, you could ask the moderator to move the discussion to the Hardware and performance forum.
In reply to kaushik varma

Re: Quiz / Server Crash

by Marcus Green -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
You have not said what you mean by 'crashing', what happens and when. Does it take a minute to show the first question, 3 minutes. Do the questions show quickly but saving is slow. What actually happens?
In reply to Marcus Green

Re: Quiz / Server Crash

by kaushik varma -
let me explain you in clear i have conducted the exam for 200 students with the help of delay plugin which delays the users to attempt the quiz all at the same time to reduce the load on server, but all of a sudden our students has been faced the issue while writting the exam with in 15-20 mins gap the server has got loading issues we not able to acces the server (site) and westopped the exam and we restarted the apache and made our site up.
In reply to kaushik varma

Re: Quiz / Server Crash

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
I've no idea what the delay plug-in is. Depending on the age group the delay could be counter productive. They might sit on the F5 key, you know? ;)

I claim, your server, hexcore/12 thread/128 GB RAM, should be able to handle 200 simultaneous quiz users without going irresponsive. So, please follow the information my original links point to and come back with what you have done, why and what the effect was.

N.B. This is indeed a topic for the Hardware and performance forum.
In reply to kaushik varma

Re: Quiz / Server Crash

by Marcus Green -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
'with in 15-20 mins gap the server has got loading issues we not able to acces the server (site)'
Are you saying that the quiz works for students for multiple minutes and then after around 15 to 20 minutes they have problems. What do the students see when the problem occurs, any error messages?
In reply to Marcus Green

Re: Quiz / Server Crash

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Hi Kaushik

One more reason why one shouldn't hijack threads. With "hexcore/12 thread/128 GB RAM" I was referring to Subrahmanyam's server https://moodle.org/mod/forum/discuss.php?d=406930, where as you just walked in to the discussion out of nowhere.

@Moderators, please split the sub-thread starting at https://moodle.org/mod/forum/discuss.php?d=406930#p1643181. Don't know what a proper subject line is, "Specific configurations"?
In reply to Marcus Green

Re: Quiz / Server Crash

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
@Marcus, good point about the 15-20 min gaps.

Hi Kaushisk
I wonder whether your problem has anything to do with the quiz, because a quizz don't have a cycles like that. In a synchronous quiz paper almost always the server gets a huge peak load right at the beginning, during the initial seconds. As you may well know, the students are impatient to see the exam. The next peak is at the closing time. Usually spaced out better - not every candidate wait for the last second. In between turning pages (if the quiz is multi-page) sends requests to the server, but they are more or less evenly spaced, because there is no coordination amoung the candidates. So your heavy load in cycles of 15-20 min is highly suspicious. What is your crontab like? Read its output.

To talk of Hardware and performance, you need to start by telling us what your hardware is. Take https://moodle.org/mod/forum/discuss.php?d=406930 as an example. The next thing is software. Tell us about the operating system, web server, database server, how did you install (tutorial), what adjustments/tuning you have done. Ultimately you need load graphs of your server. Munin is the common tool in this forum.

That said, I read that you have other problems with the quiz: https://moodle.org/mod/forum/discuss.php?d=407290. Sure, you have to solve such problems before moving on to performance.

Then this https://moodle.org/mod/forum/discuss.php?d=407447 - from yesterday. You can report back here once those problems have been sorted out.
In reply to Visvanath Ratnaweera

Re: Quiz / Server Crash

by kaushik varma -
Hello sir even my server details also same, that is the reason i just joined in that discussion.

This was the plugin i'm using to conduct the quiz exams https://moodle.org/plugins/quizaccess_delayed


Server Type : Dedicated
Moodle Version : 3.8
Server : Dual Intel Xeon X5650 2.66GHz HexaCore w/HT
Operating System : CentOS 7 x64
RAM : 128 GB
Hard Disk : 1,000 GB SSD
Port Speed & Bandwidth : 10,000 Mbit - 10GigE with 100 TB
Data Base : Maria DB 10.2
In reply to kaushik varma

Re: Quiz / Server Crash

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
You both are looking after the same machine? I had no way of knowing it!

As I wrote earlier the machine is more than enough for 200 simultaneous quiz candidates. So follow up the recommendations give in the header of this forum. And also this conversation, the 15-20 min gaps, points in the same direction. Look of other places, like crontab of Moodle, or crontabs in that machine in general.

But before doing that get your other two problems solved.
In reply to kaushik varma

Re: Quiz / Server Crash

by Usman Asar -
Picture of Plugin developers Picture of Testers

Now that is a decade old Westmere architecture, none the less would still have easily handled 200+ concurrent, its the DB hoping between the NUMA nodes, the problems is local RAM to cores are faster, but accessing RAM handing to other cores is much much slower, so if for example first set of RAM (allocated to First CPU) is allocated to DB and O/S, and if O/S needs to do something - it swaps the MariaDB <--- this is where trouble begins.

If you can turn it completely off in BIOS, do that, else see if your BIOS can interleave the memory allocation.

 in my.cnf add settings

innodb_numa_interleave=1

additionally, add another SSD (256GB would be enough) and put database there alone

how much memory you've allocated to DB?

using OpCache?