deployment for load balancing
Hi,
I am deploying my application to our iAS cluster.
I setup the cluster successfully before and use the cluster-jsp sample
programs to test the load balance and it works well.
I deployed our application to the iAS cluster but seems that it cannot
perform load balancing.
we are using round robin load balancing method and i found one thing.
When I click on the servlets on the iAS admin's application and see the
servlet component properties, there are both server's name for the servlets
of cluster-jsp where our application only got one.
Can anybody tell me the use of this? and that how to set it OTHER THAN doing
through console? that's do it in DD.
by the way, need to tell that I followed the procedures of the cluster-jsp
samples and do the same thing to our application.(setting the domain in the
DD)
Can u give me some advice?
Cheers,
Victor
Hi Victor,
It will store the information of all the servers participation in a cluster
provided the LDAP server you are using for these iAS servers is same and the
GUID is same (if you are not creating war/ear modules from raw class files
during deployment on each iAS servers, and deploying same module created once)
as it stores this information with a particular GUID in LDAP server for a
application/component.
Also you can deploy your application on multiple servers from the same
deployment tool console, just register all the server of a cluster, press SHIFT
key and select all the servers and deploy the application.
You can do a very simple experiment to see this,
- just go to <ias_root_dir>/ias/ias-samples/fortune/src
- modify the ias-web.xml file
- change GUID (you can get a new GUID using kguidgen in ias/bin)
- change <impl>lite</impl> to <impl>distributed</impl>
- change <domain></domain> to <domain>your.domain.name</domain>
- change <oath></path> to <oath>/</path>
- append <ias_root_dir>/ias/bin to PATH
- run build,
- and redeploy the
<ias_root_dir>/ias/ias-samples/fortune/assemble/ear/fortune.ear file on all the
iAS servers in a cluster (check override modules button while redeployment),
- restart the web servers, and iAS cluster (as plugin has the old values in it's
table for fortune application).
Now you should see the entry of all the servers of the cluster registered in new
fortune through admin tool.
You can see the entries in the LDAP server also,
- run startconsole from <ias_root_dir>/
- open Netscape Console for the LDAP Server and administer the Directory Server,
by clicking on open,
- click on the Directory tab,
- go to o=NetscapeRoot/cn=iAScluster/.../Application Server/ClassDef/
- look for the GUID you have entered in ias-web.xml file, (you can see all
entries related to this application)
- see the entries under cn=GDS node, you will see all the registered servers for
this application.
I hope this will help, please feel free to mail me if you still face problems.
Sanjeev,
Developer Support Group iAS-India
Victor wrote:
> Hi,
>
> I am deploying my application to our iAS cluster.
> I setup the cluster successfully before and use the cluster-jsp sample
> programs to test the load balance and it works well.
>
> I deployed our application to the iAS cluster but seems that it cannot
> perform load balancing.
> we are using round robin load balancing method and i found one thing.
> When I click on the servlets on the iAS admin's application and see the
> servlet component properties, there are both server's name for the servlets
> of cluster-jsp where our application only got one.
> Can anybody tell me the use of this? and that how to set it OTHER THAN doing
> through console? that's do it in DD.
> by the way, need to tell that I followed the procedures of the cluster-jsp
> samples and do the same thing to our application.(setting the domain in the
> DD)
>
> Can u give me some advice?
>
> Cheers,
> Victor
--
-
When you smile, you know you're alive, It's what defines me.
-