Gitlab EE 从13.x版本升级至14.x注意点

Gitlab 14.x相较于13.x删除了unicorn,使用puma。所以需要注释掉gitlab.rb中所有关于unicorn选项,打开puma的相关选项。

提供一份配置示例如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
################################################################################
## GitLab Unicorn
##! Tweak unicorn settings.
##! Docs: https://docs.gitlab.com/omnibus/settings/unicorn.html
################################################################################

# unicorn['enable'] = true
# unicorn['worker_timeout'] = 60
###! Minimum worker_processes is 2 at this moment
###! See https://gitlab.com/gitlab-org/gitlab-ce/issues/18771
# unicorn['worker_processes'] = 2
# unicorn['worker_memory_limit_min'] = "250 * 1 << 20"
# unicorn['worker_memory_limit_max'] = "400 * 1 << 20"

################################################################################
## GitLab Puma
##! Tweak puma settings. You should only use Unicorn or Puma, not both.
##! Docs: https://docs.gitlab.com/omnibus/settings/puma.html
################################################################################

puma['enable'] = true
# puma['ha'] = false
puma['worker_timeout'] = 300
puma['worker_processes'] = 4
puma['min_threads'] = 1
puma['max_threads'] = 16
0%