tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Linux Support <ossuppor...@gmail.com>
Subject Re: Adding Tomcat instances dynamically to Apache Load Balancer without restart
Date Thu, 07 Apr 2016 14:45:31 GMT
Doesn't AWS ELB fir to the purpose. May be something similar in your
environment that translates hopefully

On Fri, Apr 8, 2016 at 12:34 AM, Christoph Nenning <
Christoph.Nenning@lex-com.net> wrote:

> > 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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message