Hi all.

I am running CentOS 8 with nginx for wordpress. I have run the mysql tuner and below are the general recommendations:

*****General recommendations:
MySQL was started within the last 24 hours - recommendations may be inaccurate
Reduce your overall MySQL memory footprint for system stability
Dedicate this server to your database for highest performance.
Reduce or eliminate unclosed connections and network issues
Configure your accounts with ip or subnets only, then update your configuration with skip-name-resolve=1
Consider installing Sys schema from https://github.com/mysql/mysql-sys for MySQL
Consider installing Sys schema from https://github.com/FromDual/mariadb-sys for MariaDB
*


Any advice on how to do this, or if they can be ignored?

My server is 2gb 1 core ( $10 on DO )

My current my.cnf in my.cnf.d is below:

[mysqld]

querycachesize = 0
querycachetype = 0
querycachelimit = 4M
tmptablesize = 32M
maxheaptablesize = 32M
thread
cachesize = 4
max
connections = 100
keybuffersize = 16M
maxallowedpacket = 1024M
innodblogfile_size=16M

performance_schema=ON

Any advice would be very welcome.

Thanks in advance

Colin

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hi @colinshaun77Eel,

All of the mentioned recommendations would make your server only for MySQL/MariaDB and nothing else. Your MariaDB instance will take almost all of the RAM.

As for

Configure your accounts with ip or subnets only, then update your configuration with skip-name-resolve=1

I’m not a big fan of this, it has too many negatives as opposed to postivies so I’ll recommend leaving it out.

As for your configuration, we can’t know if it is okay. This depends on your website. If you are experiencing website issues or droplet’s issue you might need to look at changing it however if you aren’t, I’ll recommend leaving it as is.

Regards,
KFSys

  • Anyway, this is the standard configuration which I use for inial/new projects and I use it until I start detecting issues which need to be fixed then I look into increasing the limits.

    Regards,
    KFSys

Submit an Answer