From owner-freebsd-cluster@FreeBSD.ORG Wed Mar 26 23:17:18 2008 Return-Path: Delivered-To: freebsd-cluster@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A6B501065676 for ; Wed, 26 Mar 2008 23:17:18 +0000 (UTC) (envelope-from elliott@c7.ca) Received: from mail.c7.ca (mail.c7.ca [66.207.198.232]) by mx1.freebsd.org (Postfix) with ESMTP id 5363F8FC32 for ; Wed, 26 Mar 2008 23:17:18 +0000 (UTC) (envelope-from elliott@c7.ca) Received: (qmail 55118 invoked by uid 89); 26 Mar 2008 22:50:36 -0000 Received: by simscan 1.2.0 ppid: 55104, pid: 55115, t: 0.1474s scanners: clamav: 0.90.1/m:43 Received: from unknown (HELO ?66.207.210.10?) (elliott@c7.ca@66.207.210.10) by 10.1.1.32 with ESMTPA; 26 Mar 2008 22:50:36 -0000 From: Elliott Perrin To: Nathan Biondi In-Reply-To: References: Content-Type: text/plain Date: Wed, 26 Mar 2008 18:48:34 -0400 Message-Id: <1206571714.3820.129.camel@kensho.c7.ca> Mime-Version: 1.0 X-Mailer: Evolution 2.12.2 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-cluster@freebsd.org Subject: Re: haproxy and heartbeat X-BeenThere: freebsd-cluster@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: elliott@c7.ca List-Id: Clustering FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Mar 2008 23:17:18 -0000 On Wed, 2008-03-26 at 14:23 -0700, Nathan Biondi wrote: > Does anyone have any experience with setting up Haproxy and Heartbeat on > FreeBSD for a mysql and apache cluster? In particular I am confused about a > section of a tutorial I found in which the line "net.ipv4.ip_nonlocal_bind=1" > is to be put into sysctl.conf and then sysctl -p is supposed to be run. > However FreeBSD's sysctl does not have this -p flag available. > > Thanks in advance > Nathan Biondi Hi Nathan, I have a FreeBSD cluster running with 4 apache web servers, 2 DB servers, 2 NFS servers and 2 firewalls out in front All machines run FreeBSD. I built this using CARP as the basis of communications for redundancy / load balancing with a unique configuration that has been running for a couple of years now. This cluster is fully redundant with automatic failovers built in in case of service / host outages. I am not using HAProxy or heartbeat, but I would be able to help you (I have used those packages before) if you can provide some more information about what you are trying to do, current configurations and such. If you would like to communicate privately regarding this feel free to drop me an email. As far as changing that sysctl variable, putting that line into sysctl.conf will cause that value to be set at boot time. If you want to change the current value of that MIB just do sysctl net.ipv4.ip_nonlocal_bind=1 from the command line as root, however I do not see that MIB on any of my 7-STABLE or 6-STABLE machines. Where did it say that you should make that sysctl adjustment, and what version of FreeBSD are you running? Cheers, Elliott Perrin elliott@c7.ca