3 Replies Latest reply on May 8, 2009 11:11 AM by Jean-Frederic Clere

    IP based sticky session

    Ben Schofield Novice

      I have an application that uses "stateful" web services. This condition requires multiple web service calls to hit the same JBoss instance due to client state being stored on the server. Unfortunately the web service client ignores the JSessionID so it is not passed it along in subsequent requests.

      My question is: Is it possible to configure mod_cluster to use the client ip as a means to maintain session affinity? This effectively mimics a hardware load balancing solution at the http layer.

        • 1. Re: IP based sticky session
          Jean-Frederic Clere Master

          client ip to maintain session affinity is to possible with mod_cluster, nor with standard mod_proxy balancers.
          Additionally what will you do in case 2 client applications run on the same box?

          • 2. Re: IP based sticky session
            Ben Schofield Novice

            Two client applications running on the same box would be routed to the same JBoss instance. Information in the web service payload distinguishes the unique clients and the server returns the appropriate data.

            Having ip based sticky session in the http tier would add flexibility to a JBoss environment and solve this particular problem for IT shops which don't have control over the the architecture of third party software.

            Would it be appropriate to request this feature for a future version of mod_cluster?

            • 3. Re: IP based sticky session
              Jean-Frederic Clere Master

              I think you miss something (or I miss something) HTTP doesn't define an header for the client IP, so the only the thing that the httpd (mod_cluster) in the socket address which could be a proxy. So what you want to do is not going to work in many cases.

              I don't think the client ip could/will be use to handle the session affinity,