• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with Resin Load Balancing (Clustering)

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to use load balancing(Clustering) in Resin 2.1.6.. with resing itself as a Web Server... and load balancer... i am trying desperately to work it out for the past 4 days.. but am not able to do it.. actually i just couldnt understand how to make it work.. basically the process.. I have made a serialized counter servlet. I have tried to run 2 instances on the same machine as well as on a network computer.. but it dint help.. i would be very greatfull if some body could help me out with the process.. i need it desperately.. thank you.. Milton
 
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Milton,
Please do not double post and please do not hijack someone else's thread with an unrelated question of your own. I have deleted your other post and left this one open.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a load banancing solution with 2 apache servers in front of 2 Resin servers (host1 ort1 and host2 ort2)
In the resin.conf file, which must be exactly the same on all 4 servers (2 Apaches, 2 Resin), you must have 2 lines
<srun id='a' host='host1' port='port1'>
<srun id='b' host='host2' port='port2'>
On host1, you must start Resin with
httpd.sh -server 'a' ...
On host2, you must start Resin with
httpd.sh -server 'b'
That's all you have to do. The 2 Apache retrieve the right Resin server which initiate the session, with a cookie.
I didn't implement session attributes savings (via TCP ring or via JDBC).
 
reply
    Bookmark Topic Watch Topic
  • New Topic