The company has been using pt-table-sync for a long time to sync tables from source → target - simple as can be no replicas involved no complications just:
pt-table sync [a few switches] sourceDSN destDSN
Source is a Galera cluster load balancer (Maxscale fronted). Recently I implemented an 900s/15m idle timeout on the source DSN’s load balancer and found that it broke the sync on large tables. I couldn’t see why until I spotted that pt-table-sync is making two connections to the DB - one that appears to be doing the sync queries and one that sits idle while the other one works. As some of the larger tables take more than 15m to complete, this seems to be causing pt-table-sync to throw errors.
I assume the second connection is some form of control connection but cannot see a way to either disable it or make it do any work between table syncs - i.e. a keepalive. Is this possible?