Performance FAQ: Difference between revisions

From MoodleDocs
(performance template, formatting)
Line 1: Line 1:
===How do you define "concurrent users"?===
{{Performance}}
==How do you define "concurrent users"?==
As has been repeatedly stressed in the [http://moodle.org/mod/forum/view.php?f=94 Hardware and performance] forum, the load on the server at a particular time depends on the number of concurrent users, not on the total number of users neither on the number of users logged-in. The term "concurrent users" is used to mean those users for whom the server is actively doing something . It may by processing a webpage written in PHP, querying the database or simply transferring a file. (see also Wikipedia [http://en.wikipedia.org/wiki/Concurrency_(computer_science) Concurrency])
As has been repeatedly stressed in the [http://moodle.org/mod/forum/view.php?f=94 Hardware and performance] forum, the load on the server at a particular time depends on the number of concurrent users, not on the total number of users neither on the number of users logged-in. The term "concurrent users" is used to mean those users for whom the server is actively doing something . It may by processing a webpage written in PHP, querying the database or simply transferring a file. (see also Wikipedia [http://en.wikipedia.org/wiki/Concurrency_(computer_science) Concurrency])


===How do I benchmark a Moodle-site?===
==How do I benchmark a Moodle-site?==
You can of course benchmark parts of the system separately: the hardware as seen by the operating system (eg. CPU, disk access), web server performance, database server performance, execution on PHP operations, etc. For further details see [[Performance#Obtain_a_baseline_benchmark]].
You can of course benchmark parts of the system separately: the hardware as seen by the operating system (eg. CPU, disk access), web server performance, database server performance, execution on PHP operations, etc. For further details see [[Performance#Obtain_a_baseline_benchmark]].


Line 10: Line 11:
Warning: Note that running this script on a production server may have unwanted side-effects. You are strongly adviced to run it on a test-site.
Warning: Note that running this script on a production server may have unwanted side-effects. You are strongly adviced to run it on a test-site.


===What are PHP-accelerators?===
==What are PHP-accelerators?==
See Wikipedia [http://en.wikipedia.org/wiki/PHP_accelerator PHP accelerator].
See Wikipedia [http://en.wikipedia.org/wiki/PHP_accelerator PHP accelerator].


Line 17: Line 18:
You find some user suggestions here [http://moodle.org/mod/forum/discuss.php?d=168965 Update on PHP-accelerators].
You find some user suggestions here [http://moodle.org/mod/forum/discuss.php?d=168965 Update on PHP-accelerators].


===How do I cluster Moodle?===
==How do I cluster Moodle?==


See [[Performance#Scalability]]
See [[Performance#Scalability]]
Line 23: Line 24:
[[Moodle_Clusters]]
[[Moodle_Clusters]]


===How do I replicate Moodle?===
==How do I replicate Moodle?==


[[Mirroring_Moodle]]
[[Mirroring_Moodle]]
Line 29: Line 30:
[http://moodle.org/mod/forum/discuss.php?d=173408&parent=760514  How to Replicate MOODLE ??!!]
[http://moodle.org/mod/forum/discuss.php?d=173408&parent=760514  How to Replicate MOODLE ??!!]


===My site is very slow, what should I do?===
==My site is very slow, what should I do?==


First find out "how slow". (The theme-trick here).
First find out "how slow". (The theme-trick here).
Line 50: Line 51:
[[Performance#Obtain a baseline benchmark]] and compare it with the published figures.
[[Performance#Obtain a baseline benchmark]] and compare it with the published figures.


===What are the requirements for N users?===
==What are the requirements for N users?==


[http://moodle.org/mod/forum/discuss.php?d=111847 A moodle setup for 10K simultaneous users]
[http://moodle.org/mod/forum/discuss.php?d=111847 A moodle setup for 10K simultaneous users]


===How many users will my installation support?===
==How many users will my installation support?==


This is another way of asking the same question as above. Please move up.
This is another way of asking the same question as above. Please move up.


===Which operating system is the best?===
==What is the best webserver?==


[[Beginning_Administration_1_FAQ#Installation_on_a_Windows_or_a_Linux_server]]
==Should I go for 64 bit or is 32 bit OK?==
 
===What is the best webserver?===
 
===Should I go for 64 bit or is 32 bit OK?===


===What hosting provider do you recommend?===
===What hosting provider do you recommend?===
Line 70: Line 67:


== See also ==
== See also ==
Moodle Docs
* [[Performance]]
* [[:Category:Performance]]


Forum discussions
Using Moodle forum discussions
* [http://moodle.org/mod/forum/search.php?notwords=Re:&id=5&subject=performance All performance related discussions]
* [http://moodle.org/mod/forum/search.php?notwords=Re:&id=5&subject=performance All performance related discussions]
* [http://moodle.org/mod/forum/search.php?notwords=Re:&id=5&forumid=33&&subject=performance Performance related discussions in the General Developer forum]
* [http://moodle.org/mod/forum/search.php?notwords=Re:&id=5&forumid=33&&subject=performance Performance related discussions in the General Developer forum]
Line 81: Line 75:
* [http://moodle.org/mod/forum/discuss.php?d=103040 Tool to estimate server's maximum concurrent users]
* [http://moodle.org/mod/forum/discuss.php?d=103040 Tool to estimate server's maximum concurrent users]
* [http://moodle.org/mod/forum/discuss.php?d=144718 Handling Moodle database load - a solution!]
* [http://moodle.org/mod/forum/discuss.php?d=144718 Handling Moodle database load - a solution!]


[[Category:FAQ]]
[[Category:FAQ]]
[[Category: Administrator]]
[[Category:Performance]]

Revision as of 15:02, 19 October 2011

How do you define "concurrent users"?

As has been repeatedly stressed in the Hardware and performance forum, the load on the server at a particular time depends on the number of concurrent users, not on the total number of users neither on the number of users logged-in. The term "concurrent users" is used to mean those users for whom the server is actively doing something . It may by processing a webpage written in PHP, querying the database or simply transferring a file. (see also Wikipedia Concurrency)

How do I benchmark a Moodle-site?

You can of course benchmark parts of the system separately: the hardware as seen by the operating system (eg. CPU, disk access), web server performance, database server performance, execution on PHP operations, etc. For further details see Performance#Obtain_a_baseline_benchmark.


But there is no easy formula to deduce the maximum number of concurrent users from those results. There is a PHP-script, the Performance perspectives - a little script, circulating amoung the Moodle-community which calculates a ballpark figure. The current version is attached to posting on 25. March 2011.

Warning: Note that running this script on a production server may have unwanted side-effects. You are strongly adviced to run it on a test-site.

What are PHP-accelerators?

See Wikipedia PHP accelerator.

Available software are documented under Performance#PHP_performance.

You find some user suggestions here Update on PHP-accelerators.

How do I cluster Moodle?

See Performance#Scalability

Moodle_Clusters

How do I replicate Moodle?

Mirroring_Moodle

How to Replicate MOODLE ??!!

My site is very slow, what should I do?

First find out "how slow". (The theme-trick here).

The next question is, whether the performance is normal or something malfunctions. There are many things which can malfunction:

  • hardware
  • crashed filesystems, specially network filesystems
  • memory leaks or other crashes in the system
  • bug in Moodle
  • corrupted database
  • networking issues (DNS, firewalls, ...)

Or your performance could be "normal" under the given circumstances:

  • Are you on a dedicated server or a shared (virtual) server?
  • How much RAM, processing power do you have?
  • What is the software stack you use? (Unix or Windows, Apache or IIS, MySQL, PostgreSQL or SQL-Server, ...?)
  • how many concurrent users can you support
  • what modules/activities you use? Check Performance#Performance of different Moodle modules

Performance#Obtain a baseline benchmark and compare it with the published figures.

What are the requirements for N users?

A moodle setup for 10K simultaneous users

How many users will my installation support?

This is another way of asking the same question as above. Please move up.

What is the best webserver?

Should I go for 64 bit or is 32 bit OK?

What hosting provider do you recommend?

http://moodle.org/mod/forum/discuss.php?d=99405

See also

Using Moodle forum discussions