I have a server with a database in MYSQL 5.7.34 MySQL Community Server (GPL) on weekends has a very high tractability so it has been responding very slowly, I saw the logs and it gave me the following errors:
'% COMPANY_Name%' user: '% User%' host: 'localhost' (Got an error reading communication packets)
This led me to modify the following field in my my.cnf
max_allowed_packet = 512M
Once this was done, the first problem was solved
The second mistake is this
InnoDB: page_cleaner: 1000ms intended loop took 4194ms. The settings might not be optimal. (flushed = 21 and evicted = 102, during the time.)
Investigating it told me to configure the innodb buffer and configure it as follows
innodb_buffer_pool_size = 7G
Also in the investigation I used a query to tell me how much memory is recommended for the buffer size and the result was the following: 86G
So I set my server to 12GB of RAM and assigned it to 7GB but the problem is that it leads to 7 and does not stop going up until the memory collapses.
Here I have several concerns.
1.- The hard disk is 88% busy, I am going to upload 100GB more, this would solve the problem without the need to use innodb_buffer_pool_size?
2.- If I put 32 GB of RAM, the innodb_buffer_pool_size will always make the RAM overflow? If so, what should I implement so that there is no memory overflow and I can have an optimal database?.