- 10 Nov, 2015 7 commits
-
-
Kirill Smelkov authored
It is well known that UNIX sockets are faster than TCP over loopback. E.g. on my machine according to lmbench[1] they have ~ 2 times lower latency and ~ 2-3 times more throughput compared to TCP over loopback: *Local* Communication latencies in microseconds - smaller is better --------------------------------------------------------------------- Host OS 2p/0K Pipe AF UDP RPC/ TCP RPC/ TCP ctxsw UNIX UDP TCP conn --------- ------------- ----- ----- ---- ----- ----- ----- ----- ---- teco Linux 4.2.0-1 13.8 29.2 26.8 45.0 47.9 48.5 55.5 45. *Local* Communication bandwidths in MB/s - bigger is better ----------------------------------------------------------------------------- Host OS Pipe AF TCP File Mmap Bcopy Bcopy Mem Mem UNIX reread reread (libc) (hand) read write --------- ------------- ---- ---- ---- ------ ------ ------ ------ ---- ----- teco Linux 4.2.0-1 1084 4353 1493 2329.1 3720.7 1613.8 1109.2 3402 1404. The same ratio usually holds for servers. Also UNIX sockets, since they reside on filesystem, besides being faster with less latency, have one another nice property: access permissions to them are managed the same way access to files is. Because of lower latencies and higher throughput - for performance reasons, and for easier security, it makes sense to interconnect services on one machine via UNIX sockets and talk via TCP only to outside world. All internal services inside GitLab can talk to each other via UNIX socket already and only gitlab-shell was missing support to talk to Unicorn via UNIX socket. Let's teach gitlab-shell to talk via UNIX sockets. [1] http://www.bitmover.com/lmbench/ ~~~~ In this patch we - add URI::HTTPUNIX to handle http+unix:// URI scheme - add Net::HTTPUNIX to handle "connect via unix socket and then talk http" - adjust GitlabNet#http_client_for() accordingly - adjust documentation in config.yml.example The http+unix:// scheme is not reinvented anew: the idea about its structure is quite logical an was already established at least in requests-unixsocket python package: http://fixall.online/theres-no-need-to-reinvent-the-wheelhttpsgithubcommsabramorequests-unixsocketurl/241810/ https://github.com/msabramo/requests-unixsocket
-
Jacob Vosmaer authored
Adapt gitlab-ci.yml for shared runners After merging this we should disconnect the specific runner on gitlab-org/gitlab-shell. See merge request !27
-
Jacob Vosmaer authored
-
Jacob Vosmaer authored
-
Jacob Vosmaer authored
-
Jacob Vosmaer authored
-
Jacob Vosmaer authored
-
- 22 Oct, 2015 1 commit
-
-
Dmitriy Zaporozhets authored
Version bump 2.6.6 See merge request !22
-
- 21 Oct, 2015 2 commits
-
-
Artem V. Navrotskiy authored
-
Dmitriy Zaporozhets authored
-
- 01 Oct, 2015 3 commits
-
-
Dmitriy Zaporozhets authored
Skip 'git annex init' when using 'gcryptsetup' 'gcryptsetup' is a special git-annex feature that does its own initialization. See merge request !18
-
Jacob Vosmaer authored
-
Jacob Vosmaer authored
-
- 29 Sep, 2015 1 commit
-
-
Jeroen van Baarsen authored
change images to svg
-
- 27 Sep, 2015 1 commit
-
-
fscherwi authored
-
- 10 Sep, 2015 2 commits
-
-
Dmitriy Zaporozhets authored
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-
Dmitriy Zaporozhets authored
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-
- 09 Sep, 2015 2 commits
-
-
Artem V. Navrotskiy authored
-
Artem V. Navrotskiy authored
When cleaning this environment variable can be problems with the processing of non-ASCII data
-
- 08 Sep, 2015 1 commit
-
-
Robert Speicher authored
-
- 17 Aug, 2015 1 commit
-
-
Douwe Maan authored
Handle broken symlinks in create-hooks If a repository contained a broken symlink named 'hooks', this would raise ENOENT in lib/gitlab_projects.rb, which got ignored in bin/create-hooks. This commit fixes that by making sure we handle broken symlinks in lib/gitlab_projects.rb. See merge request !19
-
- 12 Aug, 2015 1 commit
-
-
Jacob Vosmaer authored
If a repository contained a broken symlink named 'hooks', this would raise ENOENT in lib/gitlab_projects.rb, which got ignored in bin/create-hooks. This commit fixes that by making sure we handle broken symlinks in lib/gitlab_projects.rb.
-
- 11 Aug, 2015 1 commit
-
-
Jacob Vosmaer authored
'gcryptsetup' is a special git-annex feature that does its own initialization.
-
- 05 Aug, 2015 2 commits
-
-
Dmitriy Zaporozhets authored
Version bump 2.6.4 See merge request !17
-
Valery Sizov authored
-
- 04 Aug, 2015 1 commit
-
-
Dmitriy Zaporozhets authored
-
- 17 Jul, 2015 2 commits
-
-
Dmitriy Zaporozhets authored
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-
Dmitriy Zaporozhets authored
Remove keys from authorized_keys in-place This will speed up the rm-key operation. The downside is that authorized_keys will not shrink when you remove a key. If this ever becomes a problem it can be fixed by running 'rake gitlab:shell:setup'. See merge request !66
-
- 16 Jul, 2015 4 commits
-
-
Marin Jankovski authored
-
Marin Jankovski authored
-
Jacob Vosmaer authored
-
Jacob Vosmaer authored
This will speed up the rm-key operation. The downside is that authorized_keys will not shrink when you remove a key. If this ever becomes a problem it can be fixed by running 'rake gitlab:shell:setup'.
-
- 06 Jul, 2015 1 commit
-
-
Dmitriy Zaporozhets authored
Add git-lfs-authenticate to command white list
-
- 03 Jul, 2015 1 commit
-
-
Artem V. Navrotskiy authored
-
- 01 Jul, 2015 2 commits
-
-
Dmitriy Zaporozhets authored
Add gitlab-ci yml script Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> cc @vsizov See merge request !14
-
Dmitriy Zaporozhets authored
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-
- 29 Jun, 2015 1 commit
-
-
Artem V. Navrotskiy authored
-
- 15 Jun, 2015 1 commit
-
-
Sytse Sijbrandij authored
-
- 11 Jun, 2015 2 commits
-
-
Dmitriy Zaporozhets authored
Add a note that changing example configuration files requires changing omnibus-gitlab. Keeping track of changes in these files is not easy and they usually require change in omnibus-gitlab. Added a note so everyone is aware of this. Similar is added to gitlab-ce and gitlab-ci. Discussed in gitlab-org/omnibus-gitlab#605 See merge request !13
-
Marin Jankovski authored
-