6 Replies Latest reply on Feb 26, 2012 8:08 AM by johanvermeij

    mod_cluster 1.2.Final + AS 7.1 Final -problem ?

    black_dev

      Hi,

      I have some problems with work with mod_cluster.

       

      1) When I started jboss x2 and use application replication_test was ok.

      2) When I using apps and click DISABLE application in mod_cluster status page, using apps not ended... ( anything in jboss log )

      3) When I re-using  ( create new sessions ) - application is not found.

      4) When I click ENABLE after a disable applications not started/not served by mod_cluster.

      5) When I killed jboss applications not switch to next jboss ( I think this is problem with stickly sessions to set false - not probe yet )

      6) How to configure statistics for: Load: 1 - I have allways value 1 - could you give step by step.

      7) on "/replication-test, Status: ENABLED Request: 0 Disable" in pool Request:0 I have always value 0, why ? if I used this apps on this jboss ?

       

      pls help me with this..problems...

       

       

       

      My configurations:

       

      Machine Box 1:

      2x AS 7.1Final on diferent IP.

      ( x.x.192.3 and x.x.192.4 )

      Started in standalone-ha mode.

       

      Machine Box 2:

      Server version: Apache/2.2.15 (Unix) with modcluster 1.2.0 Final

       

      Block/not work: multicast beetween box1 and box2 ( jgroups test not work ) meybe this is a problem with refresh statistics on status page ?? )

       

      Configuration:

       

      LoadModule slotmem_module modules/mod_slotmem.so
      LoadModule manager_module modules/mod_manager.so
      LoadModule proxy_cluster_module modules/mod_proxy_cluster.so
      LoadModule advertise_module modules/mod_advertise.so

      <VirtualHost 172.17.126.1:80>

              <Directory />
                      Order deny,allow
                      Allow from all
              </Directory>

              KeepAliveTimeout 60
              MaxKeepAliveRequests 0

             AdvertiseFrequency 5

             <Location /mod_cluster-manager>
                 SetHandler mod_cluster-manager

                 Order deny,allow
                 Deny from all
                 Allow from all
             </Location>

        ErrorLog logs/cluster-error.log
        CustomLog logs/cluster-access.log combined
        LogLevel debug

        EnableMCPMReceive
        AllowDisplay on

      </VirtualHost>

       

       

      Jboss to modcluster is in AJP mode.

       

      mod_cluster status page:

       

       

      mod_cluster/1.2.0.Final

      start of "httpd.conf" configuration

      mod_proxy_cluster.c: OK

      mod_sharedmem.c: OK

      Protocol supported: http AJP

      mod_advertise.c: OK

      Server: apache-cluster

      Server: apache-cluster VirtualHost: x.x.126.1:80 Advertising on Group 224.0.1.105 Port 23364 for http://x.x.126.1:80 every 5 seconds

      end of "httpd.conf" configuration

       

      Auto Refresh show DUMP output show INFO output 

      Node ca923d2f-614f-3ec1-ab39-b7300c8d727e (ajp://x.x.192.3:8009):

      Enable Contexts Disable Contexts

      Balancer: mycluster,LBGroup: ,Flushpackets: Off,Flushwait: 10000,Ping: 10000000,Smax: 1,Ttl: 60000000,Status: OK,Elected: 74,Read: 16567,Transferred: 0,Connected: 0,Load: 1 

      Virtual Host 1:

      Contexts:

      /, Status: ENABLED Request: 0 Disable  /replication-test, Status: ENABLED Request: 0 Disable  
      /replication-test, Status: ENABLED Request: 0 Disable

      Aliases:

      default-host  localhost  example.com  

      Node 23949d3c-889c-34e2-839e-eef510714a63 (ajp://x.x.192.4:8009):

      Enable Contexts Disable Contexts

      Balancer: mycluster,LBGroup: ,Flushpackets: Off,Flushwait: 10000,Ping: 10000000,Smax: 1,Ttl: 60000000,Status: OK,Elected: 0,Read: 0,Transferred: 0,Connected: 0,Load: 1 

      Virtual Host 1:

      Contexts:

      /, Status: ENABLED Request: 0 Disable  

      Aliases:

      default-host  localhost  example.com  
        • 1. Re: mod_cluster 1.2.Final + AS 7.1 Final -problem ?
          jfclere

          you have to set sticky-session-force="false" in your standalone-ha.xml.

          1 of 1 people found this helpful
          • 2. Re: mod_cluster 1.2.Final + AS 7.1 Final -problem ?
            black_dev

            Hi,

            Ok this is resolved for my point 5, and any helpful for other points ?

            • 3. Re: mod_cluster 1.2.Final + AS 7.1 Final -problem ?
              jfclere

              What points? You need to retest with sticky-session-force="false".

              • 4. Re: mod_cluster 1.2.Final + AS 7.1 Final -problem ?
                black_dev

                Problem with this:

                6) How to configure statistics for: Load: 1 - I have allways value 1 - could you give step by step.

                7) on "/replication-test, Status: ENABLED Request: 0 Disable" in pool Request:0 I have always value 0, why ? if I used this apps on this jboss ?

                • 5. Re: mod_cluster 1.2.Final + AS 7.1 Final -problem ?
                  rhusar

                  6) How to configure statistics for: Load: 1 - I have allways value 1 - could you give step by step.

                   

                  For instance to include CPU and sessions:

                   

                  <subsystem xmlns="urn:jboss:domain:modcluster:1.0">

                    <mod-cluster-config advertise-socket="mod_cluster">

                      <dynamic-load-provider history="10" decay="2">

                        <load-metric type="cpu" weight="2" capacity="1"/>

                        <load-metric type="sessions" weight="1" capacity="512"/>

                      </dynamic-load-provider>

                    </mod-cluster-config>

                  </subsystem>

                  • 6. Re: mod_cluster 1.2.Final + AS 7.1 Final -problem ?
                    johanvermeij

                    If you can, please point me to a URL that explains domain:modcluster

                     

                    I was using load balancing using httpd, tomcat and JBoss 4 before and that was very easy to set up using mod_jk, workers.properties, uriworkermap.properties etc

                     

                    I am trying to do the same with JBoss AS 7.1 and I am completely lost, I have been trying all kinds of things for over a week now

                     

                    With JBoss 4 workers.properties specified what to look for in a URL and if that was found the transaction was forwarded to port 8009 (or whatever was specified in uriworkermap.properties).

                    uriworkermap.properties also contained the load balancing factor etc.

                     

                    I have a master and slave working on 2 machines using domain.sh but I can't send anything to the cluster.

                    I want to send transactions from a client system which is written in c sharp.

                    How do I do that ?

                     

                    btw, with JBoss 7.1 AS, do I have to start tomcat (/etc/init.d/service tomcat start) ?

                     

                    As you can see, I am very vry lost.