From owner-freebsd-pf@FreeBSD.ORG Tue Aug 5 14:14:35 2008 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 C1F73106566B for ; Tue, 5 Aug 2008 14:14:35 +0000 (UTC) (envelope-from swygue@rodhouse.org) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.184]) by mx1.freebsd.org (Postfix) with ESMTP id 5A2098FC0C for ; Tue, 5 Aug 2008 14:14:35 +0000 (UTC) (envelope-from swygue@rodhouse.org) Received: by mu-out-0910.google.com with SMTP id i2so2189665mue.3 for ; Tue, 05 Aug 2008 07:14:33 -0700 (PDT) Received: by 10.103.40.5 with SMTP id s5mr607299muj.133.1217944099123; Tue, 05 Aug 2008 06:48:19 -0700 (PDT) Received: by 10.103.214.14 with HTTP; Tue, 5 Aug 2008 06:48:16 -0700 (PDT) Message-ID: <1a5f1a2d0808050648g4dcc4e02pe1904f1ffa8bb2cf@mail.gmail.com> Date: Tue, 5 Aug 2008 09:48:16 -0400 From: "Rodrique Heron" To: freebsd-pf@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Understanding Load Balancing with DNS+PF+CARP 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: Tue, 05 Aug 2008 14:14:35 -0000 I'm a running a Apache reverse proxy on PF+CARP, one node as master the other backup. I want a active/active setup, but since I don't have a hardware load balancer I'm banking on DNS. I would like to understand what happens when a host connects to the cluster for the first time after the first DNS query. So a user request www.website.com, DNS round-robin points the user to node1, what happens when a the user makes another request ? Is there another DNS lookup ? Will the user the sent back to node1 ? Does it make a difference if the server is hosting static content or an application ? Thanks