![]() ![]() Where to file issues: Please submit a bug report at under the category MySQL Package Repos and Docker Images. mysql/mysql.cnf:/etc/mysql/conf.d/mysql. I have a single mysql container: mysql: image: mysql:5.5 volumes: - mysqldata:/var/lib/mysql. The server is just a simple express app version: "3. Quick Reference Detailed documentation: See Deploying MySQL on Linux with Docker in the MySQL Reference Manual. jbrinley (Jonathan Brinley) September 25, 2016, 2:07am 1 Creating tables in MySQL is incredibly slow in my containers. The application opens a connection some hundred times, so the startup time had become really unacceptable. After that everything would work as expected. It sounds like a communication problem between the two containers, but I can't spot it. At a certain moment connecting to the database became excruciatingly slow, taking tens of seconds to establish a single connection. mysql -u root -psomewordpress -e 'SET global logoutput FILE. 2) logging to the container of the mysql with bash and running the following. Performance used to be much better before a reboot and firmware. WordPress often fails to establish a connection to the database. SELECT and INSERT queries are both extremely slow as tested with MySQL workbench. The Performance of the MySQL container is horrible. ![]() I have managed to do that by doing the following: 1) docker-compose up, while having commented out the line with all.log from yaml file. I'm using a docker container for WordPress linked to another container for MySQL. ![]() I'm then using jest to run http requests against the server.įor some reasons that I can't explain all SQL queries (even the simplest one) are extremely slow (+ 1s). Slow connection to mysql running in docker - Stack Overflow Slow connection to mysql running in docker Ask Question Asked 6 years, 10 months ago Modified 3 years, 2 months ago Viewed 4k times 5 I installed a docker image for mysql. i am trying to somehow make it so i can log all the queries made. cnf and datadir running on Centos physical Host is 2X+ time faster than Mairdb inside Docker. I'm using docker compose to spin up a postgres database and a nodejs server. I use sysbench to test MariaDB:10.3 inside Docker, and the performance is so bad. I'm trying to setup some integrations tests with docker compose. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |