GoogleCloudPlatform / GoogleCloudPlatform/cloud-sql-jdbc-socket-factory

Provide support for loadBalanceHosts connection property

Open
#124 22 comments 9 reactions 1 assignee Assigned to @hessjcg View on GitHub
priority: p1 type: feature request
Dominant language
Java
Stars
255
Forks
117
Avg merge
2d 19h
Merged PRs (30d)
4

Description

PgJDBC supports [connection load balancing and fail-over](https://jdbc.postgresql.org/documentation/head/connect.html#connection-failover) by accepting a comma-separated list of hosts in the connection string. These hosts are then chosen from serially, or randomly if the `loadBalanceHosts` property is included in the connection string. New connections can be established if any single host is unavailable, giving the appearance of high-availability to the application.

With this library, the host is just "google" and instances are passed through the non-standard `cloudSqlInstance` property. How can I ensure load balancing and high-availability using this library?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.