2 Replies Latest reply on Feb 17, 2011 7:36 AM by leaqui

    Custom load balancing

    leaqui

      Hi, I need to do load balancing following some specific criterion like the logged user or the invoked service.

      I'm thinking about sending this information in some HTTP header and depending on it the httpd server will derive the requests to the corresponding application server.

       

      Can this be done by configuring mod_cluster, mod_proxy_cluster or other httpd modules? Or I will need to do some modifications or adds to these modules?

       

      Where can I find information about this?

      Thanks in advance

       

      Leaqui

        • 1. Custom load balancing
          jfclere

          Usually the cookie header jsessionid is enough for that.

          If you think of using users (like in basic authentication) the application requests it because of constraint on a page the next request with user information must go to that node otherwise it won't work.

          you can use mod_rewrite and mod_proxy to route requests depending on a value of header but not mod_jk or mod_cluster.

          1 of 1 people found this helpful
          • 2. Custom load balancing
            leaqui

            Thanks Jean, we will have the session replicated in all nodes (JBoss AS) so we won´t use sticky session.

            I will look at mod_rewrite and mod_proxy.

            Thanks!