From 07c766039218be2a2dd2dfa449906f662254b6d1 Mon Sep 17 00:00:00 2001 From: emorino Date: Fri, 3 Jul 2020 10:12:05 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20Calculer=20la=20taille=20ad=C3=A9quate?= =?UTF-8?q?=20pour=20innodb=5Fbuffer=5Fpool=5Fsize?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HowtoMySQL/Troubleshooting.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/HowtoMySQL/Troubleshooting.md b/HowtoMySQL/Troubleshooting.md index 4aba3bc8..f1828b4e 100644 --- a/HowtoMySQL/Troubleshooting.md +++ b/HowtoMySQL/Troubleshooting.md @@ -866,4 +866,15 @@ Pour qu'un utilisateur puisse créer / modifié des TRIGGER, sans avoir le privi +---------------------------------+-------+ | log_bin_trust_function_creators | ON | +---------------------------------+-------+ -~~~ \ No newline at end of file +~~~ + +## Calculer la taille adéquate pour innodb_buffer_pool_size + +On peux calculer la taille adéquate pour la variable innodb_buffer_pool_size sur un serveur mysql, avec la requête suivante : + +~~~ +SELECT CEILING(Total_InnoDB_Bytes*1.6/POWER(1024,3)) RIBPS FROM ( SELECT SUM(data_length+index_length) Total_InnoDB_Bytes FROM information_schema.tables WHERE engine='InnoDB') A; +~~~ + +Il ne faut pas oublié d'augmenté également le innodb_buffer_pool_instances si innodb_buffer_pool_size et suppérieur ou égal à 4Gio. +On mets une instances par Gigaoctet pour le innodb_buffer_pool_instances. \ No newline at end of file