
This is a very important config for production environment but we are kind of stack as percona (mysqld) system variable cannot be changed.Īny help would be very much appreciated. e MYSQL_ROOT_PASSWORD='password' -e MYSQL_ROOT_HOST=% \ When our container is running on Container Engine, DB access is lightning fast, but is horribly slow when running in our local machines. Our production SQL server is also on Google Cloud. mount type=bind,src=/cdr/telcobright/mysql7/mysql-slow.log,dst=/var/log/mysql-slow.log \ We are using Docker for our local development environments, and deploying to Google Cloud Container Engine for production. mount type=bind,src=/cdr/telcobright/mysql7/mysqld.log,dst=/var/log/mysqld.log \ Where to file issues: Please submit a bug report at under the category MySQL Package Repos and Docker Images. mount type=bind,src=/cdr/telcobright/mysql7/mysql,dst=/cdr/mysql \ Quick Reference Detailed documentation: See Deploying MySQL on Linux with Docker in the MySQL Reference Manual. mount type=bind,src=/cdr/telcobright/mysql7/mysqld.cnf,dst=/etc//mysqld.cnf \ mount type=bind,src=/cdr/telcobright,dst=/telcobright \ Cheap OVH hosting: 200+ db queries / second. With PHP/MySQL CPU performance statistics plugin I ran MySql Test: Azure App Service: 20-50 db queries / second. According to P3 - Plugin Performance Profiler, clean WP installation creates 38 database queries.

The docker command is given below (last line has the info) docker run -name percona -p 10.100.201.10:3306:3306 \ To pinpoint the problem I created clean Wordpress installation. We have also tried to pass that particular system variables while running the docker image, but we got the same error. We need to reduce that to 15G, instead of 32GB. mysql> show variables like 'tokudb_cache%' But we have successfully enabled tokudb engine and it’s a valid server variable which is getting the default value, which is 50% of system memory. We are getting “unknown variable ‘tokudb_cache_size=15G’” from the docker logs. But when I load my CMS it is slow (takes about 3 to 5 seconds) to load. When I browser the phpmyadmin UI it feels quite fast and tables/edits load quickly. I have read a lot about slow Docker containers but all things I tried don't help.

#Docker mysql slow code#
Therefore, if you store your source code in the WSL 2 filesystem. 3 I would like to ask for help on my Docker installation, because I can't fix it. We mounted a physical my.cnf as the config file from the linux host and adding the following line causes the server fail to start. Docker Desktop 2.3+ includes a new WSL 2 Engine that runs Docker in WSL rather than in a VM. We are unable to change any tokudb variables for my percona server 5.7 running in official docker image.
