httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 61791] New: make mod_proxy 'honor DNS ttl' with enablereuse on (dnsttl, addressTTL ?)
Date Mon, 20 Nov 2017 16:36:29 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=61791

            Bug ID: 61791
           Summary: make mod_proxy 'honor DNS ttl' with enablereuse on
                    (dnsttl, addressTTL ?)
           Product: Apache httpd-2
           Version: 2.5-HEAD
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: mod_proxy
          Assignee: bugs@httpd.apache.org
          Reporter: alexandre.schaff@gmail.com
  Target Milestone: ---

Created attachment 35541
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=35541&action=edit
diff to add dnsttl parameter to ProxyPass

When ProxyPass backend is a hostname and enablereuse is On, the DNS resolution
is done at child startup only.

It may be an issue in environments with auto-scaling, e.g. AWS : 
   * 'disablereuse on' is not a good solution for perfs.
   * MaxConnectionsPerChild is not precise enough to make child restart

Idea is to have parameter 'dnsttl' added to ProxyPass.
If an IP change is detected after a dnsttl : update worker->cp->addr with new
value.
New connections are made to new addr, old stay unchanged ( e.g. for AWS grace
period )

Attached is a very simple patch [*] to summ-up the idea.
[*] patch done on httpd-2.4.29 for very simple testing only (not prod ready!)

Similar has been discussed in mailing lists several times.  
Latest seen :
https://lists.apache.org/thread.html/cf2aa9351063ceb90228ef66ce604c85e23124567bb174c92dcc677f@1464388317@%3Cusers.httpd.apache.org%3E

@Yann, maybe your 'addressTTL' patch does answer the need.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message