Commit 03348b5f authored by Ian Baum's avatar Ian Baum

Update pgbouncer doc

* Consolidate settings down to bare minimum
* Fix typo with markdown
parent fd75fc6b
...@@ -19,7 +19,7 @@ See our [HA documentation for PostgreSQL](database.md) for information on runnin ...@@ -19,7 +19,7 @@ See our [HA documentation for PostgreSQL](database.md) for information on runnin
1. Generate PGBOUNCER_USER_PASSWORD_HASH with the command `gitlab-ctl pg-password-md5 pgbouncer` 1. Generate PGBOUNCER_USER_PASSWORD_HASH with the command `gitlab-ctl pg-password-md5 pgbouncer`
1. Generate SQL_USER_PASSWORD_HASH with the command `gitlab-ctl pg-password-md5 gitlab. We'll also need to enter the plaintext SQL_USER_PASSWORD later 1. Generate SQL_USER_PASSWORD_HASH with the command `gitlab-ctl pg-password-md5 gitlab`. We'll also need to enter the plaintext SQL_USER_PASSWORD later
1. On your database node, ensure the following is set in your `/etc/gitlab/gitlab.rb` 1. On your database node, ensure the following is set in your `/etc/gitlab/gitlab.rb`
```ruby ```ruby
...@@ -35,14 +35,11 @@ See our [HA documentation for PostgreSQL](database.md) for information on runnin ...@@ -35,14 +35,11 @@ See our [HA documentation for PostgreSQL](database.md) for information on runnin
```ruby ```ruby
pgbouncer['enable'] = true pgbouncer['enable'] = true
pgbouncer['user'] = {
'pgbouncer': {
'password': 'PGBOUNCER_USER_PASSWORD_HASH'
}
}
pgbouncer['databases'] = { pgbouncer['databases'] = {
gitlabhq_production: { gitlabhq_production: {
host: 'DATABASE_HOST' host: 'DATABASE_HOST',
user: 'pgbouncer',
password: 'PGBOUNCER_USER_PASSWORD_HASH'
} }
} }
``` ```
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment