0

I have been reading too many information about InnoDB parameters, but I still have a doubt. Should "innodb_log_buffer_size" be larger than "innodb_buffer_pool_size"?

asked Jan 2, 2022 at 23:01
2
  • Hi, and welcome to dba.se! Should "innodb_log_buffer_size" be larger than "innodb_buffer_pool_size"? No! Your question should contain lines like "I searched for <innodb_xxxx_buffer_yyyy_size> and I've found a, b and c. Search for "my.cnf" recommendations - what I found after a short search is that the former is normally measured in MB and the latter in GB - apart from that, you'll have to provide more information (XXGB RAM, HDD/SSD, OLTP/OLAP...) if you want actual recommendations. These parameters are all interrelated and determining the optimal configuration is an art in itself! Commented Jan 3, 2022 at 7:15
  • Dear Verace, thanks for your suggestions. However, I have modified other parameters and my VPS is stable Commented Jan 6, 2022 at 1:16

1 Answer 1

0

Be sure that innodb_buffer_pool_size is about 70% of available RAM. This is the most important setting. It controls the amount of RAM being used for caching, hence it helps speed up most queries.

Leave innodb_log_buffer_size at the default given by the install. This setting is much less important. It has to do with writing redo log entries to disk. (Cf "transactions")

answered Jan 3, 2022 at 22:24
1
  • Dear Rick, thanks for your reply. I am now measuring the necessary "innodb_buffer_pool_size" value for fine tuning. Concerning "innodb_log_buffer_size", I will leave it to the default value. Commented Jan 6, 2022 at 1:18

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.