# Google Cloud Memorystore for Redis V1 API - Module Google::Cloud::Redis::Cluster::V1::CrossClusterReplicationConfig::ClusterRole (v1.7.0)

1.7.0 (latest) 1.6.0 1.5.1 1.4.0 1.3.1 1.2.0 1.1.0 1.0.1 0.6.0 0.5.0 0.4.2 0.3.0 0.2.2 0.1.0 Reference documentation and code samples for the Google Cloud Memorystore for Redis V1 API module Google::Cloud::Redis::Cluster::V1::CrossClusterReplicationConfig::ClusterRole.

The role of the cluster in cross cluster replication.

## Constants

### CLUSTER_ROLE_UNSPECIFIED

**value:** 0  
Cluster role is not set.
The behavior is equivalent to NONE.

### NONE

**value:** 1  
This cluster does not participate in cross cluster replication. It is an
independent cluster and does not replicate to or from any other clusters.

### PRIMARY

**value:** 2  
A cluster that allows both reads and writes. Any data written to this
cluster is also replicated to the attached secondary clusters.

### SECONDARY

**value:** 3  
A cluster that allows only reads and replicates data from a primary
cluster.