• Kirill Smelkov's avatar
    gitlab: Set up unicorn service · 481e4758
    Kirill Smelkov authored
    Now that all gitlab Rails application configuration files are ready, we
    can setup unicorn service to start it.
    
    NOTE there is a promise to check unicorn by url which works, but there
        are also rake tasks to check gitlab itself, e.g. like
    
            gitlab:app:check
            gitlab:gitlab_shell:check
            gitlab:repo:check
    
        Unfortunately this tasks are slow to run (and gitlab:repo:check is
        very slow to run). That's why we do not put them into etc/promise/ -
        if we do - slapos reports promises time outs.
    
        What we do is we put them into etc/promise.slow/ so we have those
        scripts ready, but currently no one automatically checks them.
    
        Again, the promise to check unicorn just by accessing it by URL is
        there and is checked automatically out of the box.
    
    NOTE2 GitLab is very slow to load. That's why it can take some time
        after unicorn starts that it's promise start to report ok. This can
        show itself as temporary instantiation errors which say promise such and
        such failed.
    
    NOTE3 Unicorn start, but so far we did not cared to setup GitLab DB
        schema on instantiation. That's why unicorn remains not very usable
        and a lot of requests fail. We'll teach instance to setup DB and
        perform all other needed settings in the next patch.
    
    /cc @kazuhiko, @jerome
    481e4758
instance-gitlab.cfg.in 16 KB