From owner-freebsd-questions@freebsd.org Wed Sep 7 16:31:24 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 601EEBCB7E7 for ; Wed, 7 Sep 2016 16:31:24 +0000 (UTC) (envelope-from m.e.sanliturk@gmail.com) Received: from mail-oi0-x232.google.com (mail-oi0-x232.google.com [IPv6:2607:f8b0:4003:c06::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 22D178AB for ; Wed, 7 Sep 2016 16:31:24 +0000 (UTC) (envelope-from m.e.sanliturk@gmail.com) Received: by mail-oi0-x232.google.com with SMTP id s131so33650750oie.2 for ; Wed, 07 Sep 2016 09:31:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=G+GK28yQuILCZJerXEMOhr9krGvZ9X+8fN/zjds+il0=; b=QnzOSfjdC5zEc96E4o43ZmDGkpS6sUMWo/OZpDlMnw7jHDW6k/aNPMNjWnn3+b+SPK c8GUZqvFKYNMaZ0pIFfiEa1pc5A/JIetcc/1P+n0gzHU1MZZIx84y8rmVAWfeDFJOCpC VmhzsSTtFo4hGp+/Gj14GhLXEvYHovb4dgcH+YjJntYcGPim53OhU8CfgBXdCpstRYGb agBVOVRlePYiBFVffCNj6UCq5rhtpmfg9CAd6GTcUzUavKFADigw6TS3cwqNilweNROK phD2tBKWN+ypai2+fOvjqmVB7pWL3XB0TzMakldjQaJ69PmMYDqK4Rby3hyK9gqkyWzK yELQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=G+GK28yQuILCZJerXEMOhr9krGvZ9X+8fN/zjds+il0=; b=YrMI0Yu8j2v8ai0LnNS4Rj925qNEF09tyHJDP+EV6C6c4m9uT6Px2/BIBwwmBZ4sZ8 ocOMhz1VnraKOgCQnmHwy+oFTLR55IjTx4F5Ihfu29UeE3D5nDXmGocVEaiW7rnIAeyo fFxKVQC/E7mUO3+aP9y2gbUXVWT9bS0Xbhaw3lu7XmyNJqT8S13nUFKbNzn3kpPrxbUN 4fnUaEeu4VqiKqo1QY7s6Xl36fMESNPn11E//gr5PVJLXwUkcU3DSOZ3ZDGaG5KsKmxV YSS2qICuR9M9awV20rShDIVuXM0W6bpfiF3E58pgYJq3kahA39tnNEXnnxMQHl1pBaOI Nzrg== X-Gm-Message-State: AE9vXwOXehoodbYB7XlxeVE1ayz7BbiNUglSDZ+2I0DfNP+mMKpS4SIdiK1hxdjUb7Dc0xaRHYqMSqbVMdfz8Q== X-Received: by 10.157.26.90 with SMTP id u26mr42108759otu.117.1473265883537; Wed, 07 Sep 2016 09:31:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.61.195 with HTTP; Wed, 7 Sep 2016 09:31:23 -0700 (PDT) In-Reply-To: References: <7420247e8b1cd07eda9540ea28c9d90b@mail.zplay.eu> From: Mehmet Erol Sanliturk Date: Wed, 7 Sep 2016 09:31:23 -0700 Message-ID: Subject: Re: NFS or rsync for sharing files between FreeBSD servers? To: Amitabh Kant Cc: =?UTF-8?Q?Sol=C3=A8ne_Rapenne?= , "freebsd-questions@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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:31:24 -0000 On Wed, Sep 7, 2016 at 9:25 AM, Amitabh Kant wrote: > On Wed, Sep 7, 2016 at 9:48 PM, Sol=C3=A8ne Rapenne wro= te: > > > Le 2016-09-07 18:09, Amitabh Kant a =C3=A9crit : > > > >> 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 no= t > >> change frequently. > >> > >> We need to keep the directories in sync on all three servers. Currentl= y, > >> 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 singl= e > >> point of failure, but in terms of disk access speed, will it make a hu= ge > >> 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 > > > > As of now, files are only changed when the team pushes the change. But > going ahead, we are looking at a scenario where the files auto-generated > through script on one server would be required on other servers too. Usin= g > rsync while running a web server process doesn't seem ok to me. The other > idea is to use the DB server to store the auto-generated files, and fetch > on any of the servers are required. While this is a feasible idea > technically, this might also bloat the DB. > > So if NFS overhead is not too huge, I can take a look at it as an option. > > Amitabh > _______________________________________________ > > Auto generation script may also update the other servers , therefore , it is not necessary to use NFS . Mehmet Erol Sanliturk