Re: Simple setup question
"Andreas Unterkircher" <[email protected]> Tue, 6 Jan 2004 07:48:40 +0100
| Newsgroups | gmane.comp.apache.mod-backhand.general |
|---|---|
| Message-ID | <012b01c3d421$1e9275b0$02bfa8c0@kuecken> |
Mhm. I suppose that the 2 hosts are on the same network, or die multicasts
wont
work... I give them the IPs 1.2.3.4, 1.2.3.5.... in the httpd.conf
<IfModule mod_backhand.c>
UnixSocketDir /some/dir/infilesystem
MulticastStats 1.2.3.4:80 1.2.3.255:4445,1
AcceptStats 1.2.3.4/32
AcceptStats 1.2.3.5/32
BackhandConnectionPools Off
# For http://1.2.3.x/backhand - Statusview
<Location "/backhand/">
SetHandler backhand-handler
</Location>
</IfModule>
Its not neccersary (i think its not possible) told backhand that it only
should remain the port 80. you do this as example with vhosts in
your apache-conf.
like
<virtualhost 1.2.3.4:80>
Backhand byAge
Backhand addSelf
Backhand byLoad 0.2
.........................
.........................
</virtualhost>
on the other host
<virtualhost 1.2.3.5:80>
Backhand byAge
Backhand addSelf
Backhand byLoad 0.2
.........................
.........................
</virtualhost>
Hope this works :)
Andreas
----- Original Message -----
From: "Dayle Smith" <[email protected]>
To: <[email protected]>
Sent: Tuesday, January 06, 2004 12:42 AM
Subject: [m_b_users] Simple setup question
> hello, have a quick question and I'm not following the discussion on
> MulticastStats and its relation to AcceptStats.
>
> Ok, let's say I have:
> server 1 at www.zzz.com on IP address 1.2.3.4
> server 2 at www2.zzz.com on IP address 5.6.7.8
>
>
> What I want to happen is externally everyone still sees 1.2.3.4 as the IP
> (this is the broadcast IP?) for www.zzz.com, but I will load mod_backhand
on
> both servers so that they can share the load of requests for www.zzz.com.
>
> Can you simply list the statements I need in the communication section of
> httpd.conf for each server? That would be most helpful.
>
> I think I figured if you are sitting on the main server, the list of
> AcceptStats entries represents the list of servers you are prepared to
> connect to for load balancing, is this correct? How can I set which one
is
> the "main" server, thanks.
>
>
> To add a monkey wrench... I noticed from some links I found, it's on a
> port-by-port listening basis. Can I set mod_backhand to only share the
load
> on port 80? I want all SSL requests to remain on 1.2.3.4. Now, having
> said that, will the load algorithm take into account that there are some
> "unshared" requests?
>
> Thanks in advance!
> Dayle (Solver)
>
> _________________________________________________________________
> Worried about inbox overload? Get MSN Extra Storage now!
> http://join.msn.com/?PAGE=features/es
>
>
> _______________________________________________
> backhand-users mailing list
> [email protected]
> http://lists.backhand.org/mailman/listinfo/backhand-users
>