-
-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query Cache #542
Comments
Hello @VirtuBox On fresh installed wordpress site, Mysql or Mariadb are always killed by OOM, but we have 8 GB Memory / 4 AMD vCPUs / 160 GB Disk. so, generally, it use very limited resource: So, I just suppose there is mis configration on Mysql.
Here are logs:
I checked several tutorials at https://easyengine.io/tutorials/mysql/query-cache/ and it shows Since we are using the latest version of 10.6.12-MariaDB, I am confused upon what should be the default setting in Maraidb.conf, should we enable or disable on query cache for 10.6.12-MariaDB ? Or, what is the default setting on Query cache by Wordops? By the way, the issue was from the post at #516, and I created the new post since I just suppose it is new topic. Thanks, and have a nice day. |
@alexlii1971 The limitation is talking about MariaDB's Galera cluster mode. So for the regular MariaDB server, It should be enabled. Also, the default MariaDB configuration takes too much memory usage. So I usually check the internet and bring it down using the values using mysqltuner. |
Thanks, The issue of Mariadb being killed by OOM was from the post at #516, and @VirtuBox said:
Is there a built-in optimized conf setting by Wordops? If no, is there are recommend or optimized setting so that we can fix the issue of MariaDB being killed by OOM? By the way, when run mysqltuner --user dbuser --pass dbPW, it show:
Really expect your guiding! Thanks |
Hello @VirtuBox I just did a fresh install on a fresh server. Here is the fresh installed schema of "50-server.cnf" at /etc/mysql/mariaddb.conf.d/50-server.cnf, it seems not a optimized schema, it would be great if you could provide a optimized schema:
|
Sorry mislead you. I tried to replace/overwrite the old one with the latest one, the Mariadb was not crashed, but show up:
And the front page will show up after refresh, because mariadb was not crashed, This is great. However, is there a way to avoid the issue "Error establishing a database connection:"? there is no error log by wo log show mysite --mysql, and here is Mysql status:
Here is the old conf file for referance:
|
@alexlii1971 For the question you asked me, There is no universal optimized config for the MariaDB since values depend on the memory you have. I usually search Also, Could you tell me how you installed the mysqltunner? Did you use the WordOps command? |
Great thanks. I install all stack by wo stack install -all Yes, I do use wordops command. So mysqltuner was installed at the beginning. But, frankly I have not used it before, so I am quite fresh with Sqltuner. If it is not too much I would ask your recommendation on the server with 8 memory 4cpus 150gb storage. Great thanks |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
This issue was closed because it has been stalled for 5 days with no activity. |
Hello,
On a fresh installed wordpress, I checked Query Cache by
show variables like 'query_cache_%' ;
+------------------------------+--------+
| Variable_name | Value |
+------------------------------+--------+
| query_cache_limit | 131072 |
| query_cache_min_res_unit | 4096 |
| query_cache_size | 0 |
| query_cache_strip_comments | OFF |
| query_cache_type | OFF |
| query_cache_wlock_invalidate | OFF |
+------------------------------+--------+
6 rows in set (0.001 sec)
It seems not the default setting since query_cache_size is 0, and query_cache_limit is 131072, but not the default value of 1048576.
SHOW STATUS LIKE 'Qcache%';
+-------------------------+-------+
| Variable_name | Value |
+-------------------------+-------+
| Qcache_free_blocks | 0 |
| Qcache_free_memory | 0 |
| Qcache_hits | 0 |
| Qcache_inserts | 0 |
| Qcache_lowmem_prunes | 0 |
| Qcache_not_cached | 0 |
| Qcache_queries_in_cache | 0 |
| Qcache_total_blocks | 0 |
+-------------------------+-------+
8 rows in set (0.001 sec)
All of value is 0.
So, what is default configuration value in Wordops, is there anything wrong setting with my site?
If yes, any way to fix it or update the configurations?
Thanks
The text was updated successfully, but these errors were encountered: