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
To support native HA functionality of CUBRID DB, add support for altHosts connection parameter to specify a list of hosts to use for client side failover.
The text was updated successfully, but these errors were encountered:
An array of strings like ['host1[:port1]', 'host2[:port2]', ...].
When a custom port is not specified, the driver will use the default port specified by the user when creating a connection. When a user has not specified the default port, it defaults to 33000.
When multiple hosts are specified, the driver will make an attempt to connect to the first one. If the connection fails due to timeout or an error, the driver will try the next one in the list, and so on, until it tries all the provided hosts.
When the connection has failed with all the hosts, the driver will retry maxConnectionRetryCount times. You can disable the retry by passing 0 for maxConnectionRetryCount.
At any given time, you can get the currently active host by calling:
New Features
#49 Implement Protocol v6 of CUBRID.
#13 Add support for alternative hosts to support client side HA.
#12#11 Provide a configurable logging function.
#18 Added ENUM data type support via the old protocol.
#14 Support promises.
Refactoring
#48 Update README.
#14 Indent using spaces instead of tabs.
#14 Reduce the use of self where this can be used directly.
#14 Extract constants and other useless variables from the connection
object.
To support native HA functionality of CUBRID DB, add support for
altHosts
connection parameter to specify a list of hosts to use for client side failover.The text was updated successfully, but these errors were encountered: