• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

Tomcat cluster in 2 different machine 2 pvt IP on same subnet

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have two tomcat instances running in Clustered Environment into 2 servers.

Assume we have test.jsp is there in both Instances.

I want hit one single real IP which will be take service from tomcat1 or tomcat 2.

How can we do that?

any one please help me on this issue. I have already setup the cluster but session is not replicating......also for the above issue how can we done in realtime scenario like i want to hit cluster.test.me then it will be server by node1/node2...how can i set the IP setting...
here is the error am getting from log: Oct 3, 2012 6:24:35 PM org.apache.catalina.ha.session.DeltaManager getAllClusterSessions
INFO: Manager [localhost#/examples]: skipping state transfer. No members active in cluster group.
 
Saloon Keeper
Posts: 23429
159
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To do that you need some sort of proxy server ahead of the Tomcats. The proxy server presents 1 IP address, then routes requests to one or the other of the Tomcats via their private IP addresses.

Proxy servers are available in many forms, both as dedicated hardware units and as software applications for general-purpose server systems.
 
Masudul Haque
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Holloway wrote:To do that you need some sort of proxy server ahead of the Tomcats. The proxy server presents 1 IP address, then routes requests to one or the other of the Tomcats via their private IP addresses.

Proxy servers are available in many forms, both as dedicated hardware units and as software applications for general-purpose server systems.



Thanks.

What about the error am getting from log: Oct 3, 2012 6:24:35 PM org.apache.catalina.ha.session.DeltaManager getAllClusterSessions
INFO: Manager [localhost#/examples]: skipping state transfer. No members active in cluster group.

What is the solution about that.

BR,
Masud
 
Tim Holloway
Saloon Keeper
Posts: 23429
159
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
All of the Tomcat servers in a cluster have to have their own unique port/IP address combination.

Beyond that, your latest question is so distinct from the one you originally asked that you should ask it in its own message thread. Otherwise a lot of people who might know the answer won't see it.
 
Masudul Haque
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Holloway wrote:All of the Tomcat servers in a cluster have to have their own unique port/IP address combination.

Beyond that, your latest question is so distinct from the one you originally asked that you should ask it in its own message thread. Otherwise a lot of people who might know the answer won't see it.



Thanks Tim.

Can you help me the proxy server thing, how can we do that with hit the proxy single IP, then it will take service either from pvt ip1 or pvt ip2??

BR,
Masud
 
Tim Holloway
Saloon Keeper
Posts: 23429
159
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


To do that you need some sort of proxy server ahead of the Tomcats. The proxy server presents 1 IP address, then routes requests to one or the other of the Tomcats via their private IP addresses.



You configure the addresses and ports of the backend Tomcat servers in the proxy server configuration file. You might also set up load-balancing and session-sharing rules here. What goes into the proxy configuration file and where the configuration is stored will depend on what software (or hardware) you decide to use to be the proxy.
 
I will suppress my every urge. But not this shameless plug:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic