git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Multiple clients accessing git over NFS

From
GTGreg Troxel <gdt@ir.bbn.com>
Date
Nov 14, 2010, 23:11 UTC
Message-ID
<rmi39r3mrf6.fsf@fnord.ir.bbn.com>
In-Reply-To
<AANLkTimyFkVFAw4s2fiWKZFPvnx15K6U6GbxmRgznx7Z@mail.gmail.com>
Khawaja Shams <kshams@usc.edu> writes:
Show 9 quoted lines
> 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.

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.

Previous: Khawaja ShamsNext: Khawaja Shams
Message 2 of 10 in “Multiple clients accessing git over NFS”
  1. Khawaja ShamsNov 14, 2010
  2. Greg TroxelNov 14, 2010
  3. Khawaja ShamsNov 14, 2010
  4. Jonathan NiederNov 15, 2010
  5. Jan HudecNov 15, 2010
  6. Drew NorthupNov 15, 2010
  7. J. Bruce FieldsNov 15, 2010
  8. Sitaram ChamartyNov 15, 2010
  9. AlexNov 16, 2010
  10. Greg TroxelNov 14, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.