In case anyone comes across this as I did, you can set this globally by using git config --global [configuration option]
there probably is a file for it, but that's how you can do it at least from cmdline and it should apply to all new projects as well On Tuesday, November 18, 2014 at 7:23:47 AM UTC+13, Ryan W wrote: > > So what I did was went in and updated > the /var/opt/gitlab/git-data/repositories/reponame.git/config file so it > looked like this: > > [core] > repositoryformatversion = 0 > filemode = true > bare = true > [pack] > windowMemory = 128m > packSizeLimit = 512m > > and then repacked the repo: #git repack -a -d > > I also increased the swap from 2 to 3GB but after these settings were in > effect and the repo repacked, git hardly touched the swap file. > > What I would love to know however is if a file I can edit that controls > what those initial config files look like so I don't have to do this for > every new repo that is created > > On Friday, November 14, 2014 2:08:20 PM UTC-5, Ryan W wrote: >> >> Right now our gitlab server is using up all of it's memory when people >> try to clone repos over 3GB in size.. I've created a 2GB swap partition but >> we're still chewing through all of that for larger repos as the packing >> process sucks up more ram than we can spare. So I wanted to check if there >> is a setting that I can configure in Gitlab or if I should install git and >> set it that way? >> >> The server instance I setup gitlab on doesn't have git installed so I am >> going to have to apt-get install git to get it up and running in order to >> set my packsizelimit. Not wanting to rock the boat I assumed that git >> wasn't installed for a reason and wanted to check if there was a gitlab >> only way that I could adjust this variable to limit the pack size to a few >> hundred MB instead. >> >> thanks! >> > -- Follow VizExplorer on LinkedIn <http://bit.ly/2fkNThb>and Twitter <http://bit.ly/2fkMYxd> <http://bit.ly/2fkQx6D> <http://bit.ly/2o8vE3h> The information contained in this email may be private and/or confidential. It has been sent for the sole use of the intended recipient(s). If the reader of this message is not an intended recipient, you are hereby notified that any unauthorized review, use, disclosure, dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please contact the sender by reply email and destroy all copies of the original message. -- You received this message because you are subscribed to the Google Groups "GitLab" group. To unsubscribe from this group and stop receiving emails from it, send an email to gitlabhq+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/gitlabhq/28cf4b6a-f466-4710-ba8a-7138afd31a6b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.