Table of Contents

Configuring multiple OpenSearch clusters

From DataMiner 10.3.0/10.3.3 onwards, you can have data offloaded to multiple OpenSearch clusters, i.e. one main cluster and several replicated clusters. Data is always read from the main cluster, but data updates are sent to all clusters.

To configure this setup, proceed as follows:

  1. In the C:\Skyline DataMiner\ folder, open DB.xml.

  2. For each OpenSearch cluster, add a DataBase tag with the following configuration:

    • active attribute: Set this to "true" if you wish your OpenSearch cluster to be added to the list of clusters to offload data to.

    • search attribute: Always set this to "true".

    • ID attribute: This should be a unique number, preferably starting at 0 and increasing by 1 for each additional cluster. The ID for a specific database must be the same on any DataMiner Agent.

    • priorityOrder attribute: Indicates the priority of the different clusters. The lower the value, the greater the priority. The cluster with the lowest value is the main cluster, from which data will be read.

    • type attribute: Always set this to "ElasticSearch". This is necessary for legacy and compatibility reasons.

    • DBServer: The hosts of the cluster, separated by commas (see Indexing database settings)

    • UID: The username to connect to OpenSearch.

    • PWD: The password to connect to OpenSearch.

    • DB: The prefix for the OpenSearch indexes. The specified value must be the same for each OpenSearch cluster defined in DB.xml.

    • FileOffloadIdentifier: String used to identify this connection. Each connection should have a different identifier, which will be used for file offloads.

    Example:

    <DataBases>
         <!-- Reads will be handled by the ElasticCluster with the lowest priorityOrder -->
         <DataBase active="true" search="true" ID="0" priorityOrder="0" type="ElasticSearch">
             <DBServer>localhost</DBServer>
             <UID />
             <PWD>root</PWD>
             <DB>dms</DB>
             <!--
             Used by file offload (i.e. when the connection with the Elastic cluster is not
             available) for tagging the offloaded data with.
            Should be different for each defined Elastic cluster connection.
             -->
             <FileOffloadIdentifier>cluster1</FileOffloadIdentifier>
         </DataBase>
         <DataBase active="true" search="true" ID="0" priorityOrder="1" type="ElasticSearch">
             <DBServer>10.11.1.44,10.11.2.44,10.11.3.44</DBServer>
             <UID />
             <PWD>root</PWD>
             <DB>dms</DB>
             <FileOffloadIdentifier>cluster2</FileOffloadIdentifier>
         </DataBase>
    </DataBases>
    
  3. Remove or disable any previous OpenSearch/Elasticsearch configuration from DB.xml.

  4. Restart DataMiner.

Note

If an exception occurs for one of the replicated clusters, an alarm will be generated in the Alarm Console, indicating that not all data might be replicated. If further errors occur, no new alarms are created until the DMA is restarted.

Troubleshooting

During normal operation, DataMiner will offload the data written to both OpenSearch clusters simultaneously.

If one of the clusters goes down, an error will be displayed in the Alarm Console to indicate that the indexing cluster is down: All nodes in the indexing cluster are down and/or All nodes in the replicated indexing cluster [IP1, IP2,...] are down.

If this happens, you need to alter the priorityOrder (see above) so that the backup indexing cluster becomes active. Specifically, this means setting priorityOrder="0" where the priorityOrder used to be 1 and the other way around. After you have done so, restart DataMiner. This should restore DataMiner to a functional state.

Important

If the main OpenSearch cluster goes down, it will need to be restored afterwards. Make sure you have a backup set up to restore. To restore the backup, stop DataMiner completely and then restore the backup to the node that is out of sync. For more detailed information, see Configuring OpenSearch backups.

Tip

For more troubleshooting information, see Troubleshooting – OpenSearch