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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
1e4f8674
Commit
1e4f8674
authored
Nov 10, 2016
by
Gabriel Mazetto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remade documentation for Redis HA with Omnibus
parent
494c2785
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
480 additions
and
182 deletions
+480
-182
doc/administration/high_availability/redis.md
doc/administration/high_availability/redis.md
+473
-175
doc/administration/high_availability/redis_source.md
doc/administration/high_availability/redis_source.md
+7
-7
No files found.
doc/administration/high_availability/redis.md
View file @
1e4f8674
This diff is collapsed.
Click to expand it.
doc/administration/high_availability/redis_source.md
View file @
1e4f8674
...
@@ -153,7 +153,7 @@ outside (Internet).
...
@@ -153,7 +153,7 @@ outside (Internet).
We will use the same
`3`
nodes with
**Redis**
+
**Sentinel**
topology
We will use the same
`3`
nodes with
**Redis**
+
**Sentinel**
topology
discussed in the
[
Configuring Redis for GitLab HA
](
redis.md
)
documentation.
discussed in the
[
Configuring Redis for GitLab HA
](
redis.md
)
documentation.
Here is a list and description of each
**machine**
and the assi
ned
**ip
**
:
Here is a list and description of each
**machine**
and the assi
gned
**IP
**
:
*
`10.0.0.1`
: Redis Master + Sentinel 1
*
`10.0.0.1`
: Redis Master + Sentinel 1
*
`10.0.0.2`
: Redis Slave 1 + Sentinel 2
*
`10.0.0.2`
: Redis Slave 1 + Sentinel 2
...
@@ -170,7 +170,7 @@ or a failover promotes a different **Master** node.
...
@@ -170,7 +170,7 @@ or a failover promotes a different **Master** node.
### Configuring Redis Master
### Configuring Redis Master
`redis.conf`
:
**Example configation for Redis Master - `redis.conf`:**
```
conf
```
conf
bind
10
.
0
.
0
.
1
bind
10
.
0
.
0
.
1
...
@@ -181,7 +181,7 @@ masterauth redis-password-goes-here
...
@@ -181,7 +181,7 @@ masterauth redis-password-goes-here
### Configuring Redis Slaves
### Configuring Redis Slaves
**Slave 1 - `redis.conf`:**
**
Example configation for
Slave 1 - `redis.conf`:**
```
conf
```
conf
bind
10
.
0
.
0
.
2
bind
10
.
0
.
0
.
2
...
@@ -193,7 +193,7 @@ masterauth redis-password-goes-here
...
@@ -193,7 +193,7 @@ masterauth redis-password-goes-here
slaveof
10
.
0
.
0
.
1
6379
slaveof
10
.
0
.
0
.
1
6379
```
```
**Slave 2 - `redis.conf`:**
**
Example configation for
Slave 2 - `redis.conf`:**
```
conf
```
conf
bind
10
.
0
.
0
.
3
bind
10
.
0
.
0
.
3
...
@@ -211,7 +211,7 @@ For this example, **Sentinel 1** will be configured in the same machine as the
...
@@ -211,7 +211,7 @@ For this example, **Sentinel 1** will be configured in the same machine as the
**Redis Master**
,
**Sentinel 2**
and
**Sentinel 3**
in the same machines as the
**Redis Master**
,
**Sentinel 2**
and
**Sentinel 3**
in the same machines as the
**Slave 1**
and
**Slave 2**
respectively.
**Slave 1**
and
**Slave 2**
respectively.
Sentinel 1 -
`sentinel.conf`
**Example configation for Sentinel 1 - `sentinel.conf`:**
```
conf
```
conf
bind
10
.
0
.
0
.
1
bind
10
.
0
.
0
.
1
...
@@ -222,7 +222,7 @@ sentinel down-after-milliseconds gitlab-redis 10000
...
@@ -222,7 +222,7 @@ sentinel down-after-milliseconds gitlab-redis 10000
sentinel
failover_timeout
30000
sentinel
failover_timeout
30000
```
```
Sentinel 2 -
`sentinel.conf`
**Example configation for Sentinel 2 - `sentinel.conf`:**
```
conf
```
conf
bind
10
.
0
.
0
.
2
bind
10
.
0
.
0
.
2
...
@@ -233,7 +233,7 @@ sentinel down-after-milliseconds gitlab-redis 10000
...
@@ -233,7 +233,7 @@ sentinel down-after-milliseconds gitlab-redis 10000
sentinel
failover_timeout
30000
sentinel
failover_timeout
30000
```
```
Sentinel 3 -
`sentinel.conf`
**Example configation for Sentinel 3 - `sentinel.conf`:**
```
conf
```
conf
bind
10
.
0
.
0
.
3
bind
10
.
0
.
0
.
3
...
...
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