Reference documentation and code samples for the Memorystore V1 API module Google::Cloud::Memorystore::V1::CrossInstanceReplicationConfig::InstanceRole.
The role of the instance in cross instance replication.
Constants
INSTANCE_ROLE_UNSPECIFIED
value: 0 instance role is not set.
The behavior is equivalent to NONE.
NONE
value: 1 This instance does not participate in cross instance replication. It is
an independent instance and does not replicate to or from any other
instances.
PRIMARY
value: 2 A instance that allows both reads and writes. Any data written to this
instance is also replicated to the attached secondary instances.
SECONDARY
value: 3 A instance that allows only reads and replicates data from a primary
instance.
[[["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-04 UTC."],[],[],null,["# Memorystore V1 API - Module Google::Cloud::Memorystore::V1::CrossInstanceReplicationConfig::InstanceRole (v1.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.0 (latest)](/ruby/docs/reference/google-cloud-memorystore-v1/latest/Google-Cloud-Memorystore-V1-CrossInstanceReplicationConfig-InstanceRole)\n- [1.1.1](/ruby/docs/reference/google-cloud-memorystore-v1/1.1.1/Google-Cloud-Memorystore-V1-CrossInstanceReplicationConfig-InstanceRole)\n- [1.0.0](/ruby/docs/reference/google-cloud-memorystore-v1/1.0.0/Google-Cloud-Memorystore-V1-CrossInstanceReplicationConfig-InstanceRole)\n- [0.3.0](/ruby/docs/reference/google-cloud-memorystore-v1/0.3.0/Google-Cloud-Memorystore-V1-CrossInstanceReplicationConfig-InstanceRole)\n- [0.2.0](/ruby/docs/reference/google-cloud-memorystore-v1/0.2.0/Google-Cloud-Memorystore-V1-CrossInstanceReplicationConfig-InstanceRole)\n- [0.1.0](/ruby/docs/reference/google-cloud-memorystore-v1/0.1.0/Google-Cloud-Memorystore-V1-CrossInstanceReplicationConfig-InstanceRole) \nReference documentation and code samples for the Memorystore V1 API module Google::Cloud::Memorystore::V1::CrossInstanceReplicationConfig::InstanceRole.\n\nThe role of the instance in cross instance replication.\n\nConstants\n---------\n\n### INSTANCE_ROLE_UNSPECIFIED\n\n**value:** 0 \ninstance role is not set.\nThe behavior is equivalent to NONE.\n\n### NONE\n\n**value:** 1 \nThis instance does not participate in cross instance replication. It is\nan independent instance and does not replicate to or from any other\ninstances.\n\n### PRIMARY\n\n**value:** 2 \nA instance that allows both reads and writes. Any data written to this\ninstance is also replicated to the attached secondary instances.\n\n### SECONDARY\n\n**value:** 3 \nA instance that allows only reads and replicates data from a primary\ninstance."]]