Running redhat enterprise 7.1 64 bit (32 GB), PHP 7.1.x Moodle 3.4.7+, and MySQL 5.7.21 community edition (64 GB). All on VMWare. App & database server.
The quizzes seem to be the issue.. that is making Moodle almost useless LOL
Since Sept 12th (or maybe earlier) a minimum of nine instructors have reported
specifically on the Moodle quiz slowdown issue.
If they each have 20 students in their room during a quiz, that is 180 students affected by this. “Affected” could mean either frustrated and worried because their quiz completed *very* slowly (minutes per question, instead of seconds), or some of them are not able to complete at all due to a session time-out.
Here are my .cnf settings.. The DB Server has 64 GB or ram and CPU still hits 70%
How do I try and narrow down the problems with quizzes and where to start?
# this is read by the standalone daemon and embedded servers
[server]
[client]
default-character-set = utf8mb4
max_allowed_packet=3G
[mysql]
default-character-set = utf8mb4
[mysqld]
datadir=/ourdb/ourmysql
socket=/var/lib/mysql/mysql.sock
log-error=/var/opt/rh/rh-mysql57/log/mysql/mysqld.log
pid-file=/var/run/rh-mysql57-mysqld/mysqld.pid
slow_query_log=1
slow_query_log_file=/var/opt/rh/rh-mysql57/log/mysql57-slow.log
long_query_time=1
innodb_file_format = Barracuda
innodb_file_per_table = 1
innodb_large_prefix
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
skip-character-set-client-handshake
innodb_buffer_pool_size=51G
max_allowed_packet=3G
innodb_log_buffer_size=32M
innodb_flush_log_at_trx_commit=0
innodb_flush_method=O_DIRECT
innodb_buffer_pool_instances=8
innodb_thread_concurrency=8
innodb_buffer_pool_dump_pct=75
innodb_adaptive_hash_index_parts=16
innodb_checksum_algorithm=crc32
innodb_page_cleaners=8
innodb_log_file_size=6G
# this is only for embedded server
[embedded]