Commit 465c61ee authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Remove login as root step from Redis HA docs

[ci skip]
parent b7aae9a6
...@@ -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:
``` ```
......
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