Hacker News new | past | comments | ask | show | jobs | submit login

I tried to use gitlab and was very excited with the self host option. But for a small business, it was too much hassle with setup, installation and the biggest issue: huge memory requirement. On a DigitalOcean droplet of 512MB, it was too slow. I switched to Bitbucket private repo.

May be i was not doing something right.

I'm sorry but 512MB is too little for GitLab, as said on https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/inst... "we strongly advise against this amount of memory"

> May be i was not doing something right.

Here you go:

> On a DigitalOcean droplet of 512MB

I'm not sure it's realistic to expect great performance on a tiny droplet in a budget provider that over-provisions the heck out of these tiny instance sizes.

Spend more than $5/month and you may get better results.

It's actually not so obvious. I run an droplet with email, xmpp, web, several django apps (+postgres), and a few other small things, and don't even come close to pushing the limit on the cheapest DO droplet.

GitLab has actually a pretty large overhead, and for a single user, it requires quite a bit of CPU/RAM. I assume that the requirement is not lineal though.

I have a dozen web apps installed on my personal 512MB droplet and they all work flawlessly.

What I don't understand is if these apples taste like delicious apples, why don't these oranges? WHY?

Are your dozen web apps large, featureful code forge systems?

Srchub runs on 512MB of RAM currently using 150MB of RAM. I currently host 173 projects.

No, they're not. That said, there is no valid engineering reason why any web app should require more than 512MB of memory to run with minimal user load.

User load is what bumps up the RAM requirements. If the active user count is in the single digits and you're running into problems with RAM, either something is deeply misconfigured on your server, you have a ton of data, or the codebase is poor.

What if your web app manages a data structure that is simply larger than 512 MB? Like analytics data or something like that.

Please read what I wrote again. I specifically mentioned a large data set.

Wow, that's a lot of blanket statements. Nevermind the fact that GitLab won't even have a full 512 MB at its disposal in your particular case (the $5 512 MB droplet).

Memory is cheap. GitLab's resource usage doesn't increase much from the baseline as you go from 1 user to 100 users. You just can't run it on a potato.

An empty Rails app is already 100MB+ or memory. GitLab is running the largest open source rails app. Also, since we use Unicorn instead of multithreading we have to spin up multiple Rails apps.

>That said, there is no valid engineering reason why any web app should require more than 512MB of memory to run with minimal user load.

GitLab (and every other Rails app) makes the assumption that it's better to eager load an entire codebase once at boot time rather than to load code on demand and throw it away during a request.

That trades off baseline memory usage for runtime performance, and it's a perfectly valid 'engineering reason' for why GitLab's baseline memory usage is so high.


For less than the price of your $5 droplet, you get 4x the RAM and probably an equal amount of CPU.

Just don't expect much support from OVH because they're busy all the damn time.

I think you're comparing apples to oranges. As far as I know BitBucket doesn't offer a self hosted solution but GitLab offers both. In fact they match BitBucket on pricing too, well at least for the free tier. You can host private repos directly on GitLab and BitBucket for free.

The self hosted option may not be right for you especially if you're already using BitBucket private repos. Why did you not try GitLab's hosted private repos?

Thanks! Indeed on GitLab.com https://about.gitlab.com/gitlab-com/ you can have as many private repo's as you want for free.

I'm curious as to why you didn't simply go with the free hosted gitlab.com option, instead of bitbucket. Both are hosted, and I feel that gitlab has more features (ci, free, and a few small niceties).

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact