Skip to content

Commit 06e7204

Browse files
authored
docs: Update documentation to describe how to use Advanced DR write endpoint. (#2226)
1 parent 3a9043b commit 06e7204

File tree

2 files changed

+32
-8
lines changed

2 files changed

+32
-8
lines changed

docs/jdbc.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -563,16 +563,27 @@ Properties connProps = new Properties();
563563
connProps.setProperty("cloudSqlRefreshStrategy", "lazy");
564564
```
565565

566+
### Using Advanced Disaster Recovery and DNS domain names to identify instances
566567

568+
The connector can be configured to use DNS to look up an instance.
569+
Use a DNS name managed by Cloud SQL [Advanced Disaster Recovery](https://docs.cloud.google.com/sql/docs/mysql/use-advanced-disaster-recovery),
570+
or a domain name that you manage.
567571

568-
### Using DNS domain names to identify instances
572+
#### Using Advanced Recovery Write Endpoint DNS Name
569573

570-
The connector can be configured to use DNS to look up an instance. This would
571-
allow you to configure your application to connect to a database instance, and
572-
centrally configure which instance in your DNS zone.
574+
[Advanced Disaster Recovery](https://docs.cloud.google.com/sql/docs/mysql/use-advanced-disaster-recovery)
575+
creates geographically distributed replicas of your Cloud SQL database instance. When you perform
576+
switchover or failover on the database instance, the connector will gracefully disconnect from the
577+
old primary instance and reconnect to the new primary instance.
578+
579+
Follow the instructions in [Connect using Write Endpoint](https://docs.cloud.google.com/sql/docs/mysql/connect-to-instance-using-write-endpoint)
580+
to get the write endpoint DNS name for your primary instance. Then, use this write endpoint DNS
581+
name to configure the connector.
573582

574583
#### Configure your DNS Records
575584

585+
The connector may be configured to use DNS that you define as well.
586+
576587
Add a DNS TXT record for the Cloud SQL instance to a **private** DNS server
577588
or a private Google Cloud DNS Zone used by your application.
578589

docs/r2dbc.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -362,14 +362,27 @@ ConnectionFactoryOptions options = ConnectionFactoryOptions.builder()
362362
.build;
363363
```
364364

365-
### Using DNS domain names to identify instances
365+
### Using Advanced Disaster Recovery and DNS domain names to identify instances
366366

367-
The connector can be configured to use DNS to look up an instance. This would
368-
allow you to configure your application to connect to a database instance, and
369-
centrally configure which instance in your DNS zone.
367+
The connector can be configured to use DNS to look up an instance.
368+
Use a DNS name managed by Cloud SQL [Advanced Disaster Recovery](https://docs.cloud.google.com/sql/docs/mysql/use-advanced-disaster-recovery),
369+
or a domain name that you manage.
370+
371+
#### Using Advanced Recovery Write Endpoint DNS Name
372+
373+
[Advanced Disaster Recovery](https://docs.cloud.google.com/sql/docs/mysql/use-advanced-disaster-recovery)
374+
creates geographically distributed replicas of your Cloud SQL database instance. When you perform
375+
switchover or failover on the database instance, the connector will gracefully disconnect from the
376+
old primary instance and reconnect to the new primary instance.
377+
378+
Follow the instructions in [Connect using Write Endpoint](https://docs.cloud.google.com/sql/docs/mysql/connect-to-instance-using-write-endpoint)
379+
to get the write endpoint DNS name for your primary instance. Then, use this write endpoint DNS
380+
name to configure the connector.
370381

371382
#### Configure your DNS Records
372383

384+
The connector may be configured to use DNS that you define as well.
385+
373386
Add a DNS TXT record for the Cloud SQL instance to a **private** DNS server
374387
or a private Google Cloud DNS Zone used by your application.
375388

0 commit comments

Comments
 (0)