Skip to content

Commit 2e1ed21

Browse files
authored
docs: Update documentation to describe how to use Advanced DR write endpoint. (GoogleCloudPlatform#1332)
1 parent a1d4ff4 commit 2e1ed21

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

README.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -348,14 +348,27 @@ conn = connector.connect(
348348
)
349349
```
350350

351-
### Using DNS domain names to identify instances
351+
### Using Advanced Disaster Recovery and DNS domain names to identify instances
352352

353-
The connector can be configured to use DNS to look up an instance. This would
354-
allow you to configure your application to connect to a database instance, and
355-
centrally configure which instance in your DNS zone.
353+
The connector can be configured to use DNS to look up an instance.
354+
Use a DNS name managed by Cloud SQL [Advanced Disaster Recovery](https://docs.cloud.google.com/sql/docs/mysql/use-advanced-disaster-recovery),
355+
or a domain name that you manage.
356+
357+
#### Using Advanced Recovery Write Endpoint DNS Name
358+
359+
[Advanced Disaster Recovery](https://docs.cloud.google.com/sql/docs/mysql/use-advanced-disaster-recovery)
360+
creates geographically distributed replicas of your Cloud SQL database instance. When you perform
361+
switchover or failover on the database instance, the connector will gracefully disconnect from the
362+
old primary instance and reconnect to the new primary instance.
363+
364+
Follow the instructions in [Connect using Write Endpoint](https://docs.cloud.google.com/sql/docs/mysql/connect-to-instance-using-write-endpoint)
365+
to get the write endpoint DNS name for your primary instance. Then, use this write endpoint DNS
366+
name to configure the connector.
356367

357368
#### Configure your DNS Records
358369

370+
The connector may be configured to use DNS that you define as well.
371+
359372
Add a DNS TXT record for the Cloud SQL instance to a **private** DNS server
360373
or a private Google Cloud DNS Zone used by your application.
361374

0 commit comments

Comments
 (0)