Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
e9e13445
Commit
e9e13445
authored
Nov 23, 2017
by
Chenjerai Katanda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update example configuration to use HA roles for Redis and sentinel
parent
78dcafe8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
doc/administration/high_availability/redis.md
doc/administration/high_availability/redis.md
+3
-6
No files found.
doc/administration/high_availability/redis.md
View file @
e9e13445
...
@@ -571,8 +571,7 @@ or a failover promotes a different **Master** node.
...
@@ -571,8 +571,7 @@ or a failover promotes a different **Master** node.
In
`/etc/gitlab/gitlab.rb`
:
In
`/etc/gitlab/gitlab.rb`
:
```
ruby
```
ruby
redis_master_role
[
'enable'
]
=
true
roles
[
'redis_sentinel_role'
,
'redis_master_role'
]
redis_sentinel_role
[
'enable'
]
=
true
redis
[
'bind'
]
=
'10.0.0.1'
redis
[
'bind'
]
=
'10.0.0.1'
redis
[
'port'
]
=
6379
redis
[
'port'
]
=
6379
redis
[
'password'
]
=
'redis-password-goes-here'
redis
[
'password'
]
=
'redis-password-goes-here'
...
@@ -594,8 +593,7 @@ sentinel['quorum'] = 2
...
@@ -594,8 +593,7 @@ sentinel['quorum'] = 2
In
`/etc/gitlab/gitlab.rb`
:
In
`/etc/gitlab/gitlab.rb`
:
```
ruby
```
ruby
redis_slave_role
[
'enable'
]
=
true
roles
[
'redis_sentinel_role'
,
'redis_slave_role'
]
redis_sentinel_role
[
'enable'
]
=
true
redis
[
'bind'
]
=
'10.0.0.2'
redis
[
'bind'
]
=
'10.0.0.2'
redis
[
'port'
]
=
6379
redis
[
'port'
]
=
6379
redis
[
'password'
]
=
'redis-password-goes-here'
redis
[
'password'
]
=
'redis-password-goes-here'
...
@@ -617,8 +615,7 @@ sentinel['quorum'] = 2
...
@@ -617,8 +615,7 @@ sentinel['quorum'] = 2
In
`/etc/gitlab/gitlab.rb`
:
In
`/etc/gitlab/gitlab.rb`
:
```
ruby
```
ruby
redis_slave_role
[
'enable'
]
=
true
roles
[
'redis_sentinel_role'
,
'redis_slave_role'
]
redis_sentinel_role
[
'enable'
]
=
true
redis
[
'bind'
]
=
'10.0.0.3'
redis
[
'bind'
]
=
'10.0.0.3'
redis
[
'port'
]
=
6379
redis
[
'port'
]
=
6379
redis
[
'password'
]
=
'redis-password-goes-here'
redis
[
'password'
]
=
'redis-password-goes-here'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment