Adding a Cross-Cluster Connection in Search with OpenSearch
Add a cross cluster connection to enable cross cluster operations for a cluster.
Add cross-cluster connections to perform cross-cluster search (CCS) or cross-cluster replication (CCR) in OCI Search with OpenSearch. First configure the accepting cluster, then create an alias on the connecting cluster. For the cluster roles and complete sequence, see the complete CCS and CCR setup examples.
For CCS, the accepting cluster is the remote cluster and the connecting cluster is the coordinator. For CCR, the accepting cluster is the leader and the connecting cluster is the follower. Use the configureoutboundcluster command on the accepting cluster to configure the complete list of clusters allowed to connect. This is the remote cluster for CCS or the leader for CCR.
oci opensearch cluster configureoutboundcluster --inbound-cluster-ids file://<inbound-clusterIDs-file>.json --opensearch-cluster-id <accepting_cluster_ocid> --wait-for-state SUCCEEDEDThe file passed to
--inbound-cluster-idscontains a JSON array, not a complete command object. Include all existing OCIDs that you want to retain. For example:[ "ocid1.opensearchcluster.oc1.iad.<connecting_cluster1_unique_id>", "ocid1.opensearchcluster.oc1.iad.<connecting_cluster2_unique_id>" ]A complete command object belongs with
--from-json. After the first work request succeeds and the accepting cluster returns to Active, runoci opensearch cluster updateon the connecting cluster to create the alias. See the complete CCS and CCR setup examples.For a complete list of parameters and values for CLI commands, see the CLI Command 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 ConfigureOutboundCluster on the accepting cluster: the CCS remote cluster or CCR leader. Set
inboundClusterIdsto the complete list of connecting cluster OCIDs to retain.After the work request succeeds and the accepting cluster returns to Active, run UpdateOpensearchCluster on the connecting cluster: the CCS coordinator or CCR follower. Create the initial alias with the accepting cluster OCID as
seedClusterId. See the complete CCS and CCR setup examples.