Multiple Hosts, Failover and Load Balancing #3228
dayvejones
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! It would be great to have a feature like this:
let hosts = vec!["postgres://postgres:password@server1/test".to_string(), "postgres://postgres:password@server2/test".to_string()];
let pool = PgPoolOptions::new()
.max_connections(50)
.load_balance_hosts(true)
.connect(hosts).await?;
Good example: https://www.npgsql.org/doc/failover-and-load-balancing.html?tabs=7
Sorry, if this already exists.. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions