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
465c61ee
Commit
465c61ee
authored
Nov 16, 2016
by
Achilleas Pipinellis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove login as root step from Redis HA docs
[ci skip]
parent
b7aae9a6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
22 deletions
+9
-22
doc/administration/high_availability/redis.md
doc/administration/high_availability/redis.md
+9
-22
No files found.
doc/administration/high_availability/redis.md
View file @
465c61ee
...
@@ -107,10 +107,12 @@ to help keep servers online with minimal to no downtime. Redis Sentinel:
...
@@ -107,10 +107,12 @@ to help keep servers online with minimal to no downtime. Redis Sentinel:
-
Promotes a
**Slave**
to
**Master**
when the
**Master**
fails
-
Promotes a
**Slave**
to
**Master**
when the
**Master**
fails
-
Demotes a
**Master**
to
**Slave**
when the failed
**Master**
comes back online
-
Demotes a
**Master**
to
**Slave**
when the failed
**Master**
comes back online
(to prevent data-partitioning)
(to prevent data-partitioning)
-
Can be queried by clients to always connect to the current
**Master**
server
-
Can be queried by the application to always connect to the current
**Master**
server
When a
**Master**
fails to respond, it's the client's responsibility to handle
When a
**Master**
fails to respond, it's the application's responsibility
timeout and reconnect (querying a
**Sentinel**
for a new
**Master**
).
(in our case GitLab) to handle timeout and reconnect (querying a
**Sentinel**
for a new
**Master**
).
To get a better understanding on how to correctly setup Sentinel, please read
To get a better understanding on how to correctly setup Sentinel, please read
the
[
Redis Sentinel documentation
](
http://redis.io/topics/sentinel
)
first, as
the
[
Redis Sentinel documentation
](
http://redis.io/topics/sentinel
)
first, as
...
@@ -289,12 +291,7 @@ The prerequisites for a HA Redis setup are the following:
...
@@ -289,12 +291,7 @@ The prerequisites for a HA Redis setup are the following:
### Step 1. Configuring the master Redis instance
### Step 1. Configuring the master Redis instance
1.
SSH into the
**master**
Redis server and login as root:
1.
SSH into the
**master**
Redis server.
```
sudo -i
```
1.
[
Download/install
](
https://about.gitlab.com/installation
)
the Omnibus GitLab
1.
[
Download/install
](
https://about.gitlab.com/installation
)
the Omnibus GitLab
package you want using
**steps 1 and 2**
from the GitLab downloads page.
package you want using
**steps 1 and 2**
from the GitLab downloads page.
-
Make sure you select the correct Omnibus package, with the same version
-
Make sure you select the correct Omnibus package, with the same version
...
@@ -334,12 +331,7 @@ The prerequisites for a HA Redis setup are the following:
...
@@ -334,12 +331,7 @@ The prerequisites for a HA Redis setup are the following:
### Step 2. Configuring the slave Redis instances
### Step 2. Configuring the slave Redis instances
1.
SSH into the
**slave**
Redis server and login as root:
1.
SSH into the
**slave**
Redis server.
```
sudo -i
```
1.
[
Download/install
](
https://about.gitlab.com/installation
)
the Omnibus GitLab
1.
[
Download/install
](
https://about.gitlab.com/installation
)
the Omnibus GitLab
package you want using
**steps 1 and 2**
from the GitLab downloads page.
package you want using
**steps 1 and 2**
from the GitLab downloads page.
-
Make sure you select the correct Omnibus package, with the same version
-
Make sure you select the correct Omnibus package, with the same version
...
@@ -417,12 +409,7 @@ multiple machines with the Sentinel daemon.
...
@@ -417,12 +409,7 @@ multiple machines with the Sentinel daemon.
---
---
1.
SSH into the server that will host Redis Sentinel and login as root:
1.
SSH into the server that will host Redis Sentinel.
```
sudo -i
```
1.
**
You can omit this step if the Sentinels will be hosted in the same node as
1.
**
You can omit this step if the Sentinels will be hosted in the same node as
the other Redis instances.
**
the other Redis instances.
**
...
@@ -437,7 +424,6 @@ multiple machines with the Sentinel daemon.
...
@@ -437,7 +424,6 @@ multiple machines with the Sentinel daemon.
Sentinels in the same node as the other Redis instances, some values might
Sentinels in the same node as the other Redis instances, some values might
be duplicate below):
be duplicate below):
```ruby
```ruby
redis_sentinel_role['enable'] = true
redis_sentinel_role['enable'] = true
...
@@ -530,6 +516,7 @@ it needs to access at least one of the listed.
...
@@ -530,6 +516,7 @@ it needs to access at least one of the listed.
The following steps should be performed in the
[
GitLab application server
](
gitlab.md
)
The following steps should be performed in the
[
GitLab application server
](
gitlab.md
)
which ideally should not have Redis or Sentinels on it for a HA setup.
which ideally should not have Redis or Sentinels on it for a HA setup.
1.
SSH into the server where the GitLab application is installed.
1.
Edit
`/etc/gitlab/gitlab.rb`
and add/change the following lines:
1.
Edit
`/etc/gitlab/gitlab.rb`
and add/change the following lines:
```
```
...
...
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