autopilotpattern / mysql

Implementation of the autopilot pattern for MySQL
Mozilla Public License 2.0
172 stars 68 forks source link

Minio restarting causes unhealthy mysql-primary #94

Open dfredell opened 6 years ago

dfredell commented 6 years ago

In my environment I'm using docker-compose and when the minio storage servers need to restart that causes the mysql-primary service in consul to go unhealthy. This is because in the manage.main() method it creates a Minio() object, and the init of Minio() actually goes out to minio to make a bucket. The mysql servers are staying up and I would expect them to stay healthy despite the snapshot storage going down, as long as mysql isn't currently trying to backup or restore.

When using Manta() for the snapshots the mysql health check doesn't make a connection to Manta so if manta goes down it doesn't bring down the mysql with it. I think the Minio snapshot storage system should operate the same way.