Setting of LoadBalancer for Glassfish using SJSWS
Let us setup the loadbalancer for our Glassfish Cluster. Setting uploadbalance is a bit of a tricky job. If any one specific thing ismissed out - you will not get your desired resultshttp://www.muhammedshakir.com/igoogle-theme/images/emoticons/sad.gifNote: You can download one single zip containing all the zips from here Download
Firstand foremost, you will have to install the loadbalancer plugin in yourappserver. Unzip and copy the contents of lbpluginappserver.zip inappserver/lib/lbplugin folder such that the files/folders in zip aredroped on lbplugin folder.
Let us start by installed the Sun Java System Web Server 7.0. Now execute the steps mentioned below
[*]Copymagnus.conf file in <config-store>/<server-instance>/config(You will find config-store in web-server-install/admin-server)
[*]Copy obj.conf file in the <config-store>/<server-instance>/config
[*]Exportloadblancer.xml and copy in<config-store>/<server-instance>/config (You can exportthis from APPSERVER >> Admin Console >> Http Load Balancers>> New >> Set the config and save. Then click on Export taband get the loadbalancer file. Rename the file to loadbalancer.xmlbefore using it)
[*]Unzip dts.zip and copy files in <config-store>/<server-instance>/config
[*]Now add the following to the path environmental variable
[*]c:\sun\appserver\lib
[*]c:\sun\appserver\lib\lbplugin\lib
[*]C:\Program Files\Sun\WebServer7\lib\lbplugin\bin
[*]Unzip and copy the contents of plugins.zip in c:\program files\sun\webserver7\plugins
[*]Unzip webserverlbplugins.zip and copy unzipped files in C:\Program Files\Sun\WebServer7\lib\lbplugin
[*]Restart your Sun Java System Web Server
[*]Go to Admin Console of SJSWS http://localhost:8989
[*]Select>> Nodes >> Administration Server (from list) >>Instances >> Click on Configuration Name which is second columnin the list. Right top corner will show you option to deploy config.Select that and deploy config.
[*]Again Restart your SJSWS andalso the restart / start the instance. If everything was perfect, yourInstance will start successfully.
Check yourloadbalancer by hitting the web application request on port (81) ofyour SJSWS - like http://loadbalancernode:81/clusterjsp. The requestwill be forwarded to any one of the instance configured inloadbalancer.xml. You can optionally check c:\program files\sun\webserver7\<your-instance>\logs\ > access and error logs.You can view the same from Admin Console of the Web Server. Check it out
Congratulatoins - You have setted up the Load Balancer
页:
[1]