Concurrent Users

Concurrent Users

от Aditya Dubay -
Number of replies: 9

Hi,

How many concurrent users Moodle 4.5 can handle?

We need to take Olympiad with 1.5 million users.

These users belongs to different Courses/Quizzes with different time zones. 

Is it possible in moodle?

If yes then what would be server configurations?

In reply to Aditya Dubay

Re: Concurrent Users

от Aditya Dubay -
In reply to Aditya Dubay

Re: Concurrent Users

от James Steerpike -
Снимка на Particularly helpful Moodlers
My uninformed guess is start with approximately 300 high-end web servers with 8-core processors and 64GB RAM each. Already over a million and that is just a start. Then you need maybe a 100 database servers and a few more for load balance. Then add the technical staff required to set it up and keep it running.

But what do I know? Do you think paid professional advice might be a good idea with such a major project?
In reply to Aditya Dubay

Re: Concurrent Users

от Ken Task -
Снимка на Particularly helpful Moodlers

Highly recommend installation and running of MySQLTuner.pl on both the web service front end and the dedicated DB backend - if that's what you have.   You will get different recommendations as networking is involved.

JMeter testing test config but doesn't make recommendations to changes in config. MySQLTuner.pl will.


Performance Metrics 
[--] Physical Memory
[--] Max MySQL memory
[--] Performance_schema Max memory usage:
Maximum reached memory usage: xM (% of installed RAM)
Maximum possible memory usage: xG (x% of installed RAM)
Overall possible memory usage with other process is compatible with memory available
Slow queries: x% (x/xM)
Highest usage of available connections: x% (x/151)
Aborted connections: x% (x/x)

and also in InnoDB Metrics 
InnoDB buffer pool / data size: xM/G / xM/G
InnoDB buffer pool instances: x

At the bottom of the MySQLTuner run:
Recommendations which you may not want to apply.

The other quickie:
top on the DB server.

'SoS', Ken

In reply to Aditya Dubay

Re: Concurrent Users

от Dan Marsden -
Снимка на Core developers Снимка на Particularly helpful Moodlers Снимка на Peer reviewers Снимка на Plugin developers Снимка на Plugins guardians Снимка на Testers Снимка на Translators
yes it's possible in Moodle.... but.... if you are hosting your own instance of Moodle and you do not have experience setting up infrastructure to support this number of users it will be likely a steep learning curve for you.

The word "Concurrent" means many different things and getting this metric wrong can either cost you a lot of $$ or can be the reason your site goes down.

Best thing to do is read some of the existing posts in the hardware and performance forum to start becoming informed but ideally when you are talking about large concurrency requirements you should really talk to a Moodle Partner who can help you design (and performance test) the hardware configuration to meet your needs.
In reply to Aditya Dubay

Re: Concurrent Users

от Visvanath Ratnaweera -
Снимка на Particularly helpful Moodlers Снимка на Translators

Though https://stats.moodle.org/ shows two dozens of sites over 1 million users, I don't think any one them means _concurrent_ users. So yours will set a Moodle record!

Still I have difficulties in imagining how to gather 1.5 million to participate in a competition. That would be more then one in a thousand of the most populous country in the world! And in a narrow subject, an "Olympiad"? The usual on-line Olympiad is a programming competition. A country of 1.5 aspiring programmers is IMHO way in to the future.

Either way, you might want to request the moderator to move this discussion to the Hardware and performance forum and in the mean time study the similar enquiries there and read its documentation, Performance and Performance FAQ.

Edit: I saw that you've brought it up already: Server Configurations required . Those days, June 2024, there were only 110,000 users. You have more than ten times of that today. That is a steep climb. So aim for 10 million, the numbers will pass that mark by the time this operation is in place. голяма усмивка

In reply to Aditya Dubay

Concurrent Users

от Eduardo Kraus -
Снимка на Particularly helpful Moodlers Снимка на Plugin developers Снимка на Testers

Hello, Aditya!

Moodle is a robust platform, but supporting 1.5 million users distributed across different time zones requires careful planning.

First, it is essential to understand that Moodle does not have a fixed limit for concurrent users. Everything depends on server configuration, user behavior, and system optimization. I wrote something in this post that might help you! In it, I explain that the frequency of user navigation directly affects server load. For example, if users consume long videos and extensive texts, navigation will be more spaced out, reducing the impact on the server. But if the course requires many rapid clicks between pages, the load on the server and database will be higher. This behavior directly influences performance and should be considered when conducting load tests.

Another essential point is the use of a CDN (Content Delivery Network), which can significantly ease the load on the main server. An interesting case is Sill from ToDraw, who uses a server with only 2 cores and can support 50 concurrent users in training sessions, precisely because all heavy content (such as videos and images) is delivered via CDN. Imagine how this can make a difference in your infrastructure!

To reach such a high number of concurrent accesses, you will need a distributed architecture with load balancing, separate database servers, efficient caching like Redis, and database optimization.

Eduardo Kraus
Innovation and new products 🚀

In reply to Aditya Dubay

Re: Concurrent Users

от Howard Miller -
Снимка на Core developers Снимка на Documentation writers Снимка на Particularly helpful Moodlers Снимка на Peer reviewers Снимка на Plugin developers
Firstly, I am moving this to Hardware and performance.

Secondly, I just don't believe you. I am struggling to envision 1.5 million users actively using a Moodle site at THE SAME TIME. Which is what "concurrent" means to me. I think what Moodle would or wouldn't support would be just one of your worries getting that to work. Where are you planning on running this and how good is the network connectivity - and so on?