beansbaxter
Verified User
I am running a single website on a dedicated server, and the server load averages are always too high.
I went from 2 CPU's to 4 CPU's and that helped some, but the server still maintains a high CPU load average and the memory usage stays very low.
I don't want to throw more CPU's at the server, and would prefer to configure MySQL for better performance, assuming this is possible.
The website has only 1 database, which is around 15 GB in size.
The server is running MySQL 5.7.23, along with Apache 2.4.34 and php 7.2.10.
Here you can see the server CPU and Memory usage over the last 24 hours - https://cl.ly/45d3c0e6c1ba
And when the system generates a server load warning, everything is being consumed by MySQL - https://cl.ly/02fe3658155f
This is what's been setup in the MySQL configuration settings:
What other changes can I make to the MySQL configuration settings to reduce the server load average?
If it matters, running the latest DirectAdmin 1.54.1.
Thanks in advance.
I went from 2 CPU's to 4 CPU's and that helped some, but the server still maintains a high CPU load average and the memory usage stays very low.
I don't want to throw more CPU's at the server, and would prefer to configure MySQL for better performance, assuming this is possible.
The website has only 1 database, which is around 15 GB in size.
The server is running MySQL 5.7.23, along with Apache 2.4.34 and php 7.2.10.
Here you can see the server CPU and Memory usage over the last 24 hours - https://cl.ly/45d3c0e6c1ba
And when the system generates a server load warning, everything is being consumed by MySQL - https://cl.ly/02fe3658155f
This is what's been setup in the MySQL configuration settings:
Code:
[mysqld]
local-infile = 0
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
symbolic-links=0
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
max_allowed_packet=24M
max_connections=1000
wait_timeout=28800
innodb_log_file_size=256M
innodb_flush_method=O_DIRECT
innodb_thread_concurrency=0
innodb_read_io_threads=64
innodb_write_io_threads=64
innodb_io_capacity=3000
innodb_flush_neighbors=0
If it matters, running the latest DirectAdmin 1.54.1.
Thanks in advance.