After you create nodes in the secondary data center by using the OVA file exported from the primary data center, configure the nodes for Elasticsearch replication.
Follow these steps for each node in the secondary data center.
Procedure
- Add the load balancer FQDN of the primary data center cluster to the /usr/local/horizon/conf/runtime-config.properties file of each node in the secondary data center cluster.
- Edit the /usr/local/horizon/conf/runtime-config.properties file.
vi /usr/local/horizon/conf/runtime-config.properties
- Add this line to the file:
analytics.replication.peers=https://LB_FQDN_of_primary_cluster
- Restart the VMware Identity Manager service on all the nodes.
service horizon-workspace restart
- Verify that the cluster is set up correctly by running the following command on all the nodes in the cluster.
curl 'http://localhost:9200/_cluster/health?pretty'
The command, which verifies Elasticsearch health, should return a result similar to the following.
{
"cluster_name" : "horizon",
"status" : "green",
"timed_out" : false,
"number_of_nodes" : 3,
"number_of_data_nodes" : 3,
"active_primary_shards" : 20,
"active_shards" : 40,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 0,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0
}