• Kirill Smelkov's avatar
    gitlab: Setup gitlab-workhorse service · 6ddc1c30
    Kirill Smelkov authored
    Gitlab-workhorse[1] is a service which offloads Ruby-on-Rails based
    GitLab from long-running and slow requests. It is written in Go.
    
    Now as we have unicorn service set up, we can setup gitlab-workhorse
    service (which uses unicorn as authentication backend).
    
    Gitlab-workhorse setup is easy - it is just one program and several
    command line options to point to unicorn socket and to configure on
    which unix socket gitlab-workhorse will listen itself.
    
    NOTE we have to care that git and ruby to be on PATH when running
        gitlab-workhorse - because on e.g. git push'ing workhorse will run `git
        receive-pack` and a hook will be called which calls gitlab-shell,
        which is written in ruby.
    
    NOTE2 promise to check whether gitlab-workhorse is alive is to ping it
        via URL to non-existent endpoint and check for proper 403 HTTP code
        returned.
    
    [1] https://gitlab.com/gitlab-org/gitlab-workhorse
    
    /cc @kazuhiko, @jerome
    6ddc1c30
instance-gitlab.cfg.in 18.6 KB