Getting a Sharded Cluster's Connection Details

Get the private IPs you use to connect to a sharded cluster.

Unlike non-sharded clusters, sharded clusters don't have primary or replica endpoints at the cluster level that you use to connect to the cluster. Instead, the sharded cluster has private endpoints to each shard's node. For reliability purposes, we recommend that you specify the primary node private endpoint for three of the cluster's shards in your application's connection code. The endpoint identifies the shard and node that the endpoint connects to, using the following endpoint pattern:

<ID>-<shard_number>-<node_number>.redis.<region_ID>.oci.oraclecloud.com

The <node_number> in a primary node's endpoint is always 1. For example, the following endpoint is for the second shard's primary node, for a sharded cluster in the us-phoenix-1 region:

<Unique_ID>-2-1.redis.us-phoenix-1.oci.oraclecloud.com