Add a Cross Cluster Connection

Add a cross cluster connection to enable cross cluster operations for a cluster.

    1. Open the navigation menu and click Databases. Under OpenSearch, click Clusters.

    2. Under List scope, select the compartment that contains the cluster.

    3. In the Clusters list, click the name of the cluster that you want to add the cross cluster connection to.

    4. In the Resources section, click Cross cluster connections.
    5. Click Add connection.
    6. For Inbound, specify the cluster OCID for the cluster you want to connect to from the current cluster. To add connections for more clusters, click Add cluster.
    7. Click Outbound, specify a name for the cross cluster connection, and then specify the OCID for the cluster you want to configure the connection settings for.
      Tip

      You must add the cluster on the Inbound page before you can configure the cross cluster connection on the Outbound page.
    8. Specify the value for Ping schedule and whether to skip the remote cluster if the nodes are unavailable during the search.
    9. Click Add cluster and repeat steps 6 to 8 for any other clusters you want to configure connections for. After you finish adding all the connections, click Submit.
  • Use the configureoutboundcluster command and required parameters to add a cross cluster connection:

    oci opensearch cluster configureoutboundcluster --inbound-cluster-ids file://<inbound-clusterIDs-file>.json --opensearch-cluster-id cluster_ocid

    The following is an example of the json for a file containing the inbound cluster IDs:

    { "inboundClusterIds": ["ocid1.opensearchcluster.oc1.iad.inbound_cluster1_unique_id"], "opensearchClusterId": "ocid1.opensearchcluster.oc1.iad.inbound_cluster2_unique_id" }

    For a complete list of flags and variable options for CLI commands, see the Command Line Reference.

  • For information about using the API and signing requests, see REST APIs and Security Credentials. For information about SDKs, see Software Development Kits and Command Line Interface.

    Run the ConfigureOutboundCluster to add a cross cluster connection.

    Run the UpdateOpensearchCluster operation to configure the cross cluster connections for the cluster.