Install And Configure Redis On Centos 7 Moodle
Our Moodle site is starting to get heavy traffic. As a result, the site is slowing down. What are some of the configuration options I should check right off the bat when performance tuning Moodle? I know it is specific to this site as others on it have no problems with large workloads.
4 Installation and server configuration. In this install tutorial we will be deploying CentOS 7.5, PHP 7.2, MariaDB, Redis as. Nextcloud allows connecting external services (for example Moodle) to your. Install and Configure Redis on CentOS 7. By Shrinivas Gundu; 7 September, 2017; No Comments; Redis is an open-source, in-memory, data structure store with optional disk writes for persistence. It can be used as a key-value database, or as a cache and message broker. Redis features built-in transactions, replication, and support for a variety of.
iankit3 Answers
On Moodle's website, they have an extensive performance tuning webpage. I've including a list of a few suggestions that look intersting:
Yum Install Redis
- If you go to: http://YOURSERVERNAME.com/admin/dbperformance.php, moodle will give some performance statistics.
- Consider adding more RAM or clustering your webserver.
- Consider adding a php accelerator such as APC, PHPA, Xcache or eAccelerator.
- Try to determine if the webserver or the database server is the bottleneck.
A moodle user also developed a good load testing script (this script is very system heavy and will tell you the maximum load that your server can handle). It can be found here.
Adding APC php accelerator increased the performance of our server by 250% to 300%. immediately (amazing!)we are using CentOS 5.4 so it was only 'yum install php-apc
' (easy)
we also used mysqltuner.pl
(blog.mysqltuner.com/) to tune MySQL server settings. hard to tell how much we gained here. it feels better.
we change MySQL internal DB Engine for the table mdl_user from MYISAM
to InnoDB
after we reached 12000 users (now we have 16000) it gave a huge positive performance impact on mdl_user related queries. (example: upload 600 new user now takes 1 min where it used to take 12min. huge improvement!)
Use 'Moodle Universal Cache'. It speeds up moodle to certain extent. This feature is available moodle 2.4 and onward. Here is the official documentation link http://docs.moodle.org/24/en/Caching
You can also try using memcached with moodle.Although not straight out of the box available, yet memcache is one of the standard ways of using ram for speeding up database access.
iankitiankitNot the answer you're looking for? Browse other questions tagged performancemoodle or ask your own question.
- Install / Initial Config
- NTP / SSH Server
- DNS / DHCP Server
- Storage Server
- Virtualization
- Cloud Compute
- Container Platform
- Directory Server
- WEB Server
- Database
- FTP / Samba / MAIL
- Proxy / Load Balancer
- Monitoring
- Monitorix
- OSQuery
- MRTG
- Cacti
- Munin
- Sensu
- Nagios
- SysStat
- Zabbix 4.2
- Zabbix 4.0 LTS
- Lang / Development
- Desktop Environment
- Others #1
- Zarafa - Groupware
- Zimbra - Groupware
- Bacula - Backup
- Subversion - Revision Control
- Gitolite3 - Revision Control
- RabbitMQ - Message Broker
- Memcached - Memory Cache
- ElasticStack - Search Engine++
- Func - Remote Manage
- Salt - Config Manage
- Puppet - Config Manage
- Ansible - Config Manage
- Spacewalk - System Manage
- Pacemaker - HA Cluster
- PXE Boot- PXE Server
- OpenVPN - VPN Server
- LVM - LVM Manage
- Rsyslog - Syslog Server
- Cgroups - Resource Control
- Auditd - System Audit
- SELinux - Access Control
- Firewalld - Packet Filter
- Others #2