zhangjiayin / caddy-mysql-storage

certmagic-sqlstorage/ postgres-storage fork for caddy server support MySQL Storage
6 stars 0 forks source link

after running for an hour, a failed mysql connection makes caddy no longer respond, but caddy service keeps running #4

Closed aoxborrow closed 2 weeks ago

aoxborrow commented 2 weeks ago

hey thank you for this module, we're trying it on a high traffic site with 100k domains (and certificates).

we noticed that sometimes caddy will just stop responding on both http/s ports, even though the caddy service is running fine. there is just one error in the log about an invalid mysql connection. restarting the caddy service brings it back up. we are looking at why there is a failed connection, but I think maybe this error should also cause caddy to fail and get reloaded, or maybe add some configuration about connection retries?

 [mysql] 2024/10/10 18:35:15 connection.go:166: invalid connection
aoxborrow commented 2 weeks ago

oh, this probably wasn't the problem