DemoteMasterContext
import type { DemoteMasterContext } from "https://googleapis.deno.dev/v1/sqladmin:v1.ts";
Database instance demote primary instance context.
interface DemoteMasterContext {
kind?: string;
masterInstanceName?: string;
replicaConfiguration?: DemoteMasterConfiguration;
skipReplicationSetup?: boolean;
verifyGtidConsistency?: boolean;
}§Properties
§
masterInstanceName?: string
[src]The name of the instance which will act as on-premises primary instance in the replication setup.
§
replicaConfiguration?: DemoteMasterConfiguration
[src]Configuration specific to read-replicas replicating from the on-premises primary instance.
§
verifyGtidConsistency?: boolean
[src]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.