From: "J. Bruce Fields" <bfields@fieldses.org>
To: Greg Troxel <gdt@ir.bbn.com>
Cc: Khawaja Shams <kshams@usc.edu>, git@vger.kernel.org
Subject: Re: Multiple clients accessing git over NFS
Date: Mon, 15 Nov 2010 11:24:32 -0500 [thread overview]
Message-ID: <20101115162432.GA6258@fieldses.org> (raw)
In-Reply-To: <rmi39r3mrf6.fsf@fnord.ir.bbn.com>
On Sun, Nov 14, 2010 at 06:11:41PM -0500, Greg Troxel wrote:
>
> Khawaja Shams <kshams@usc.edu> writes:
>
> > Is it a recommended practice to share a repository over NFS, where
> > multiple clients can be pushing changes simultaneously? In our
> > production environment, we have a Git repository setup behind
> > git-http-backend. We would like to place multiple Apache servers
> > behind a load balancer to maximize availability and performance.
> > Before we proceed, we wanted to check to see if this practice has a
> > potential to cause repository corruption. If there are other ways
> > others have solved this problem, we would be very interested in
> > learning about those as well. Thank you.
>
> NFS locking has historically been problematic, and my impression is that
> most people avoid it. Perhaps it's ok on Solaris, but without serious
> testing, I'd be worried.
Does git actually do file locking when people push to a bare repo?
If all it needs is for rename and/or O_EXCL to be atomic--that should be
fine over NFS.
--b.
>
> Can you explain what you have set up, and what your performance
> situation is, and why you think adding a second or third apache over NFS
> will help? How many users? How many pushes/day?
>
> One option is to have a multi-core box with tons of RAM running apache;
> I've done that for trac (8 core, 16G, RAID5) because trac/python is so
> piggy, and buying a $3K box was cheaper than making trac go faster.
> That doesn't get you into remote FS locking issues.
next prev parent reply other threads:[~2010-11-15 16:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-14 21:24 Multiple clients accessing git over NFS Khawaja Shams
2010-11-14 23:11 ` Greg Troxel
2010-11-14 23:42 ` Khawaja Shams
2010-11-15 0:32 ` Jonathan Nieder
2010-11-15 19:56 ` Jan Hudec
2010-11-15 20:44 ` Drew Northup
[not found] ` <AANLkTinX-XR2TaZPGPeWyekMq3e8wEDkfcmi_o6pTvMK@mail.gmail.com>
2010-11-14 23:46 ` Greg Troxel
2010-11-15 16:24 ` J. Bruce Fields [this message]
2010-11-15 1:26 ` Sitaram Chamarty
2010-11-16 13:47 ` Alex
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20101115162432.GA6258@fieldses.org \
--to=bfields@fieldses.org \
--cc=gdt@ir.bbn.com \
--cc=git@vger.kernel.org \
--cc=kshams@usc.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).