We are using automap and load balancing MySQL and seeing some problems with timeouts. Would these timeouts only affect idle connections or active connections as well?
Idle timeouts only affect idle connections. Each time a packet on the connection arrives at LTM, the idle timeout should be reset to 0. You can see this in the 'b conn all show all' output.
If I create a SNAT, and assign it to this Virtual Server, when then do I go to increase the timeouts?
See SOL7606 for details on this:
SOL7606: Overview of BIG-IP LTM idle session timeouts
https://support.f5.com/kb/en-us/solutions/public/7000/600/sol7606.html
A virtual server matching an automap SNAT
If the connection matches a virtual server and an automap SNAT, the protocol profile idle timeout value will be used. For example, if the virtual server references a protocol profile with a 500 second idle timeout, the idle connection flow will be deleted using the protocol profile idle timeout of 500 seconds.
Note: An automap SNAT has a non-configurable idle timeout of 300 seconds.
If you want to increase the hard coded 300 second idle timeout on the SNAT, you could configure a custom SNAT using the floating self IP address on the egress VLAN as the SNAT pool. You can then configure the idle timeout under Local Traffic ›› SNATs : SNAT Translation List ›› 1.2.3.4 where 1.2.3.4 is the SNAT IP you've configured in the SNAT pool.
Aaron