How to setup HAA Active Active (2 Geo locations)?
- Installation of HA Add-On Software: Execute the below commands
· mkdir redisfolder
· cd redisfolder
· chmod +x haa.sh
· ./haa. sh -y
- Create HA Add-On Cluster
· In the web browser on the host machine, go to https://localhost:8443 to see the HAA Software web console.
Note :: Depending on the browser used, a certificate error might be seen. But a safe continuation to the web console is possible.
· Click Setup to start the node configuration steps
· In the Node Configuration settings, enter a cluster FQDN such as cluster.local. Then click Next button
· Enter your license key, if you have one. If not, click the Next button to use the trial version
· Enter an email and password for the admin account for the web console.
· 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.
- Add Remaining Nodes to HA Add-On Cluster.
- Once the clusters have been created, follow these steps to join any additional nodes:
- Repeat Install HA Add-On Software on each node in the cluster.
· Navigate to the RS management UI using the address: https://<new_node_IP>:8443.
For example, if the node is installed on a machine with the 10.10.25.192 IP address, you have to navigate to https://10.10.25.192:8443.
· Click Setup. The Node Configuration page appears.
· Open the Cluster Configuration tab and:
a. select the Join cluster radio button;
b. in the IP address of a node in the cluster field, enter the IP address of any node in the cluster;
c. in the Verify cluster admin credentials fields, enter the email and password used when creating the cluster.
· Click Next. The node is added to the cluster and the management UI appears.
· Repeat Steps for HAA cluster in the Second Data Center/Site
6. DNS Configuration for HA Add-On (Windows DNS Server)
The cluster name will be a prefix of an existing zone in DNS. For example, if the existing zone is example.com, the cluster name would be redislabscluster.example.com .
The steps to create the DNS setting are as follows:
1. Create the delegation
· Right-click on the higher-level zone (example.com), and create a New Delegation.
· In the New Delegation Wizard, the Delegated Domain Name would be redislabscluster (in this example).
· Add a new Name Server with Add…
· In the Server FQDN field, enter the IP address of node1 and click Resolve. This is OK for now; you will change it later.
2. Create the IP address records for the nodes in the cluster in the higher-level zone
· Right-click on the higher-level zone (example.com), and select New Host (A or AAAA)...
· Name field would be node1.redislabscluster in this example (note: not fully qualified). Also enter the IP address for node1. Each node will be defined by the node number and IP that appear in the Redis Labs “rladmin status” command line utility.
· Repeat for node2 and node3, creating their A records as well.
3. Configure the NS record
4. Click on the delegated zone, and right-click on the Name Server record to get its properties.
· Click Edit… and type the FQDN for node1 in the Server FQDN field, node1.redislabscluster.example.com (in this example).
· Click Resolve, then click OK, then click Apply. If you are asked to delete the old glue record (the one with the IP address only), click Yes.
· Repeat the process for node2 and node3 by clicking Add and adding the FQDN for node2 and node3 in the Name Server Record.
5. Refresh the zone
· Note for Win 2008 DNS Manager: The A records may disappear from the DNS Manager GUI once the zone is refreshed. In case troubleshooting is required, check C:\Windows\System32\dns\<name_of_forward_lookup_zone> to verify that the A-records and NS records exist.
6. It may take a few minutes, but once the DNS change is propagated, it should be possible to ping each node and the newly created database by FQDN.
7. Joining HA Add-on Clusters
1. After you login to cluster1.local, select the Redis database and deployment type Geo-Distributed. Then click Next.
2. In create database, click the show advanced option and:
· For the database name, enter: database1
· For the endpoint port number, enter: 12000<p class="MsoListParagraph"