Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configure Jetty cluster to share web Sessions

Tags:

java

jetty

I'm new with Jetty. I'm trying to setup a cluster including 2 Jetty servers with HAProxy as the load balancer. However, the two Jetty servers worked separately without sharing sessions.

I found this document that instructs to use WABI. But it seems the document is deprecated because it used Jetty 6.

I'm using jetty-distribution-8.1.8. How can I configure this?

Thanks for your concern.

like image 512
Blue Smith Avatar asked Dec 18 '12 12:12

Blue Smith


1 Answers

  • database - http://wiki.eclipse.org/Jetty/Feature/Session_Clustering_Using_a_Database
  • mongodb - http://wiki.eclipse.org/Jetty/Tutorial/MongoDB_Session_Clustering

There are some other nosql based ones floating around as well, there is a memcached one on github. My general recommendation would be to go for the database approach initially and once you have the experience with that and understand the nuances look to others if that one doesn't fit the bill.

like image 186
jesse mcconnell Avatar answered Oct 01 '22 22:10

jesse mcconnell