I reduced the timing refresh rate on the chat module to 1 second. I ran a combined chat session in 7 chat rooms simultaneously with about 30 students. After about 10 minutes Moodle stopped working. In fact mysql stopped on the web hosting service we have installed Moodle on and had to be restarted. My question is what is the optum refresh rate I can operate the chat rooms at?
Yes, well, 30 hits every second on chat is a pretty high load - each hit involves quite a bit of database access and an individual PHP process. It's a problem that affects all web-based chats - one solution to cope with heavy usage is to build a server daemon which makes server handling more efficient (http://moodle.org/mod/forum/discuss.php?d=1746).
Using the current scheme, the best refresh rate really depends on the power of the server available to you (which is why it's an option). The default refresh rate is 5 seconds, which should work fine on most servers.
Using the current scheme, the best refresh rate really depends on the power of the server available to you (which is why it's an option). The default refresh rate is 5 seconds, which should work fine on most servers.
Hi,
I noticed some unstability in the chat module and it's very heavy for the webserver running moodle.
So I took a look for an alternative, came out to Ralf's chat (http://sourceforge.net/projects/ralfchat/)
It is written in perl, so I had some modifications to the webserver, but it works fine.
It supports streaming using Mysql as backend, so no slow experience in the chats!
Maybe it is nice to use the same streaming technologies, if this is possible to port it to PHP?
Regards,
Huib
I noticed some unstability in the chat module and it's very heavy for the webserver running moodle.
So I took a look for an alternative, came out to Ralf's chat (http://sourceforge.net/projects/ralfchat/)
It is written in perl, so I had some modifications to the webserver, but it works fine.
It supports streaming using Mysql as backend, so no slow experience in the chats!
Maybe it is nice to use the same streaming technologies, if this is possible to port it to PHP?
Regards,
Huib