<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
...
@@ -40,7 +41,7 @@ Omnibus GitLab packages.
...
@@ -40,7 +41,7 @@ Omnibus GitLab packages.
-[Step 3. Configuring the Redis Sentinel instances](#step-3-configuring-the-redis-sentinel-instances)
-[Step 3. Configuring the Redis Sentinel instances](#step-3-configuring-the-redis-sentinel-instances)
-[Step 4. Configuring the GitLab application](#step-4-configuring-the-gitlab-application)
-[Step 4. Configuring the GitLab application](#step-4-configuring-the-gitlab-application)
-[Switching from an existing single-machine installation to Redis HA](#switching-from-an-existing-single-machine-installation-to-redis-ha)
-[Switching from an existing single-machine installation to Redis HA](#switching-from-an-existing-single-machine-installation-to-redis-ha)
-[Example of a minimal configuration with 1 master, 2 slaves and 3 sentinels](#example-of-a-minimal-configuration-with-1-master-2-slaves-and-3-sentinels)
-[Example of a minimal configuration with 1 master, 2 slaves and 3 Sentinels](#example-of-a-minimal-configuration-with-1-master-2-slaves-and-3-sentinels)
-[Configuration for Redis master](#configuration-for-redis-master)
-[Configuration for Redis master](#configuration-for-redis-master)
-[Configuration for Redis slaves](#configuration-for-redis-slaves)
-[Configuration for Redis slaves](#configuration-for-redis-slaves)
-[Configuration for Sentinels](#configuration-for-sentinels)
-[Configuration for Sentinels](#configuration-for-sentinels)
...
@@ -79,17 +80,17 @@ components below.
...
@@ -79,17 +80,17 @@ components below.
### High Availability with Sentinel
### High Availability with Sentinel
>
>**Notes:**
- Starting with GitLab `8.11`, you can configure a list of Redis Sentinel
- Starting with GitLab `8.11`, you can configure a list of Redis Sentinel
servers that will monitor a group of Redis servers to provide failover support.
servers that will monitor a group of Redis servers to provide failover support.
- Starting with GitLab `8.14`, the Omnibus GitLab Enterprise Edition package
- Starting with GitLab `8.14`, the Omnibus GitLab Enterprise Edition package
comes with Redis Sentinel daemon support.
comes with Redis Sentinel daemon built-in.
High Availability with Redis requires a few things:
High Availability with Redis requires a few things:
- Multiple Redis instances
- Multiple Redis instances
- Run Redis in a **Master** x **Slave** topology
- Run Redis in a **Master** x **Slave** topology
- Multiple Sentinel instances
- Multiple Sentinel instances
- Application support and visibility to all Sentinel and Redis instances
- Application support and visibility to all Sentinel and Redis instances
Redis Sentinel can handle the most important tasks in an HA environment and that's
Redis Sentinel can handle the most important tasks in an HA environment and that's
...
@@ -132,27 +133,6 @@ the Omnibus GitLab package in `5` **independent** machines, both with
...
@@ -132,27 +133,6 @@ the Omnibus GitLab package in `5` **independent** machines, both with
- Redis Slave + Sentinel
- Redis Slave + Sentinel
- Redis Slave + Sentinel
- Redis Slave + Sentinel
### Available configuration setups
Based on your infrastructure setup and how you have installed GitLab, there are
multiple ways to configure Redis HA. Omnibus GitLab packages have Redis and/or
Redis Sentinel bundled with them so you only need to focus on configuration.
Pick the one that suits your needs.
-[Installations from source][source]: You need to install Redis and Sentinel
yourself. Use the [Redis HA installation from source](redis_source.md) guide.
-[Omnibus package Community Edition (CE) package][ce]: Redis is bundled, so you
can use the package with only the Redis service enabled (works for both master
and slave setups). To install and configure Sentinel, you can use the
[Redis HA installation from source](redis_source.md) guide.
-[Omnibus package Enterprise Edition (EE) package][ee]: Both Redis and Sentinel
are bundled, so you can use the EE package to setup the whole Redis HA
infrastructure (master, slave and Sentinel).
Note that even if you have installed GitLab using the Omnibus GitLab packages