apache2 - Apache with mod_jk Tomcat change DNS Timeout (TTL) -
i'm using gslb app geo-distribution , load-balancing.
the app apache --> tomcat througth mod_jk in workers.properties have this:
worker.balancing.port=8009
worker.balancing.host=tomcats8009.gslb.domain.com
worker.balancing.type=ajp13
worker.balancing.socket_timeout=5
if tomcat gslb (tomcats8009.gslb.domain.com) changes ip x.x.x.x ip y.y.y.y, dns resolution seems cached connector mod_jk , request still asking x.x.x.x .
for solving have make "reload" renew resolution y.y.y.y.
any idea? there kind of dns caching in apache or mod_jk connector? solutions?
thanks.
regards.
i dont know if there property @ mod_jk level can set @ jdk level. assuming have sun, parameter "sun.net.inetaddr.ttl" ; setting 0 turn off dns caching. not recommended turning off dns caching affect performance.