From owner-freebsd-hackers@FreeBSD.ORG Mon Dec 15 03:46:58 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5084216A4CE for ; Mon, 15 Dec 2003 03:46:58 -0800 (PST) Received: from mail.icomag.de (ns.icomag.de [195.227.115.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A24A43D1F for ; Mon, 15 Dec 2003 03:46:56 -0800 (PST) (envelope-from bgd@icomag.de) Received: from localhost (localhost [127.0.0.1]) by mail.icomag.de (Postfix) with ESMTP id 37FC722E32 for ; Mon, 15 Dec 2003 12:46:54 +0100 (CET) Received: by mail.icomag.de (Postfix, from userid 1019) id 6BF9622E34; Mon, 15 Dec 2003 12:46:52 +0100 (CET) Date: Mon, 15 Dec 2003 12:46:52 +0100 From: Bogdan TARU To: freebsd-hackers@freebsd.org Message-ID: <20031215114652.GA74902@icomag.de> Mail-Followup-To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Virus-Scanned: by AMaViS Subject: general load balancing issues X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 11:46:58 -0000 Dear hackers, Up until now, I had a setup with 4-5 webservers, one 'main' server on which all the changes to the websites were done, and the rest which were rsync-ing the web repository to the local drives. The content is either static or dynamic (PHP). Of course, I was load balancing (DNS round-robin) only the statical domains, and the ones involving PHP scripts which fetched all the informations from a database. The domains which involved PHP sessions were left on the 'main' server. Right now I am considering a setup with one common NFS repository for the configuration files, Apache binaries, Web content and temp directory for PHP, NFS resource which will be mounted on all the 'front' webservers. I am wondering, though, if I will be able (by having one common temp directory for PHP) to load-balance the domains involving sessions: will the sessions be lost when connsecutive hits go to different webservers, or not? I will also be interested in finding out more opinions about this sort of setup (interested in what are the pitfalls of the common NFS repository) from the people who already got it implemented. Thank you, bogdan