I have a cloud server with the following config:
CPU:8 vCore (4 Core, 4 Processor)
RAM:16 GB
SSD:240 GB
This server features CentOS7-64bit with MariaDB running as the database. (Date bug is fixed)
The server is very database intensive and updated near constantly.
I am seeing > 95% utilization on the server but I believe the default configuration is more to blame then running out of resources.
I'd like to offload more of the work to the RAM which is only 11% used by MySQL/MariaDB.
41724 mysql 20 0 10.163g 1.765g 9704 S 298.0 11.3 19:10.43 mysqld
Using this Serverfault questions I've adjusted my Database config file as best I could.
This has improved some but is there anything else I can do to improve the performance outside of upgrading CPU?
[mysqld]
bind-address = ::
skip_name_resolve
local-infile=0
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
key_buffer_size=4G
max_allowed_packet=128M
query_cache_type = 1
query_cache_limit = 100M
query_cache_min_res_unit = 2k
query_cache_size = 784M
tmp_table_size= 2048M
max_heap_table_size= 2048M
skip-name-resolve
innodb_buffer_pool_size= 7G
innodb_file_per_table=1