Enum MySqlLoadBalance
Namespace: MySql.Data.MySqlClient
Assembly: NFX.MySQL.dll
Syntax
public enum MySqlLoadBalance
Fields
| Name | Description |
|---|---|
| FailOver | Each new connection tries to connect to the first host; subsequent hosts are used only if connecting to the first one fails. |
| LeastConnections | Servers are tried in ascending order of number of currently-open connections. |
| Random | Servers are tried in random order. |
| RoundRobin | Each new connection opened for a connection pool uses the next host name (sequentially with wraparound). |