I'm currently trying to optimize my MySQL database (running innodb engine) for my requests that are mainly INSERT and UPDATE statements.
I'm using a very basic server with 2GB memory/2 CPU's and a 40GB disk. I've gone through much of the MySQL docs, including optimization (https://dev.mysql.com/doc/refman/5.7/en/optimizing-innodb-diskio.html) and memory use (https://dev.mysql.com/doc/refman/5.7/en/memory-use.html).
I've set my my.conf file to as follows:
[mysqld] default-storage-engine = innodb innodb_buffer_pool_size = 2147483648 innodb_buffer_pool_instances = 4 innodb_buffer_pool_chunk_size = 1073741824 innodb_change_buffer_max_size=30 Despite increasing the pool size, chunk size and number of instances, I'm still seeing significant query bottlenecks and the both CPU's are running at 100%.
Is there annoying more I can do on the innodb engine to reduce these bottlenecks? Or is it simply a case of using greater spec hardware?