neumayer / mysql-docker-compose-examples

71 stars 59 forks source link

mysql-router is keep restarting #1

Open AmreeshTyagi opened 6 years ago

AmreeshTyagi commented 6 years ago

docker container logs:

We require all of MYSQL_HOST MYSQL_PORT MYSQL_USER MYSQL_PASSWORD MYSQL_INNODB_NUM_MEMBERS to be set. Exiting.

It seems like MYSQL_INNODB_NUM_MEMBERS is missing from mysql-router.env. I added this as MYSQL_INNODB_NUM_MEMBERS=3 but still not working.

I was creating innodb-cluster

neumayer commented 6 years ago

The variable is not mandatory any longer... after the next release of the mysql-router image. So my mistake for creating a race condition here. If you re-add the MYSQL_INNODB_NUM_MEMBERS=3 I think it should be working though. In any case I updated the docker-compose file so that mysql-router restarts on failure.

Can you post the output you get from docker-compose (or docker logs) with regards to the mysql-router container?