Seems go.plugin mysql collector connect & disconnect every collect

Hi @AnnAngela

No, we don’t release the connection on every data collection cycle. We create/open the connection during the first data collection and keep using it.

I see we set SetConnMaxLifetime to 1 minute, so i would expect release/recreate every 1 minute.

When you do show processlist; pay attention to the Host field - if it changes it means there is a new connection (e.g.: 172.17.0.1:46860 => 172.17.0.1:46868).

I don’t remember why we set it to 1 minute :thinking: Can increase it to 5.