Server tweaks

Server tweaks

by Richard Cackett -
Number of replies: 6
We are setting up a ubuntu, postgreSql, php, apache server to run moodle 2.0.3 on. Our current windows server can not handle the load when we have 50 students accessing quizzes... The Ubuntu / moodle server seemed faster but when we have 80+ students logging on and attempting the same or different quizzes containing images only, performance slowed down to a stand still for a lot of users (web pages doesn't update.....) The hardware can handle the load, lots of RAM, fast HDD, gigabit NICs etc. My question is What software settings / tweaks are needed to allow, 500 concurrent users, with 300 of those users opening quizzes, submitting them etc.??? With minimal latency / wait time. Am I asking too much for a single server? Thanks
Average of ratings: -
In reply to Richard Cackett

Re: Server tweaks

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

First thing, you don't say anything about the hardware. Could you provide the details?

Second thing is about the statement: "The hardware can handle the load, lots of RAM, fast HDD, gigabit NICs etc". How do you know? Since the "performance slowed down to a stand still for a lot of users", something hit the ceiling.

Did you go through http://docs.moodle.org/en/Performance and http://docs.moodle.org/en/Performance_FAQ ?
In reply to Visvanath Ratnaweera

Re: Server tweaks

by Richard Cackett -

Hi Visvanath

I have spoken to the techie regarding our server configuration. He sent me the following:

Below is the server specifications

 Network card(s)—There are 2 network interface of 1000Mps. These have been bonded to make a 2000Mps pipe

  1. RAM—8GB
  2. Hard Disk drive Make and model- is200 Gb  Virtual Disk that is part of a LUN on the SAN
  3. OS and version – Ubuntu -- ubuntu-10.04.2-server- x64
  4. Shared hardware resources (is it a virtual server?) - CPU Capacity 8x2.26 GHX Memory capacity 50 GB
  5. Other hardware items related to Moodle? none

 

PHP Accelerator—APC  attached screen shots

PostgreSQL configuration file - max_connections = 250, shared_buffers = 24MB

Apache conf -- <IfModule mpm_prefork_module> increased Max clients to 250

 No compression has been setup yet as issue we have been experiencing is the lack of database connections to normal users, I have attached log files to give you an idea off isuee that have been present.

In reply to Richard Cackett

Re: Server tweaks

by Troo Don -

First, ensure that the PostgreSQL user used by Moodle has no connections limit. As you have plenity of RAM, try increasing progressively the max_connections value (300, 350...), work_mem to 2 MB and shared_buffers to 1024 MB (and adjust the effective_cache_size accordingly). If that doesn't do the trick, try something like Pgpool or PgBouncer. Don't forget to restart PostgreSQL to apply the configuration changes smile

As a sidenote, after you manage to solve the database configurations problems, consider trying Cherokee instead of Apache.

In reply to Richard Cackett

Re: Server tweaks

by Frankie Kam -
Picture of Plugin developers

Hi Richard.

How much RAM does your server have?
Do you have PHP accelerator installed, i.e., eaccellerator or APC?
Is your site gzip or mod_deflate for Apache enabled (duh, I'm sure it is)?
How many quiz questions do you display on a page? The recommended number of questions to be loaded on a page at any one time is 5.

Frankie Kam

In reply to Frankie Kam

Re: Server tweaks

by Chizzy Ngulube -

Hi Frankie,

The Server has 8Gb of RAM installed, and the PHP accelerator we are using is APC, configuration paratmeters are in the above post from Richard. Module deflate is enabled.

Chizzy

In reply to Chizzy Ngulube

This forum post has been removed

The content of this forum post has been removed and can no longer be accessed.