【发布时间】:2016-08-19 10:17:08
【问题描述】:
我已经在我的树莓派 3 上安装了 gitlab 社区版。一切正常。但是当应用程序启动时,有 25 个 sidekiq 线程。它占用了我的记忆,我不想要这么多线程。
我尝试通过添加文件 /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文件。
谁能告诉我哪里出错了?
【问题讨论】:
标签: gitlab raspberry-pi2 raspberry-pi3