Brian Hirt writes:
Once everything is running on the new mod perl, i shut down the original mod perl application. There is about 0.5 seconds of lag while the proxy reloads the rules.
We use proxies, but instead of modifying the proxy config, we use a Rewrite rule of the form:
RewriteMap maps txt:/etc/httpd.maps RewriteRule ^(.*) http://${maps:appserver}$1 [proxy]
When we release, we edit the /etc/httpd.maps file to point to a different port or machine.
appserver foo.com:9999
mod_rewrite rereads (or checks mtime of) the file on every request so the change takes effect immediately.
That sounds like something that we want to have in the mod_perl documentation. Would someone come up with a doc patch? I think the perfect place for this would be: http://perl.apache.org/docs/1.0/guide/scenario.html
__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
-- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html