DemoteMasterContext(mapping=None, *, ignore_unknown_fields=False, **kwargs)Database instance demote primary instance context.
Attributes |
|
|---|---|
| Name | Description |
kind |
str
This is always sql#demoteMasterContext.
|
verify_gtid_consistency |
google.protobuf.wrappers_pb2.BoolValue
Verify the GTID consistency for demote operation. Default value: True. Setting this flag to false enables you
to bypass the GTID consistency check between on-premises
primary instance and Cloud SQL instance during the demotion
operation but also exposes you to the risk of future
replication failures. Change the value only if you know the
reason for the GTID divergence and are confident that doing
so will not cause any replication issues.
|
master_instance_name |
str
The name of the instance which will act as on-premises primary instance in the replication setup. |
replica_configuration |
google.cloud.sqladmin_v1.types.DemoteMasterConfiguration
Configuration specific to read-replicas replicating from the on-premises primary instance. |
skip_replication_setup |
bool
Flag to skip replication setup on the instance. |