GoogleCloudPlatform / GoogleCloudPlatform/cloud-sql-proxy

Add support for `--failover-period` flag

Aperta
#2,386 0 commenti 0 reazioni 1 assegnatario Assegnata a @hessjcg Vedi su GitHub
priority: p1 type: feature request
Lingua principale
Go
Stelle
1.4k
Fork
352
Merge medio
14h 54m
PR unite (30g)
5

Descrizione

We need to add a flag for configuring the underlying failover period for
disaster recovery when Proxy is configured with a DNS domain name.

The flag will just set the `WithFailoverPeriod()` Option for the Cloud SQL Go Connector under the hood.

> The connector will poll for changes to the DNS name every 30 seconds by default.
You may configure the frequency of the connections using the option
`WithFailoverPeriod(d time.Duration)`. When this is set to 0, the connector will
disable polling and only check if the DNS record changed when it is
creating a new connection.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.