-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PgClient: support multi hosts connection #1250
Comments
I think you can already do this using a list of Vert.x will pick a different database for each new connection in a round-robin fashion. |
@tsegismont , round-robin does not help us with It would be great if PgClient could choose only preferred/required servers (primary, secondary etc. HostRequirement). We cannot correctly use HA Postgres clusters without it. Classic JDBC Driver example is here: MultiHostChooser Thanks in advance |
@alex-pumpkin in the next version you will be able to implement the policy you want with the new |
Thank you, @vietj . Maybe one day I will start implementing it. |
Describe the feature
here I saw that we cannot connect to a multi hosts instance of postgres which is mandatory for us.
Can you plan supporting multi hosts connection ?
Use cases
Use case: Support high availbility postgresql instances
As an example, with the classic jdbc driver, we can define this property to connect to our HA postgres instance:
It would be great to be able to do the same with your PgClient by parsing the URI the same way
The text was updated successfully, but these errors were encountered: