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]
query_cache_size = 0 query_cache_type = 0 query_cache_limit = 4M tmp_table_size = 32M max_heap_table_size = 32M thread_cache_size = 4 max_connections = 100 key_buffer_size = 16M max_allowed_packet = 1024M innodb_log_file_size=16M
performance_schema=ON
Any advice would be very welcome.
Thanks in advance
Colin
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.