Wednesday, 11 February 2015


                 

                     JBOSS EAP 6.1 CLUSTERING WITH as STANDALONE SERVER



  1.   Create 2 Folder myserver1 and myserver2. In that, Install JBOSS on  myserver1 and myserver2 respectively.

 .     2.  Create 2 Standalone server and start the server.

 3. Start the Standalone server in the following way:-

    a) standalone -c standalone-ha.xml -Djboss.socket.binding.port-offset=100 -Djboss.node.name=nodeA

     b) standalone -c standalone-ha.xml -Djboss.socket.binding.port-offset=200 -Djboss.node.name=nodeB
  
 4.  It starts automatically by url:-

     http://localhost:8180 (nodeA) and http://localhost:8280 (nodeB) .

5.  Welcome page port number were 8180 and 8280 as well as Administration console port number were 10090 and 10190 respectively.


6. Install Mod_Cluster,Then, go to the path “D:\httpd-2.2\bin” and run “install.conf”



7.     You can see the files exists in  “D:\httpd-2.2\conf”

8.     Start “httpd.exea -k start”. Then, you can see screen like "IT WORKS"

9.     Create “workers.properties” file in “D:\httpd-2.2\conf” with 

          worker.list=loadbalancer,jkstatus

          worker.node1.port=8109
          worker.node1.host=localhost
          worker.node1.type=ajp13

          worker.node2.port=8209
          worker.node2.host=localhost
          worker.node2.type=ajp13

          worker.loadbalancer.type=lb

          worker.loadbalancer.balance_workers=node1,node2

          worker.loadbalancer.sticky_session=True

          worker.loadbalancer.max_reply_timeouts=5

          worker.jkstatus.type=status


10.    Create “mod_jk.conf” file in “D:\httpd-2.2\conf” with

       LoadModule jk_module modules/mod_jk.so
       JkWorkersFile conf/workers.properties
       JkWatchdogInterval 60
       JkLogFile logs/mod_jk.log
       JkLogLevel info
       JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
       JkOptions +ForwardKeySize -ForwardDirectories
       JkMount /* loadbalancer


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


11. Add mod_jk.conf file path in “httpd.conf” as
        “Include conf/mod_jk.conf” 

12. Just add “AJP/1.3” protocol in both standalone server of JBOSS application server myserver1 and myserver2.

13. After That restart entire JBOSS and Mod_Cluster 

14. When you starts a “httpd –k start”, Instead of getting Welcome screen,You will to get JBOSS welcome screen.

From following the above steps, You can do JBOSS EAP 6.1 Standalone clustering with Mod-Cluster.

    
                                                         Thank  You

  



   



No comments:

Post a Comment