You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/connection-options.md
+16-2Lines changed: 16 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
lastmod: 2018-08-21
2
+
lastmod: 2018-10-13
3
3
date: 2016-10-16
4
4
title: Connection Options
5
5
weight: 30
@@ -10,7 +10,7 @@ menu:
10
10
Connection Options
11
11
==================
12
12
13
-
MySqlConnector supports a subset of Oracle's [Connector/NET connection options](https://dev.mysql.com/doc/connector-net/en/connector-net-connection-options.html).
13
+
MySqlConnector supports a subset of Oracle’s [Connector/NET connection options](https://dev.mysql.com/doc/connector-net/en/connector-net-8-0-connection-options.html).
14
14
15
15
Base Options
16
16
------------
@@ -173,6 +173,20 @@ Connection pooling is enabled by default. These options are used to configure it
173
173
</tr>
174
174
</table>
175
175
176
+
### Connection Pooling with Multiple Servers
177
+
178
+
The `Server` option supports multiple comma-delimited host names. When this is used with connection
179
+
pooling, the `LoadBalance` option controls how load is distributed across backend servers.
180
+
181
+
*`RoundRobin` (default), `Random`: A total of `MaximumPoolSize` connections will be opened, but they
182
+
may be unevenly distributed across back ends.
183
+
*`LeastConnections`: A total of `MaximumPoolSize` connections will be opened, and they will be evenly
184
+
distributed across back ends. The active connections will be selected from the pool in least-recently-used
185
+
order, which does not ensure even load across the back ends. You should set `MaximumPoolSize` to the
186
+
number of servers multiplied by the desired maximum number of open connections per backend server.
187
+
*`Failover`: All connections will initially be made to the first server in the list. You should set `MaximumPoolSize`
188
+
to the maximum number of open connections you want per server.
0 commit comments