tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: Apache Tomcat 8.0.22 server on different machines
Date Sat, 20 Jun 2015 11:34:56 GMT
André Warnier wrote:
> Christopher Schultz wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA256
>>
>> Prarthana,
>>
>> On 6/19/15 5:08 AM, Prarthana Agwania wrote:
>>> We have a requirement wherein we would like to know the urls of
>>> each of the tomcat instance running on different servers. The
>>> scenario is somewhat like,
>>>
>>> 1. There are multiple servers running on different machines say 
>>> Server1, Server2, Server3
>>>
>>> 2. There are multiple Tomcat instances running on each of the
>>> machines as independent instances say, Server1--> Tomcat1,
>>> Tomcat2, Tomcat3.....Server2--> Tomcat5, Tomcat6, 
>>> Tomcat7.........Server3-->Tomcat8, Tomcat9, Tomcat10 P.S. - Tomcat
>>> servers are not clustered
>>>
>>> Now, is there a way that an external user who does not have access
>>> to the servers can know the urls for each Tomcat running under
>>> different servers? Or, is it possible that Server1 or Tomcat1 can
>>> act as the master and have the information about other
>>> servers(remember they are not clustered)?Can this information be
>>> made available under one hood and used further to deploy wars or
>>> modify any configuration etc?
>>
>> This is something you will have to build yourself. You may be able to
>> build something using components Tomcat provides (e.g. Tribes), but
>> there is nothing like this that exists already.
>>
>> Usually, people want to mask the size of their cluster from external
>> users. What's your use case here?
>>
> 
> I think that the OP just explained it above, at the end of his message.
> 
> Prarthana, you may want to have a look at something like Bonjour 
> (https://en.wikipedia.org/wiki/Bonjour_%28software%29).
> 
> Each Tomcat would have to register with the service when it starts up, 
> and de-register when it stops.  And then some client could find out 
> about the available Tomcats.
> Looks like something for a LifeCycleListener..
> 

Add-on : as a matter of fact, someone seems to have a similar idea :
http://www.floop.org.uk/projects/tomcat-registry
Not much there yet, but it may be worth talking to them.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message