mysql-docker-compose-examples icon indicating copy to clipboard operation
mysql-docker-compose-examples copied to clipboard

mysql-router is keep restarting

Open AmreeshTyagi opened this issue 7 years ago • 1 comments

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

AmreeshTyagi avatar Oct 09 '18 09:10 AmreeshTyagi

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?

neumayer avatar Oct 09 '18 14:10 neumayer