To install Redis Enterprise Software (RS), you must first choose the supported platform that you want to deploy on. In addition to Linux operating systems (Ubuntu, RHEL/CentOS, Oracle Linux), you can also deploy RS with:

To access the installation package for any of these platforms:

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

In this article we walk you through the process for installing the RS installation package for Linux.

Prerequisites

  • 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.

  • 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 running the RS installation.

    Example steps to resolve the port 53 conflict:

Installing RS on Linux

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

To install RS on Linux from the CLI:

  1. Copy the installation package to the node.
  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 -
    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 RS 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.

    After RS is successfully installed, the IP address of the RS web UI 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

RS is now installed on the node. Repeat this process for each node in the cluster. Then:

  1. Create or join an existing RS cluster.
  2. Create a database.

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

Installation questions

During the installation process, you must answer a few questions to configure the node for your environment. These installation questions are:

  • Linux swap file - Swap is enabled. Do you want to proceed? [Y/N]?

    We recommend that you disable Linux swap in the operating system configuration to give RS control of the memory allocation.

  • Automatic OS tuning - Do you want to automatically tune the system for best performance [Y/N]?

    To let the RS installation optimize the OS for Redis Enterprise, answer Y. The installation process prompts you for additional information.

    The /opt/redislabs/sbin/systune.sh file contains details about the tuning process.

  • Network time - Do you want to set up NTP time synchronization now [Y/N]?

    Redis Enterprise requires that all cluster nodes have synchronized time. You can either let the installation process configure NTP or you can configure NTP manually.

  • Firewall ports - Would you like to open RedisLabs cluster ports on the default firewall zone [Y/N]?

    RS requires the node to have specific network ports open. You can either:

    • Answer Y to let the installation process open these ports.
    • Answer N and configure the firewall manually for RHEL/CentOS firewall.
    • Answer N and configure the firewall on the node manually for your OS.
  • Installation verification (rlcheck) - Would you like to run rlcheck to verify proper configuration? [Y/N]?

    We recommend that you run the rlckeck installation verification to make sure that the installation completed succesfully. If you want to run this verification at a later time, you can run: /opt/redislabs/bin/rlcheck

Installation answer file

To avoid answering the installation questions during the installation process, you can prepare an answer file and use it to do a silent installation.

To install RS with an answer file:

  1. Prepare the answer file with the answers to the installation questions.

    The answer file can contain any of the parameters for the installation questions and yes or no to indicate the answer for the question.

    For example:

    ignore_swap=no
    systune=yes
    ntp=no
    firewall=no
    rlcheck=yes
    Note -
    If you use systune=yes, the installation answers yes to all of the system tuning questions.
  2. Run the install script with -c and the path to the answer file.

    For example:

    ./install.sh -c /home/user/answers