MySqlLoadBalance enumeration
public enum MySqlLoadBalance
Values
| name | value | description |
|---|---|---|
| RoundRobin | 0 | Each new connection opened for a connection pool uses the next host name (sequentially with wraparound). |
| FailOver | 1 | Each new connection tries to connect to the first host; subsequent hosts are used only if connecting to the first one fails. |
| Random | 2 | Servers are tried in random order. |
| LeastConnections | 3 | Servers are tried in ascending order of number of currently-open connections. |
See Also
- namespace MySqlConnector
- assembly MySqlConnector