Redis Enterprise configuration

Steps for configuration of Redis Enterprise (with CentOS 7)

Redis Enterprise / HA Addon
Using CentOS 7

 

1. Configuring the CentOS Server

1.1 Update the server and install wget

yum update -y

yum install wget -y

 

1.2 Configure the Firewall

Required ports to be opened: https://docs.redislabs.com/latest/rs/administering/designing-production/networking/port-configurations/

firewall-cmd --permanent --direct --add-rule ipv4 filter INPUT 0 -p icmp -s 0.0.0.0/0 -d 0.0.0.0/0 -j ACCEPT

firewall-cmd --permanent --add-port=1968/tcp

firewall-cmd --permanent --add-port=3333/tcp

firewall-cmd --permanent --add-port=3334/tcp

firewall-cmd --permanent --add-port=3335/tcp

firewall-cmd --permanent --add-port=3336/tcp

firewall-cmd --permanent --add-port=3337/tcp

firewall-cmd --permanent --add-port=3338/tcp

firewall-cmd --permanent --add-port=3339/tcp

firewall-cmd --permanent --add-port=36379/tcp

firewall-cmd --permanent --add-port=36380/tcp

firewall-cmd --permanent --add-port=8001/tcp

firewall-cmd --permanent --add-port=8443/tcp

firewall-cmd --permanent --add-port=8444/tcp

firewall-cmd --permanent --add-port=9080/tcp

firewall-cmd --permanent --add-port=9081/tcp

firewall-cmd --permanent --add-port=8070/tcp

firewall-cmd --permanent --add-port=8071/tcp

firewall-cmd --permanent --add-port=8080/tcp

firewall-cmd --permanent --add-port=9443/tcp

firewall-cmd --permanent --add-port=10000-19999/tcp

firewall-cmd --permanent --add-port=20000-29999/tcp

firewall-cmd --permanent --add-port=53/udp

firewall-cmd --permanent --add-port=5353/udp

sudo systemctl restart firewalld.service

 

Or, if willing to disable the firewall altogether:

systemctl disable firewall

systemctl stop firewall

 

1.3 Disable Swap

sudo swapoff -a

sudo sed -i.bak '/ swap / s/^(.*)$/#1/g' /etc/fstab

 

1.4 Download and install Redis Enterprise

wget https://s3.amazonaws.com/redis-enterprise-software-downloads/5.4.0/redislabs-5.4.0-19-rhel7-x86_64.tar

tar vxf redislabs-5.4.0-19-rhel7-x86_64.tar

./install.sh -y

2. Configuring DNS

2.1 Configure Host

On the DNS server, open the DNS manager and select the domain in the Forward Lookup Zones. Right click the domain and select New Host (A or AAAA) and enter the server name and IP address the node. Repeat for all nodes.

 

2.2 Create a Delegation

Right click on the domain again and select New Delegation.
Set the delegated domain as the same name as the cluster will be. Ex: testcluster.uipath.com
Add all of your nodes by clicking Add… and searching for the FQDNs configured in step 2.1 Configure Host.

3. Configuring Redis Enterprise

3.1 Node configuration

Persistent storage path, ephemeral storage path, enable flash storage support, and IP address usage can be kept as their defaults.

When creating a new cluster, be sure to use the FQDN in the cluster name field.
Ex: testcluster.uipath.com.

When connecting to a cluster, enter the IP address of a node in the cluster and the admin credentials of the cluster.

3.2 Cluster authentication

Enter your full license key here. Licenses are in this format:

License Owner: Name

Cluster Name : #

Shards limit : #

Valid        : Dates

 

----- LICENSE START -----

key

----- LICENSE END -----

 

3.3 Set Admin Credentials

Choose an admin account credentials.