From owner-freebsd-questions@freebsd.org Wed Sep 7 16:18:37 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D49A4BCB173; Wed, 7 Sep 2016 16:18:37 +0000 (UTC) (envelope-from solene@perso.pw) Received: from bsd.zplay.eu (perso.pw [62.210.240.224]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "bsd.zplay.eu", Issuer "StartCom Class 1 Primary Intermediate Server CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 12D44B13; Wed, 7 Sep 2016 16:18:36 +0000 (UTC) (envelope-from solene@perso.pw) Received: from bsd.zplay.eu (localhost [127.0.0.1]) by bsd.zplay.eu (OpenSMTPD) with ESMTP id abec916d; Wed, 7 Sep 2016 18:18:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=perso.pw; h=to:subject :mime-version:content-type:content-transfer-encoding:date:from :cc:in-reply-to:references:message-id; s=selector1; bh=XADDaG44C frEWJWhYZqrpAd0BYM=; b=DQLYQNB7rU8h1XHa1vkHS1J8tu0sija8+Fac7PZcx z3bOpW42fWa7OYsGfeEnFAI/qNq/zWMJ+hr6GIqrXXuRSJMRB0+zV61c/sM+9gZv xCWTBMPqouEaI1TkIQgLJyRH1CyGj4gqYO2VYsXDbRQCzbcW45RjnBKVfSGvE3rJ 3Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=perso.pw; h=to:subject :mime-version:content-type:content-transfer-encoding:date:from :cc:in-reply-to:references:message-id; q=dns; s=selector1; b=COI c8v55U7Ch9x0cb4Yol0o2Be7GPlXgCL40IGcleWq/ntU/RUF17q7BQ6CD5Nsywvh R5riUZ228fUY5clZZasj8YpB55Sjs7lvLXoyxo7O8HLmagtHLHiIZeCAmC+wJtCu m2VxRPdyWKsnHkhjWNpvPeO6CJZHwrmUpK+bAbO0= Received: from localhost (bsd.zplay.eu [local]) by bsd.zplay.eu (OpenSMTPD) with ESMTPA id 2bc264ab; Wed, 7 Sep 2016 18:18:26 +0200 (CEST) To: Amitabh Kant Subject: Re: NFS or rsync for sharing files between FreeBSD servers? X-PHP-Originating-Script: 0:rcube.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Wed, 07 Sep 2016 18:18:26 +0200 From: =?UTF-8?Q?Sol=C3=A8ne_Rapenne?= Cc: freebsd-questions@freebsd.org, owner-freebsd-questions@freebsd.org In-Reply-To: References: Message-ID: <7420247e8b1cd07eda9540ea28c9d90b@mail.zplay.eu> X-Sender: solene@perso.pw User-Agent: Roundcube Webmail/1.2.0 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2016 16:18:37 -0000 Le 2016-09-07 18:09, Amitabh Kant a écrit : > We need to share a number of directories between 3 servers running 9.3 > . > Most of these directories contain php/html/js/images files which do not > change frequently. > > We need to keep the directories in sync on all three servers. > Currently, we > run a rsync command every time there is a change in one of the > files/directories. Sometimes it does happen that we forget to run the > rsync > script making one of the servers return old versions. > > That is where we are planning to introduce a nfs_server on one of the > servers, while the other two will be nfs_clients accessing the files > through a shared directory. I understand that it would present a single > point of failure, but in terms of disk access speed, will it make a > huge > difference further impacting the web servers running on the nfs_client > servers ? The servers are connected to each other over gigabit lines, > and > the files are themselves not greater than 20-30 kb on an average, with > some > of the larger image files somewhere around 4-5 MB. > > > Amitabh > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" Hello, When does the files changes ? Is it the server changing the files or is it when your team push changes ? If the changes come from your team, just change your deployment script to push it to the 3 servers. I would recommend rsync because if it doesn't change a lot with a NFS you will add a SPOF (single point of failure) and overhead for no benefit. Kind regards