contactPoints |
Array
|
Array of addresses or host names of the nodes to add as contact point. |
policies |
Object
|
Properties
Name |
Type |
Description |
loadBalancing |
LoadBalancingPolicy
|
The load balancing policy instance to be used to determine the coordinator per query. |
retry |
RetryPolicy
|
The retry policy. |
reconnection |
ReconnectionPolicy
|
The reconnection policy to be used. |
|
queryOptions |
QueryOptions
|
Default options for all queries. |
pooling |
Object
|
Pooling options. |
protocolOptions |
Object
|
Properties
Name |
Type |
Description |
port |
Number
|
The port to use to connect to the Cassandra host. If not set through this method, the default port (9042) will be used instead. |
maxSchemaAgreementWaitSeconds |
Number
|
The maximum time in seconds to wait for schema agreement between nodes before returning from a DDL query (defaults to 10). |
|
socketOptions |
Object
|
Properties
Name |
Type |
Description |
connectTimeout |
Number
|
Connection timeout in milliseconds. |
keepAlive |
Boolean
|
Whether to enable TCP keepalive on the socket. Default: true. |
keepAliveDelay |
Number
|
TCP keepalive delay in milliseconds. Default: 10000. |
|
authProvider |
AuthProvider
|
Provider to be used to authenticate to an auth-enabled host. |
sslOptions |
Object
|
Client-to-node ssl options, when set the driver will use the secure layer. You can specify cert, ca, ... options named after the Node.js tls.connect options. |