RE: Apache clustering w/ load balancing and failover
Shri Shrikumar wrote:
> On Wed, 2003-09-17 at 18:46, Markus Oswald wrote:
> > On Wed, 2003-09-17 at 15:00, Shri Shrikumar wrote:
> >
> > > Looking at the documentation for LVS, it mentions that it
> needs two
> > > nodes, a primary node and a backup node which then feeds
> into n real
> > > servers.
> >
> > Actually I never saw this mentioned in the documentation - I haven't
> > looked at it for quite some time now, tough.
> >
> > LVS definitely works with ONE machine which acts as the
> loadbalancer.
> > You can use a second machine for failover if you need the
> redundancy,
> > but as far as I know, LVS can't handle this by itself so
> you would have
> > to use keepalived or heartbeat for that.
> Hi,
>
> Thanks for the response. Let me just clarify. If I have two
> boxes, I can
> configure both of them to be webservers and one of them to be the lvs
> node. I dont need a third machine to be a dedicated node. Is this
> correct ?
>
Ascii art:
internet
+-----------------------+
+---------------+ + - - - - - - - +
| LVS Director | | Director 2 |
+---------------+ +- - - - - - - -+
| |
-------| SWITCH | -----+
| | |
+---------------+ | +---------------+
| | |
+---------------+ +---------------+ + - - - - - - - +
| Webserver | | Webserver | | Webserver |
+---------------+ +---------------+ +- - - - - - - -+
You need at least 1 LVS Director (balancer) and two servers to start.
The second LVS director and additional server are optional.
Thomas
Reply to: