How to make gitlab to support more clients in parallel?
I am using a self-hosted gitlab, version 8.13.3.
When I start a deploy with capistrano, 13 machines will go to my gitlab to fetch code, which will very likely cause the following error on an arbitrary machine:
SSHKit::Runner::ExecuteError: Exception while executing as email@example.com: git exit status: 128 git stdout: ssh_exchange_identification: Connection closed by remote host fatal: The remote end hung up unexpectedly git stderr: Nothing written SSHKit::Command::Failed: git exit status: 128 git stdout: ssh_exchange_identification: Connection closed by remote host fatal: The remote end hung up unexpectedly git stderr: Nothing written
And I found this issue under capistrano: https://github.com/capistrano/capistrano/issues/1534#issuecomment-163765485, and quoted from the issue:
Assuming you are running your own gitlab server, this might be because your gitlab can't handle the additional connections. The way Capistrano works, all 14 machines will try to check out from gitlab in parallel, which may be beyond the server's limits.
I'd like to known if there's any configuration(from gitlab or from the server, I am using Ubuntu Server 14.04) that I could tweak to support this amount of machines to do it parallel with capistrano?
Thank you very much.