Gitlab cluster deployment related services
1.Gitlab server
- System:
ubuntu 14.04 x86_64
- Gitlab master:
10.100.136.62
- Gitlab slave:
10.100.136.63
- Gitlab version:
GitLab Community Edition 8.13.5
- Location:
/var/opt/gitlab
2.redis/pgsql
- System:
centos 6.8 x86_64
- Redis:
10.100.17.25:6380
- Pgsql:
10.100.17.25:5432
- Version:
redis:2.8,pgsql:9.6
- Location:
/data/redis,/var/lib/pgsql/9.6
3.DRBD & keepalived & nfs
- System:
centos 6.8 x86_64
- DRBD master:
10.100.17.31
- DRBD slave:
10.100.17.32
- Version:
8.9.6
- Location:
/usr/loca/etc/drbd
/keepalived
/etc/exports
4.gitlab cluser config
- MASTER1234567891011121314151617181920# vi /etc/gitlab/gitlab.rb# Disable the built-in Postgrespostgresql['enable'] = false# Fill in the values for database.ymlgitlab_rails['db_adapter'] = "postgresql"gitlab_rails['db_encoding'] = "unicode"gitlab_rails['db_database'] = "gitlabhq_production"gitlab_rails['db_host'] = '10.100.17.25'gitlab_rails['db_port'] = '5432'gitlab_rails['db_username'] = 'gitlab'gitlab_rails['db_password'] = '123456'# Redis connection detailsredis['enable'] = falsegitlab_rails['redis_port'] = '6380'gitlab_rails['redis_host'] = '10.100.17.25'#gitlab_rails['redis_password'] = '123456'