users@glassfish.java.net

Re: setup clustering feature

From: Nazrul Islam <Nazrul.Islam_at_Sun.COM>
Date: Fri, 29 Sep 2006 10:09:08 -0700

carla mott wrote:

>
> What documentation do we have on setting up and using clustering in
> GlassFish?

People may find part 1 of the EE Quick Start guide useful.
   http://docs.sun.com/app/docs/doc/819-2553/6n4r7tn22?a=view
This talks about how to start the domain, create a cluster and deploy an
application. This does not seem to talk about how to create a
node-agent. To create a node agent, please see
http://docs.sun.com/app/docs/doc/819-2558/6n4rcm9ub?a=view#indexterm-83
[Look for the usage example at the end]

I don't typically setup the loadbalancer at the beginning. Here are the
high level sequence of steps I use to create a cluster:

    * Install GlassFish v2 - See
      https://glassfish.dev.java.net/public/downloadsindex.html
    * Start domain - See
      http://docs.sun.com/app/docs/doc/819-2558/6n4rcma3m?a=view#indexterm-362
    * Create node-agent - See
      http://docs.sun.com/app/docs/doc/819-2558/6n4rcm9ub?a=view#indexterm-83
      (use --port=4848)
    * Start node-agent - See
      http://docs.sun.com/app/docs/doc/819-2558/6n4rcma3o?a=view#indexterm-366
      (use --startinstances=false)
    * Log on to Admin GUI at https://localhost:4848. Default
      user/password is admin/adminadmin
    * Create cluster using GUI wizard - See
      http://docs.sun.com/app/docs/doc/819-2553/6n4r7tn2a?a=view
    * Start cluster using GUI - See
      http://docs.sun.com/app/docs/doc/819-2553/6n4r7tn2e?a=view

After setting up a cluster in the Application Server tier, if you want
to set up loadbalancer, here are some resources:

    * Blog on how to install LB plugin (without manual steps) -
      http://blogs.sun.com/sv96363/entry/installing_load_balancer_using_aps
    * Article on how to use Sun Secure Application Switch -
      http://developers.sun.com/prodtech/appserver/reference/techart/load-balancing.html
    * Article on how to use F5 -
      http://www.sun.com/bigadmin/features/articles/configure_big_ip.html
    * Blog on using mod_jk -
      http://weblogs.java.net/blog/jfarcand/archive/2006/03/running_glassfi_1.html
    * GlassFish LB Admin Page -
      https://glassfish.dev.java.net/javaee5/lb-admin/

Hope this helps.

BTW: We should write a quick start guide for v2. Someone has an AI. :-)
See http://www.glassfishwiki.org/gfwiki/Wiki.jsp?page=UELBAdminMinutes

-- 
Nazrul Islam   -   (408) 276-6468   -   Sun Microsystems, Inc.