Im having trouble to resolve my database errors and how to optimize it. Coz of the slowness of my server (mostly querries i believe), my imports turns with a cloudflare error code. (Cloudflare blocks connections over 15 secs as i remember)
Need advises to fix them.
Im hosting my wordpress website at GCP with 1 vcpu, 4gb ram, 20gb ssd. I use OpenLiteSpeed web server, php 7.4.4, mariadb 15.1. Building an affiliate network site. Hosting the images at google cloud storage. Having trouble about the speed of import. Got over 500k products. Barely imported about 200k. Now im not able to import even one by one or do any other edits via backend. Biggest sized xml is comes with 100k products which is stuck at 96k and not keep moving.
My database size is 3.5gb right now with 200k products. Its going to be double of it with +500k products.
Here are my mysql log and slow log, my.cnf setting, mysqltuner advises and global variables.
This morning i realized that i didnt grant privileges for user@127.0.0.1 after setting up the skip-name-resolve and i did it, i just got 1 mysql error i guess.
Coz of the the mysqltuner keeps offering to increase the amount of installed ram everyday, i converted my all innodb tables to myisam.
Also im looking for help to use indexes with wp_postmeta and wp_posts tables.
Preciate that whoever contribute to fix these issues. Thx a lot.
MY.CNF https://gist.github.com/execash/d2add8445e48c26b3e369b18bcf8a18e
MySql Error Log https://gist.github.com/execash/1870e016c5b4794de3a81bc8635d76f9
Slow logs over 2secs https://gist.github.com/execash/30fbdeb7650a824e140ead3080fa1931
Global variables https://gist.github.com/execash/b6b241b5dc607e6f99b322debd1bb11a
Global status https://gist.github.com/execash/604e2b9625f41d31ce9870eda3935ed5
mysqltuner output https://gist.github.com/execash/aa269f91b5b08d1a4609d5c03d75916a