Google Cloud Memorystore V1 Client - Class InstanceRole (0.4.1)

Reference documentation and code samples for the Google Cloud Memorystore V1 Client class InstanceRole.

The role of the instance in cross instance replication.

Protobuf type google.cloud.memorystore.v1.CrossInstanceReplicationConfig.InstanceRole

Namespace

Google \ Cloud \ Memorystore \ V1 \ CrossInstanceReplicationConfig

Methods

static::name

Parameter
Name Description
value mixed

static::value

Parameter
Name Description
name mixed

Constants

INSTANCE_ROLE_UNSPECIFIED

Value: 0

instance role is not set.

The behavior is equivalent to NONE.

Generated from protobuf enum INSTANCE_ROLE_UNSPECIFIED = 0;

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.

Generated from protobuf enum NONE = 1;

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.

Generated from protobuf enum PRIMARY = 2;

SECONDARY

Value: 3

A instance that allows only reads and replicates data from a primary instance.

Generated from protobuf enum SECONDARY = 3;