3 Replies Latest reply on Jan 14, 2013 10:54 PM by anuj_jha Branched from an earlier discussion.

    Re: Session replication using AS7 clustering, S3 PING, Amazon EC2

    anuj_jha

      Hi H R,

      I am very new to use jboss as 7, and i wanted to do jboss 7 clustering in standalone-ha mode and also wanted failover & loadbalancing through mod_cluster & httpd config.

      As it seems here you have already succeeded in doing so, could you please provide me step by step or any link where i could fine the complete steps to achieve my task.
      my task includes:

      1) clustering jboss as 7 for my enterprise application with mod cluster

      2) load balancing  through httpd config

      3) sticky session maintaining

      4) session replication and fail over

       

      waiting for replies

        • 1. Re: Session replication using AS7 clustering, S3 PING, Amazon EC2
          pferraro

          To setup httpd with mod_cluster, refer to the mod_cluster docs:

          http://docs.jboss.org/mod_cluster/1.2.0/html/

           

          I encourage you to also configure httpd w/mod_advertise.  This way, you do not need to configure anything within AS7 itself.  When using mod_advertise, your httpd instance will announce itself to your AS7 nodes.

           

          To enable session replication, simply add <distributable/> to your web.xml.  Once your application is deployed, the AS will automatically register your application with mod_cluster, and httpd will start directing traffic to your node.  To customize load balancing behavior, refer again to the mod_cluster docs.

          • 2. Re: Session replication using AS7 clustering, S3 PING, Amazon EC2
            pferraro

            Oops - I didn't notice your post title, indicating that you're running on EC2.

             

            In that case, you'll need to make the following modifications:

            1. You cannot use mod_advertise, since multicast will not work.  Remove the mod_advertise module entirely, and set advertise="false" within the mod_cluster subsystem in AS7.

            2. Define the location of your httpd instance using the "proxy-list" attribute in the mod_cluster subsystem.

            3. Change the default-stack of the jgroups subsystem to "tcp" instead of "udp".

            4. Replace MPING with S3_PING within the "tcp" stack.

            • 3. Re: Session replication using AS7 clustering, S3 PING, Amazon EC2
              anuj_jha

              Thanks alot,
              Mod_cluster solves my problem