This walks you through the process of installing Redis Enterprise Software, which includes several steps:

  1. Plan your deployment
  2. Install Redis Software
  3. Set up a multi-node cluster
  4. Create your database

Here, you’ll learn how to perform each step.

Plan your deployment

Before installing Redis Software, you need to:

  • Set up your hardware according to the hardware requirements.

    What hardware do I need?
  • Choose the platform that you want to deploy on.

    What platforms are supported?

    In addition to Linux operating systems (Ubuntu, RHEL/CentOS, Oracle Linux), you can also deploy Redis Software to:

  • Open network ports in the firewall to allow connections to the nodes.

    What network ports are used
  • Configure cluster DNS so that cluster nodes can reach each other by DNS names.

    How do I configure DNS for my cluster?

Download the installation package

To download the installation package for any of the supported platforms:

  1. Go to the Redis Labs download page.
  2. Sign in with your Redis Labs credentials or create a new account.
  3. In the Downloads section for Redis Enterprise Software, select the installation package for your platform then select Go.
Note:
Before you install the Linux package or AWS AMI on an AWS EC2 instance, review the configuration requirements for AWS EC2 instances.

Prepare to install on Linux

Before installing, review these notes:

  • Review the security considerations for your deployment.

  • If you want to use Redis on Flash (RoF) for your databases, review the prerequisites, storage requirements, and other considerations for RoF databases and prepare and format the flash memory.

    To prepare and format the flash memory:

  • Disable Linux swap on all cluster nodes.

  • Make sure that you have root-level access to each node, either directly or with sudo.

  • If you require the redislabs UID (user ID) and GID (group ID) numbers to be the same on all the nodes, create the redislabs user and group with the required numbers on each node.

  • When port 53 is in use, the installation fails. This is known to happen in default Ubuntu 18.04 installations in which systemd-resolved (DNS server) is running. To work around this issue, change the system configuration to make this port available before installation.

    Example steps to resolve the port 53 conflict:
  • Make sure that the OS is not using ports in the range that Redis assigns to databases.

    We recommend that you restrict the OS from using Redis ports range in /etc/sysctl.conf with `net.ipv4.ip_local_port_range = 30000 65535’.

Install on Linux

After you download the .tar file installation package, install the package on one of the nodes in the cluster.

To install from the CLI:

  1. Copy the installation package to the node.

    How do I know the package is authentic?
  2. On the node, change to the directory where the installation package is and extract the installation files:

    tar vxf <tarfile name>
    
  3. To install RS, run:

    sudo ./install.sh
    
    Note:
    • The RS files are installed in the default file locations.
    • By default, Redis Software runs on the OS as the redislabs user and redislabs group. If needed, you can specify a different user and group during the installation.
    • You must either be logged in as the root user or use sudo to run the install process.
  4. Answer the installation questions when shown to complete the installation process, including the rlcheck installation verification.

    Note:

    To install without answering the installation questions, either:

    • Run ./install.sh -y to answer yes to all of the questions.
    • Use an answer file to answer the installation questions.

    When the installation completes sucessfully, the IP address of the admin console is diplayed:

    Summary:
    -------
    ALL TESTS PASSED.
    2017-04-24 10:54:15 [!] Please logout and login again to make
    sure all environment changes are applied.
    2017-04-24 10:54:15 [!] Point your browser at the following
    URL to continue:
    2017-04-24 10:54:15 [!] https://<your_ip_here>:8443
    

    Redis Software is now installed on the node. Repeat this process for each node in the cluster.

  5. Create or join an existing Redis Software cluster.

  6. Create a database.

    For geo-distributed Active-Active replication, create an Active-Active database.

Custom installation directories

How can I customize the installation directories?
  • Redis Software is installed with the system user and group redislabs:redislabs
    How can I install using specific system user and group?

To install on Linux from the CLI:

  1. Copy the installation package to the node.

    scp redislabs-X.Y.Z-32-bionic-amd64.tar <username>@<ip_address>:/home
    
  2. On the node, change to the directory where the installation package is and extract the installation files:

    tar vxf <tarfile name>
    
  3. To install, run:

    sudo ./install.sh
    
    Note:
    • Files are installed in the default file locations.
    • Redis Software is installed and run under the redislabs user and redislabs group. You can also specify a different user during the installation.
    • You must either be logged in as the root user or use sudo to run the install process.
  4. Answer the installation questions when shown to complete the installation process, and run rlcheck to verify the installation.

    What are the installation questions?
    How can I do a silent install of RS?

    When install suceeds, the IP address of the admin console is shown:

    Summary:
    -------
    ALL TESTS PASSED.
    2017-04-24 10:54:15 [!] Please logout and login again to make
    sure all environment changes are applied.
    2017-04-24 10:54:15 [!] Point your browser at the following
    URL to continue:
    2017-04-24 10:54:15 [!] https://<your_ip_here>:8443
    

    Redis Software is now installed on the node. Repeat this process for each node in the cluster.

  5. Create or join an existing RS cluster.

  6. Create a database.

    For geo-distributed Active-Active replication, create an Active-Active database.

Set up the new cluster

A Redis Enterprise Software (RS) cluster typically consists of several nodes. For production deployments, Redis Labs recommends an uneven number of nodes, with a minimum of three.

Note:
In a cluster that consists of only one node, some features and capabilities are not enabled, such as database replication that provides high availability.

To set up a new cluster, you must first install the Redis Enterprise Software package and then set up the cluster as described below. After the cluster is created you can add multiple nodes to the cluster.

To create a cluster:

  1. In a browser, navigate to https://<name or IP address of the machine with RS installed>:8443. For example, if you installed RS on a machine with IP address 10.0.1.34, then navigate to https://10.0.1.34:8443.

    Note:
    • The RS management UI uses a self-signed SSL/TLS encryption.
    • If the machine has both an internal IP address and an external IP address, use the external IP address to access the setup UI.
  2. Click Setup.

  3. In the Node Configuration page that appears:

    1. Enter a path for Persistent storage, or leave the default path.

    2. Enter a path for Ephemeral storage, or leave the default path.

    3. If you want to enable Redis on Flash, select the Enable flash storage support checkbox and enter the path to the Flash storage.

    4. If your machine is configured to have multiple IP addresses, the section IP Addresses Usage is shown. Use the IP Addresses Usage section to assign a single IPv4 type address for internal traffic and multiple IPv4/IPv6 type addresses for external traffic.

    5. In Cluster configuration, select Create new cluster.

    6. In Cluster name (FQDN), enter a unique name for the cluster. Also, make sure that you look at the [instructions for setting up DNS](/rs/installing-upgrading/configuring/cluster-dns/ to make sure your cluster is reachable by name.

    7. Choose whether to Enable private & public endpoints support.

    8. Choose whether to Enable rack-zone awareness. Enabling rack-zone awareness requires setting the Rack-zone ID for the node.

    9. Click Next.

  4. If you purchased a cluster key, use the Cluster authentication page to enter the key. Otherwise, you get the trial license by default. Read the product Terms and Conditions and click Next.

  5. Click OK to confirm that you are aware of the replacement of the HTTPS SSL/TLS certificate on the node, and proceed through the browser warning.

  6. In the Set admin credentials fields, enter the credentials of the cluster administrator.

  7. Click Next.

After a short wait, your cluster is created and you can log in to the RS admin console.

Add nodes to the cluster

When you install Redis Enterprise Software (RS) on the first node of a cluster, you create the new cluster. After you install the first node, you can add more nodes to the cluster.

Note:

Before you add a node to the cluster:

  • The clocks on all nodes must always be synchronized.

    If the clock in the node you are trying to join to the cluster is not synchronized with the nodes already in the cluster, the action fails and an error message is shown indicating that you must synchronize the clocks first.

  • You must update the DNS records each time a node is added or replaced.

  • We recommend that you add nodes one after the other rather than in parallel to avoid errors that occur because the connection to the other nodes in the cluster cannot be verified.

To add a node in RS:

  1. Install the RS installation package on a clean installation of a supported operating system.

  2. To connect to the RS management UI of the new RS installation, go to: <https://URL or IP address:8443>

    For example, if you installed RS on a machine with IP address 10.0.1.34, go to https://10.0.1.34:8443.

    Tip -
    The RS management UI uses SSL encryption with a default certificate. You can also replace the TLS certificate with a custom certificate.
  3. To start configuring RS, click Setup.

  4. Configure the RS network and storage settings:

    1. You can enter a path for Persistent storage, or leave the default path.
    2. You can enter a path for Ephemeral storage, or leave the default path.
    3. If you want to enable Redis on Flash, select Enable flash storage support and enter the path to the Flash storage to use as RAM extension.
    4. If your machine has multiple IP addresses, in IP Addresses Usage assign a single IPv4 type address for internal traffic and multiple IPv4/IPv6 type addresses for external traffic.
  5. Join the new RS node to the cluster:

    1. In Cluster configuration, select Join cluster.

    2. Enter the internal IP address or DNS name of a node that is a cluster member.

      If the node only has one IP address, enter that IP address.

    3. Enter the credentials of the cluster administrator.

      The cluster administrator is the user account that you create when you configure the first node in the cluster.

  6. Click Next.

    If the cluster is configured to support rack-zone awareness, you are redirected to a page in which you must set the Rack-zone ID for the new node.

The node is added to the cluster. You can see it in the list of nodes in the cluster.

If you see an error when you add the node, try adding the node again.

Tip -
We recommend that you run the rlcheck utility to verify that the node is functioning properly.

Next steps

Now that your cluster is set up with nodes, you can: