GitLab 最新版限制内存大小puma命令

修改gitlab.rb配置文件,增加以下配置。具体说明见官网详情。

puma['worker_timeout'] = 30
gitlab_rails['time_zone'] = 'Asia/Shanghai'
puma['worker_processes'] = 2
postgresql['shared_buffers'] = "256MB"
sidekiq['max_concurrency'] = 8
postgresql['max_worker_processes'] = 4
puma['per_worker_max_memory_mb'] = 600
prometheus_monitoring['enable'] = false
sidekiq['min_concurrency'] = 8

增加配置之后,使用命令重新加载和重启gitlab

docker exec gitlab gitlab-ctl reconfigure 重新加载配置
docker exec gitlab gitlab-ctl start / docker restart gitlab 重启gitlab

你可能感兴趣的:(docker,容器,运维)