Hi,
I just installed ProxySQL and I'm wondering how to monitor it. I thought a good start would be to make sure SELECT * FROM mysql_servers on the admin port returns 3 ONLINE servers,
but testing that out I noticed that if I stop a server, that table doesn't get updated. Worse, the site doesn't work anymore.
but I'm using a master / master configuration, no cluster control so I didn't do the last part about telling ProxySQL which groups are read or write.
Instead, as a write server, I added HAProxy which has the first server in normal and the second server as backup, that way I should have automatic FailOver.
Then the two servers are added directly for read, not using HAProxy.
So my question is what could I have missed ? Looks like ProxySQL doesn't notice when I stop one of the servers, clearly I the write isn't the problem since HAProxy
does see it and starts routing to the backup server, so it must be a problem in the read group. Is defining the read and write groups what enables monitoring in ProxySQL ?
I added a monitoring user and pass, that user can monitoring the replication (we actually use it in our monitoring for this so I know it works).
And as a more broad question, what do you use to monitor that ProxySQL is working fine ?
Thanks a lot !