> Hi All, > > Good Morning. > > I am working in a Cloud based project where I encounter Scale-in/ Scale out > of Tomcat instances. > We have Apache load balancer as well. The requirement is to dynamically add > any new Tomcat instances during scale out to Load balancer and remove > tomcat instances during scale-in, without restart of balancer. > > I did initial analysis on this. I understand that with mod_jk or mod_proxy, > we need to restart the balancer in the above cases. > > I came across a module mod_cluster which supports to dynamically add or > remove tomcat instances from load balancer, without restart. Here the > tomcat automatically registers with load balancer through separate channel. > But I have process running which gets the status of tomcat whether it is > successfully started or not. Is there a way to register the tomcat through > my process with the balancer instead of tomcat itself registering with > balancer? > > Could someone please suggest me any other modules if any, other than > mod-cluster. > Also is it possible to handle dynamic registration of tomcat with LB in > tomcat itself with minimal changes ? > If anyone used mod_cluster or some other modules, can you please share some > links for doing the setup. > > Thanks in Advance. > > Best Regards, > Mohan
We do it like this: - mod_proxy - several small config files which can be easily overwritten (and generated by scripts) - apache graceful instead of restart So when a tomcat instance is created or stopped we re-generate the according httpd config file and do graceful reload. Regards, Christoph This Email was scanned by Sophos Anti Virus