cloud-sql-proxy icon indicating copy to clipboard operation
cloud-sql-proxy copied to clipboard

Add support for `--failover-period` flag

Open jackwotherspoon opened this issue 8 months ago • 0 comments

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.

jackwotherspoon avatar Feb 14 '25 20:02 jackwotherspoon