OK, I have find out how to do this
You have to edit a loadbalance.xml, like

-=============
<load-balancer host="[ALL]" port="80" selection-type="random" use-ip="false" 
use-session-id="true">
<island>
        <backend-server host="localhost" port="8080"/>
        
</island>
<island>
        <backend-server host="localhost" port="8081"/>
</island>

</load-balancer> 
============
then run clusters and loadbalancer( by java -jar loadbalancer.jar)

but I found the follwing bugs and weakness

1. -config parameter not work,  loadbalancer will always use config/loadbalance.xml
    and not the default config file config/load-balance.xml it says.
2 use-ip can't be "true" , I don't know why , just can't 
3. if island is down, then loadbalancer will remove it , but loadbalancer will never 
know it has recover, and the island will remove forever

the report was tested on Orion 1.3.1 with Win2k

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]]On Behalf Of Karl Avedal
> Sent: Wednesday, September 06, 2000 3:29 PM
> To: Orion-Interest
> Subject: Re: Loadbalancer.jar HOWTO?
> 
> 
> Hello,
> 
> I'm currently preparing this. The whole clustering document was delayed
> to include the new load balancer but it will be available shortly.
> 
> Regards,
> Karl Avedal
> 
> Jason von Nieda wrote:
> 
> > I would also love to know at least SOMETHING about this. It sounds
> > like somethingI could really use but I have been trying to get it do
> > something for a few days to noavail.
> >
> >      ----- Original Message -----
> >      From: Jen Hsien Huang
> >      To: Orion-Interest
> >      Sent: Tuesday, September 05, 2000 10:40 PM
> >      Subject: Loadbalancer.jar HOWTO?
> >       How to use the loadbalancer.jar , I can't find any document
> >      about it.Can anybody explain how to use it in
> >      short?Regards.,
> >      Jen Hsien Huang
> >
> 
> 
> 

Reply via email to