Active/Passive HA
hey,
I'm facing some problems while trying to configure two nodes with Active/Passive approach for GitLab environment.
I've followed this arch and configure floating-ip and drbd (/drbd_data) with omnibus GitLab version.
I changed /etc/gitlab/gitlab.rb many times, like:
- add uid and gid to all the users - to be sure the both nodes use the same users.
- trying to disable storage manager - I read somewhere that you should do that because the data saves in mount
- trying to change the paths of specific data
# put repos on /drbd_data
git_data_dir '/drbd_data/git-data'
# # put uploads on /drbd_data
gitlab_rails['uploads_directory'] = '/drbd_data/uploads'
# # put authorized_keys for 'git' on /drbd_data
user['home'] = '/drbd_data/home-git'
this didn't work when changing Primary/Secondary VMs.
the way I changed between primary and secondary:
however, some people say for this approach you should mount all /var/opt/gitlab,
some says /var/opt/gitlab, /etc/gitlab and /var/log/gitlab and others say the above configuration is okay.
Moreover, I read different approach to where to save postgeSQL, some says you have to put it outside the nodes while others says use only DRBD it's okay for active/passive.
gitlab-rake gitlab:env:info output is:
System information
System: CentOS 7.3.1611
Current User: git
Using RVM: no
Ruby Version: 2.3.3p222
Gem Version: 2.6.6
Bundler Version:1.13.7
Rake Version: 10.5.0
Redis Version: 3.2.5
Sidekiq Version:4.2.7
GitLab information
Version: 8.17.0
Revision: 77254ab
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
URL: http://localhost
HTTP Clone URL: http://localhost/some-group/some-project.git
SSH Clone URL: git@localhost:some-group/some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 4.1.1
Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories
Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks/
Git: /opt/gitlab/embedded/bin/git
I'm asking for help - finding genuine information about how to configure Active/Passive.
your help please! :)
Bar.