Date: Fri, 06 Nov 2009 17:49:56 +0100 From: Miroslav Lachman <000.fbsd@quip.cz> To: Kevin <k@kevinkevin.com> Cc: freebsd-pf@freebsd.org Subject: Re: Question about round robin Message-ID: <4AF453B4.8050909@quip.cz> In-Reply-To: <00a201ca5ef6$7a4f3ee0$6eedbca0$@com> References: <00a201ca5ef6$7a4f3ee0$6eedbca0$@com>
next in thread | previous in thread | raw e-mail | index | archive | help
Kevin wrote: > 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. "The round-robin method will accept multiple individual addresses using a list or table." Tables are easily maintained by external applications / scripts - you can update theme without reloading of the rules. So you can write some little daemon pinging all your hosts and drop IP of unresponsive host from the table. Or you can write some complex system to monitor hosts resources (CPU load, free memory, disk IO, etc.) and maintain content of the table by this criteria so you can get balancing based on real server load. Miroslav Lachman
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4AF453B4.8050909>