Navigation

    Netgate Discussion Forum
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    Load balancing webservers sticky connections

    Routing and Multi WAN
    2
    2
    1532
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      wizard last edited by

      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.

      Thanks

      1 Reply Last reply Reply Quote 0
      • B
        benze last edited by

        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.

        Thanks,

        Eric

        1 Reply Last reply Reply Quote 0
        • First post
          Last post