puma['worker_processes'] = 2
puma['threads_min'] = 1
puma['threads_max'] = 4
puma['worker_timeout'] = 60
sidekiq['concurrency'] = 4 # 视负载在4-10间调整
gitlab_rails['redis_cache_instance'] = "redis://127.0.0.1:6379"
gitlab-ctl reconfigure(必要时gitlab-ctl restart)。postgresql['shared_buffers'] = "25% of RAM" # 常见建议为内存的25%-40%
postgresql['work_mem'] = "64MB"
postgresql['maintenance_work_mem'] = "128MB"
# 连接数按并发用户与实例规格综合评估,避免过大
prometheus['enable'] = false
prometheus_monitoring['enable'] = false
alertmanager['enable'] = false
grafana['enable'] = false
redis_exporter['enable'] = false
postgres_exporter['enable'] = false
node_exporter['enable'] = false
gitlab_exporter['enable'] = false
调整后执行gitlab-ctl reconfigure && gitlab-ctl restart。