GitLab内存占用过高问题, 修改配置以减少内存占用

avatar
作者
猴君
阅读量:0

参考: GitLab官方-安装-配置-内存受限环境

sudo docker exec -it gitlab /bin/bash vi /etc/gitlab/gitlab.rb ## 配置文件开始 ## # 注释中的是原值 puma['worker_processes'] = 0 puma['min_threads'] = 3 # 4 puma['max_threads'] = 3 # 4 sidekiq['max_concurrency'] = 8 # 50  gitaly['configuration'] = {     concurrency: [       {         'rpc' => "/gitaly.SmartHTTPService/PostReceivePack",         'max_per_repo' => 10, # 20       }, {         'rpc' => "/gitaly.SSHService/SSHUploadPack",         #'max_per_repo' => 3, # 5       },     ],     cgroups: {         repositories: {             #count: 10, # 1000         },         mountpoint: '/sys/fs/cgroup',         hierarchy_root: 'gitaly',     }, }  ## 配置文件结束 ## # 在容器中重新应用配置 gitlab-ctl reconfigure gitlab-ctl restart gitlab-ctl status # 查看各个组件状态 

广告一刻

为您即时展示最新活动产品广告消息,让您随时掌握产品活动新动态!