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

  1. 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.
    1. Access the /usr/local/horizon/conf/runtime-config.properties file for editing.
      vi /usr/local/horizon/conf/runtime-config.properties
    2. Change the following line in the file:
      analytics.replication.peers=https://LB_FQDN_of_second_cluster

      to

      analytics.replication.peers=https://LB_FQDN_of_primary_cluster
  2. Restart the Workspace ONE Access service on all the nodes.
    service horizon-workspace restart
  3. 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
    }