Skip to content

Instantly share code, notes, and snippets.

@packetpilot
Created August 11, 2017 20:32
Show Gist options
  • Save packetpilot/060a1be3a837c39f4b5f4b830dd670a4 to your computer and use it in GitHub Desktop.
Save packetpilot/060a1be3a837c39f4b5f4b830dd670a4 to your computer and use it in GitHub Desktop.
Omnibus GitLab CE on a Weak Instance
################################################################################
## Omnibus GitLab CE on Tiny Instance (1vCPU, 1GB RAM)
## - These changes (for gitlab.rb) allow CE to run reliably below min sys reqs.
## - Total memory should be >= 2GB, so a ~1GB swapfile is recommended.
## - These changes do NOT provide smooth operation/UX, so use wisely(/alone).
################################################################################
################################################################################
## GitLab Unicorn
##! Tweak unicorn settings.
##! Docs: https://docs.gitlab.com/omnibus/settings/unicorn.html
################################################################################
unicorn['worker_timeout'] = 180
unicorn['worker_processes'] = 1
################################################################################
## GitLab Sidekiq
################################################################################
sidekiq['shutdown_timeout'] = 10
sidekiq['concurrency'] = 4
################################################################################
## GitLab Nginx
##! Docs: https://docs.gitlab.com/omnibus/settings/nginx.html
################################################################################
nginx['worker_processes'] = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment