gmo-media / mikasafabric

mikasafabric for MySQL is fork product of MySQL Fabric.
https://example.com/
GNU General Public License v2.0
3 stars 3 forks source link

mikasafabric leaks file descriptor #7

Open yoku0825 opened 6 years ago

yoku0825 commented 6 years ago

mikasafabric leaks file descriptor during a few weeks running. Connections from mysqlrouter didn't release correctly in some conditions (can't realized yet).

When leaking fd reaches max_open_files, all health-check and failover-queries are failed.

Output of lsof

mikasafab 9746 mysql  123u  sock      0,7       0t0    858610 protocol: TCP
mikasafab 9746 mysql  124u  sock      0,7       0t0    859056 protocol: TCP
mikasafab 9746 mysql  125u  sock      0,7       0t0    858845 protocol: TCP
mikasafab 9746 mysql  126u  sock      0,7       0t0    884887 protocol: TCP
mikasafab 9746 mysql  127u  sock      0,7       0t0    885123 protocol: TCP
mikasafab 9746 mysql  128u  sock      0,7       0t0    885360 protocol: TCP
mikasafab 9746 mysql  129u  sock      0,7       0t0    885599 protocol: TCP
mikasafab 9746 mysql  130u  sock      0,7       0t0    917863 protocol: TCP
mikasafab 9746 mysql  131u  sock      0,7       0t0    917599 protocol: TCP