I simply created one swarm node (master). Wrote a docker-compose with multiple service one of them is mysql. Now, when I scale mysql container I get connection issue. The mysql has a volume defines as
volumes:
- ./mysql:/var/lib/mysql
I simply created one swarm node (master). Wrote a docker-compose with multiple service one of them is mysql. Now, when I scale mysql container I get connection issue. The mysql has a volume defines as
volumes:
- ./mysql:/var/lib/mysql
For further actions, you may consider blocking this person and/or reporting abuse
Prashant Lakhera -
Signadot -
Marcin Janiak -
Fernando Muller Junior -
Top comments (1)
Mysql is not a nosql db with their “easy” scaling out... You cannot run multiple instances on one data folder, this wound’t work - locking, caching and data consistency cannot be maintaned that way. Mysql uses classic master/slave replication process and it is not that simple. You need to explicitly configure this and then writes to master are automatically mirrored to slaves. There are currently more modes of replications. Use google and look for terms like mysql replication