Linux GitLab 数据库优化指南
一 基础架构与硬件
二 PostgreSQL 关键参数建议
shared_buffers = 4GB
work_mem = 64MB
maintenance_work_mem = 128MB
effective_cache_size = 12GB
max_connections = 200
checkpoint_timeout = 30min
checkpoint_completion_target = 0.9
wal_buffers = 16MB
effective_io_concurrency = 200
三 连接管理与高可用
四 索引与维护
五 监控 备份与变更流程