Default to two database connections i.e. main and ci
As part of bringing database decomposition support to self-managed we require self-managed to have two connections by default. Both these connections will point to the same database but can be configured to point to two different databases by overriding the defaults in `/etc/gitlab/gitlab.rb`. The users can switch back to a single connection by overriding the default by adding the following in `/etc/gitlab/gitlab.rb`: `gitlab_rails['databases']['ci']['enable'] = false` Changelog: changed
Showing
- doc/settings/database.md 9 additions, 6 deletionsdoc/settings/database.md
- files/gitlab-config-template/gitlab.rb.template 1 addition, 1 deletionfiles/gitlab-config-template/gitlab.rb.template
- files/gitlab-cookbooks/gitlab/libraries/gitlab_rails.rb 7 additions, 0 deletionsfiles/gitlab-cookbooks/gitlab/libraries/gitlab_rails.rb
- spec/chef/cookbooks/gitlab-ee/recipes/geo-secondary_spec.rb 34 additions, 32 deletionsspec/chef/cookbooks/gitlab-ee/recipes/geo-secondary_spec.rb
- spec/chef/cookbooks/gitlab/recipes/gitlab-rails/database_yml_spec.rb 52 additions, 31 deletions...ookbooks/gitlab/recipes/gitlab-rails/database_yml_spec.rb
Loading
Please register or sign in to comment