Load balancing webservers sticky connections

  • Hi,

    i am trying to load balance http connections to two web servers running a tomcat application. For this to work correctly i need to use sticky connections because of the client session. The tomcat application is a music portal and the web server has a list of which tracks the client has listened to. So if the client connects to the other web server during a session he will listen to certain tracks twice. I set the Firewall Optimization Options to conservative and i ticked the box for sticky connections. I also tried to change the state timeout under advance in the firewall rule for http. But nothing seems to help do the sticky connections work for incoming load balanced requests? At the moment i am using pfsense 1.2.2.


  • Hi,

    I'm actually facing the same situation.  I didn't really try too hard to get pfSense LB working with sticky connections properly, so what I ended up doing was using the session clustering of tomcat instead.  Works quite well actually.  The biggest catch is that all you session information must be serializable.  The added benefit of clustered tomcats is that if you need to restart one tomcat, you don't lose any of the sessions.

    I know this doesn't answer your question, but thought it might give you another avenue if you can't get hte LB working as you wish.

    Good Luck.  Let me know if you end up getting it working.



Log in to reply