From owner-freebsd-pf@FreeBSD.ORG Fri Nov 6 16:02:03 2009 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 74FA71065676 for ; Fri, 6 Nov 2009 16:02:03 +0000 (UTC) (envelope-from k@kevinkevin.com) Received: from mail-yx0-f171.google.com (mail-yx0-f171.google.com [209.85.210.171]) by mx1.freebsd.org (Postfix) with ESMTP id 340ED8FC0C for ; Fri, 6 Nov 2009 16:02:02 +0000 (UTC) Received: by yxe1 with SMTP id 1so1067633yxe.3 for ; Fri, 06 Nov 2009 08:02:02 -0800 (PST) Received: by 10.101.72.11 with SMTP id z11mr4402340ank.189.1257523311737; Fri, 06 Nov 2009 08:01:51 -0800 (PST) Received: from kevin (not.enough.unixsluts.com [76.10.166.187]) by mx.google.com with ESMTPS id 22sm64784ywh.30.2009.11.06.08.01.49 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 06 Nov 2009 08:01:50 -0800 (PST) From: "Kevin" To: "'no name'" References: <00a201ca5ef6$7a4f3ee0$6eedbca0$@com> <-3431979369893017739@unknownmsgid> In-Reply-To: <-3431979369893017739@unknownmsgid> Date: Fri, 6 Nov 2009 11:01:24 -0500 Message-ID: <00a501ca5efa$65640890$302c19b0$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 thread-index: Acpe+RjVEqt5YNuvQjyKKFi2iz7xegAAJZrA Content-Language: en-us Cc: freebsd-pf@freebsd.org Subject: RE: Question about round robin X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Nov 2009 16:02:03 -0000 > -----Original Message----- > From: no name [mailto:britneyfreek@googlemail.com] > Sent: Friday, November 06, 2009 10:52 AM > To: Kevin > Cc: freebsd-pf@freebsd.org > Subject: Re: Question about round robin >=20 > i am not quite sure but i assume pf does no availabililtty checks as > responses from systems behind an address might take too long... >=20 > - regards >=20 > Am 06.11.2009 um 16:34 schrieb "Kevin" : >=20 > > Hello, > > > > > > > > I am curious about simple round robin load balancing w/ PF. I see > > how simple > > it is to setup within the FreeBSD configuration file, but have a > > fairly > > simple question. > > > > Does PF detect if one of the addresses in the "pool" is not > > responsive? Or > > does it just blindly send traffic to all the addresses in the pool > > regardless? Is there some sort of heartbeat functionality or status > > check > > perhaps? Has anyone accomplished something along these lines? Load > > balancing > > would be pretty useless if I couldn't take a server out of the pool > > without > > having to re-configure PF every time. > > > > > > Any comments are appreciated! > > > > > > Thanks, > > > > > > Kevin > > www.stardothosting.com I've searched the freebsd-* mailing list as well as gone through the = handbook regarding load balancing w/ PF = (http://www.openbsd.org/faq/pf/pools.html) and found no mention of any = kind of inherent availability checks or anything along those lines. Have = I missed something?=20 Seems that all the options (bitmask, random, source-hash, round-robin) = provide for different ways to distribute traffic to the servers, but if = a server dies or becomes unresponsive it would compromise the pool in = itself. Most other load balancing solutions such as LVS can be = incorporated with keepalived to allow for status checking. I would love to know anyone who may have implemented a solution like = that with PF + round robin. Thanks, Kevin