there is a difference between scaling a rails application when you are running a cloud business and running a packaged application on-site. I'm pretty sure nobody is running gitlab backed by databases like AWS RDS or something.
I have shipped large rails apps as packaged software for on-site install (using jruby). It's not easy.