我已經在我的樹莓派3上安裝了gitlab社區版。一切工作正常。但是當應用程序啓動時,有25個sidekiq線程。它消耗了我的記憶,我不想要那麼多線程。sidekiq.yml文件沒有考慮
我試着通過添加文件/opt/gitlab/embedded/service/gitlab-rails/config/sidekiq.yml進行控制。
# Sample configuration file for Sidekiq.
# Options here can still be overridden by cmd line args.
# Place this file at config/sidekiq.yml and Sidekiq will
# pick it up automatically.
---
:verbose: false
:concurrency: 5
# Set timeout to 8 on Heroku, longer if you manage your own systems.
:timeout: 30
# Sidekiq will run this file through ERB when reading it so you can
# even put in dynamic logic, like a host-specific queue.
# http://www.mikeperham.com/2013/11/13/advanced-sidekiq-host-specific-queues/
:queues:
- critical
- default
- <%= `hostname`.strip %>
- low
# you can override concurrency based on environment
production:
:concurrency: 5
staging:
:concurrency: 5
我已重新啓動應用程序多次,甚至運行「重新配置」。這沒有幫助。它根本沒有考慮sidekiq.yml文件。
任何人都可以讓我知道我要去哪裏嗎?