The Site Administration Pages are very slow

The Site Administration Pages are very slow

by Jason 周 -
Number of replies: 2

I installed moodle 3.9 in Azure VMs, and use a storage account for dataroot, the web server mount that storage account, after that I found that it's very slow for site administration pages. if I change the data root to a local folder, there is no such problem.

$CFG->dataroot  = '/mnt/moodledata/moodledata';
$CFG->dirroot = '/var/moodle';
$CFG->admin     = 'admin';
$CFG->directorypermissions = 02777;
$CFG->localcachedir = '/var/localcachedir';
$CFG->tempdir = '/mnt/moodledata/tempdir';
$CFG->cachedir = '/mnt/moodledata/cachedir';
$CFG->preventfilelocking = true;
$CFG->session_handler_class = '\core\session\memcached';
$CFG->session_memcached_save_path = '127.0.0.1:11211';
$CFG->session_memcached_prefix = 'memc.sess.key.';
$CFG->session_memcached_acquire_lock_timeout = 120;
$CFG->session_memcached_lock_expire = 7200;    

Average of ratings: -
In reply to Jason 周

Re: The Site Administration Pages are very slow

by Jason 周 -
after I change
$CFG->tempdir = '/var/moodledata/tempdir';
$CFG->cachedir = '/var/moodledata/cachedir';

The performance is good, but the 2 folders are not shared folder.
In reply to Jason 周

Re: The Site Administration Pages are very slow

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
So you moved from
$CFG->tempdir = '/mnt/moodledata/tempdir';
$CFG->cachedir = '/mnt/moodledata/cachedir';
external volumes (mounted through the network?) to
$CFG->tempdir = '/var/moodledata/tempdir';
$CFG->cachedir = '/var/moodledata/cachedir';
which are local drives - or the equivalent in Azure and that improved performance?

Not surprising. You can convince yourself by running Moodle benchmark https://moodle.org/plugins/report_benchmark.
Average of ratings: Useful (2)