dev@glassfish.java.net

Re: HA/in-memory replication

From: Larry White <Larry.White_at_Sun.COM>
Date: Fri, 06 Apr 2007 10:53:19 -0700

Hi Ashish:

Sorry I didn't see this thread earlier. It depends what you mean
by "test". For simple confirmation that replication is working,
I often do exactly what you're talking about. Just realize this
is not a full test and won't work if your cluster is on different
machines. And for a real test/demo you do want to include the
load balancer.

So if you create a cluster on a machine, create (e.g.) 2 instances
and deploy an app helloworld to the cluster. Each instance
will have a different http port. Then you can send a request to
one instance like this:
http://<your host>:38080/<your app>

and then later do a crude simulation of failover by
http://<your host>:38081/<your app>

The actual ports may vary of course. You can see them
in the admingui when you click on each instance in the cluster.

hope this helps,
Larry White

Ashish Sahni wrote:

> Hi Folks,
>
> Is there a way to test in-memory replication between two instance of a
> cluster
> on a single machine without setting up the sun-webserver +
> load-balancer ?
> Can another glassfish instance be configured to act as the load
> balancer ?
>
> Thanks
> Ashish
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>