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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Google Cloud Memorystore for Redis V1 API - Module Google::Cloud::Redis::Cluster::V1::CrossClusterReplicationConfig::ClusterRole (v1.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.1.0 (latest)](/ruby/docs/reference/google-cloud-redis-cluster-v1/latest/Google-Cloud-Redis-Cluster-V1-CrossClusterReplicationConfig-ClusterRole)\n- [1.0.1](/ruby/docs/reference/google-cloud-redis-cluster-v1/1.0.1/Google-Cloud-Redis-Cluster-V1-CrossClusterReplicationConfig-ClusterRole)\n- [0.6.0](/ruby/docs/reference/google-cloud-redis-cluster-v1/0.6.0/Google-Cloud-Redis-Cluster-V1-CrossClusterReplicationConfig-ClusterRole)\n- [0.5.0](/ruby/docs/reference/google-cloud-redis-cluster-v1/0.5.0/Google-Cloud-Redis-Cluster-V1-CrossClusterReplicationConfig-ClusterRole)\n- [0.4.2](/ruby/docs/reference/google-cloud-redis-cluster-v1/0.4.2/Google-Cloud-Redis-Cluster-V1-CrossClusterReplicationConfig-ClusterRole)\n- [0.3.0](/ruby/docs/reference/google-cloud-redis-cluster-v1/0.3.0/Google-Cloud-Redis-Cluster-V1-CrossClusterReplicationConfig-ClusterRole)\n- [0.2.2](/ruby/docs/reference/google-cloud-redis-cluster-v1/0.2.2/Google-Cloud-Redis-Cluster-V1-CrossClusterReplicationConfig-ClusterRole)\n- [0.1.0](/ruby/docs/reference/google-cloud-redis-cluster-v1/0.1.0/Google-Cloud-Redis-Cluster-V1-CrossClusterReplicationConfig-ClusterRole) \nReference documentation and code samples for the Google Cloud Memorystore for Redis V1 API module Google::Cloud::Redis::Cluster::V1::CrossClusterReplicationConfig::ClusterRole.\n\nThe role of the cluster in cross cluster replication.\n\nConstants\n---------\n\n### CLUSTER_ROLE_UNSPECIFIED\n\n**value:** 0 \nCluster role is not set.\nThe behavior is equivalent to NONE.\n\n### NONE\n\n**value:** 1 \nThis cluster does not participate in cross cluster replication. It is an\nindependent cluster and does not replicate to or from any other clusters.\n\n### PRIMARY\n\n**value:** 2 \nA cluster that allows both reads and writes. Any data written to this\ncluster is also replicated to the attached secondary clusters.\n\n### SECONDARY\n\n**value:** 3 \nA cluster that allows only reads and replicates data from a primary\ncluster."]]