Updating a Cross-Cluster Connection in Search with OpenSearch
Edit the settings for a cross-cluster connection.
Edit an existing Outbound cross-cluster connection on the cluster where the alias is configured: the cross-cluster search (CCS) coordinating cluster or cross-cluster replication (CCR) follower. Inbound connections don't offer the Edit action.
For initial setup, see the complete CCS and CCR setup examples. The CLI and API update operation can also create the initial alias.
Use the oci opensearch cluster update command on the cluster holding the alias: the CCS coordinating cluster or CCR follower. Include every
outboundClustersentry that you want to retain. Use the current cluster display name:oci opensearch cluster update --from-json "file://<config_file_name>.json" --display-name "<current_cluster_display_name>" --wait-for-state SUCCEEDEDThe following is an example of the JSON for a cross-cluster connection configuration file:
{ "outboundClusterConfig": { "isEnabled": true, "outboundClusters": [ { "displayName": "remote-cluster", "isSkipUnavailable": true, "seedClusterId": "ocid1.opensearchcluster.oc1.iad.<accepting_cluster_unique_id>", "mode": "SEARCH_AND_REPLICATION" } ] }, "opensearchClusterId": "ocid1.opensearchcluster.oc1.iad.<connecting_cluster_unique_id>" }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 the UpdateOpensearchCluster operation to edit the configuration for a cross-cluster connection.
Run the update on the cluster holding the alias: the CCS coordinating cluster or CCR follower. Supply the complete
outboundClusterslist of connections that you want to retain. For initial alias creation, see the complete CCS and CCR setup examples.