Quantcast
Channel: Backup and restore
Viewing all articles
Browse latest Browse all 6815

Re: Backup overloads database

$
0
0
by Ken Task.  

The one moodle instance primarily used as a quiz machine is heavy processing ... at any time ... students taking or even during backups.   So you might look into how those quizzes are setup ... all questions on one page?  5 questions per page?  Could be you have some quiz related tables that are growing large.  Larger tables = longer processing.

Here is a query I found (didn't create) that shows largest tables:

SELECT CONCAT(table_schema, '.', table_name), CONCAT(ROUND(table_rows / 1000000, 2), 'M') rows, CONCAT(ROUND(data_length / ( 1024 * 1024 * 1024 ), 2), 'G') DATA, CONCAT(ROUND(index_length / ( 1024 * 1024 * 1024 ), 2), 'G') idx, CONCAT(ROUND(( data_length + index_length ) / ( 1024 * 1024 * 1024 ), 2), 'G') total_size, ROUND(index_length / data_length, 2) idxfrac FROM information_schema.TABLES ORDER BY data_length + index_length DESC LIMIT 10;

On a K12 site 'smaller' than yours but does a lot of quizzes throughout the site:



moodle2.mdl_grade_grades_history2.31M0.21G0.34G0.55G1.66
moodle2.mdl_question_attempts0.46M0.16G0.04G0.19G0.23
moodle2.mdl_question_attempt_step_data1.91M0.06G0.02G0.09G0.40
moodle2.mdl_question_attempts0.46M0.16G0.04G0.19G0.23

Also, when was the last time the DB for that instance was checked with some tool like MySQLTuner?

You didn't mention if the DB server is dedicated or does each of your servers 'do it all' ... code + DB + files?

What does the 'top' of 'top' look like?

'spirit of sharing', Ken


Viewing all articles
Browse latest Browse all 6815

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>