From owner-freebsd-net Thu Mar 18 18:50:29 1999 Delivered-To: freebsd-net@freebsd.org Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (Postfix) with ESMTP id 4906814F83 for ; Thu, 18 Mar 1999 18:50:23 -0800 (PST) (envelope-from julian@whistle.com) Received: from current1.whistle.com (current1.whistle.com [207.76.205.22]) by alpo.whistle.com (8.9.1a/8.9.1) with SMTP id SAA30410; Thu, 18 Mar 1999 18:46:33 -0800 (PST) Message-ID: <36F1BA88.2F1CF0FB@whistle.com> Date: Thu, 18 Mar 1999 18:46:32 -0800 From: Julian Elischer Organization: Whistle Communications X-Mailer: Mozilla 3.0Gold (X11; I; FreeBSD 2.2.8-RELEASE i386) MIME-Version: 1.0 To: Christopher Sedore Cc: "'freebsd-net@freebsd.org'" Subject: Re: clustering/load balancing References: <262C3DA9BE0CD211971700A0C9B413A1CBD6@exchange.maxwell.syr.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Christopher Sedore wrote: > > OK, so I've worked some more on the IP clustering/load balancing stuff. > I've hacked together a clustering daemon, and reworked the way that the > kernel stuff is handled (it uses a flag and ipfw rules to do its thing). > rather cool but how about the following setup running with no mods at all.. +-------[Machine B] | [internet]-----[ Machine A]-----+-------[Machine C] | +-------[Machine D] Machine A's internet port is on ed0 firewall rules: on Machine A: ipfw add 100 fwd B tcp from 0.1.0.0:0.3.0.0 to A 80 in recv ed0 ipfw add 100 fwd C tcp from 0.2.0.0:0.3.0.0 to A 80 in recv ed0 ipfw add 100 fwd D tcp from 0.3.0.0:0.3.0.0 to A 80 in recv ed0 on machine B: ipfw add 100 fwd localhost tcp from any to A 80 in recv ed0 on machine C: ipfw add 100 fwd localhost tcp from any to A 80 in recv ed0 on machine D: ipfw add 100 fwd localhost tcp from any to A 80 in recv ed0 This shared the load among all 4 machines A, B, C, and D depending on the two bottom bits of the 2nd byte of the source address. I haven't tried this but I think it SHOULD work.. (of course you could use a 5th machine as the load sharer) what do you think? julian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message