Database-Cassandra-Client
view release on metacpan or search on metacpan
Sets the maximum number of requests processed by an IO worker per flush. Default: 128
Return: CASS_OK if successful, otherwise an error occurred
=head3 cluster_set_write_bytes_high_water_mark
my $int_CassError = $cass->cluster_set_write_bytes_high_water_mark($num_bytes);
Sets the high water mark for the number of bytes outstanding on a connection. Disables writes to a connection if the number of bytes queued exceed this value. Default: 64 KB
Return: CASS_OK if successful, otherwise an error occurred
=head3 cluster_set_write_bytes_low_water_mark
my $int_CassError = $cass->cluster_set_write_bytes_low_water_mark($num_bytes);
Sets the low water mark for number of bytes outstanding on a connection. After exceeding high water mark bytes, writes will only resume once the number of bytes fall below this value. Default: 32 KB
Return: CASS_OK if successful, otherwise an error occurred
=head3 cluster_set_pending_requests_high_water_mark
my $int_CassError = $cass->cluster_set_pending_requests_high_water_mark($num_requests);
Sets the high water mark for the number of requests queued waiting for a connection in a connection pool. Disables writes to a host on an IO worker if the number of requests queued exceed this value. Default: 128 * max_connections_per_host
Return: CASS_OK if successful, otherwise an error occurred
=head3 cluster_set_pending_requests_low_water_mark
my $int_CassError = $cass->cluster_set_pending_requests_low_water_mark($num_requests);
Sets the low water mark for the number of requests queued waiting for a connection in a connection pool. After exceeding high water mark requests, writes to a host will only resume once the number of requests fall below this value. Default: 64 * max...
Return: CASS_OK if successful, otherwise an error occurred
=head3 cluster_set_connect_timeout
$cass->cluster_set_connect_timeout($timeout_ms);
Sets the timeout for connecting to a node. Default: 5000 milliseconds
Return: undef
=head3 cluster_set_request_timeout
$cass->cluster_set_request_timeout($timeout_ms);
Sets the timeout for waiting for a response from a node. Default: 12000 milliseconds
Return: undef
=head3 cluster_set_credentials
$cass->cluster_set_credentials($username, $password);
Sets credentials for plain text authentication.
Return: undef
=head3 cluster_set_load_balance_round_robin
$cass->cluster_set_load_balance_round_robin();
Configures the cluster to use round-robin load balancing. The driver discovers all nodes in a cluster and cycles through them per request. All are considered 'local'.
Return: undef
=head3 cluster_set_load_balance_dc_aware
my $int_CassError = $cass->cluster_set_load_balance_dc_aware($local_dc, $used_hosts_per_remote_dc, $allow_remote_dcs_for_local_cl);
Configures the cluster to use DC-aware load balancing. For each query, all live nodes in a primary 'local' DC are tried first, followed by any node from other DCs. Note: This is the default, and does not need to be called unless switching an existin...
Return: CASS_OK if successful, otherwise an error occurred
=head3 cluster_set_token_aware_routing
$cass->cluster_set_token_aware_routing($enabled);
Configures the cluster to use Token-aware request routing, or not. Default is cass_true (enabled). This routing policy composes the base routing policy, routing requests first to replicas on nodes considered 'local' by the base load balancing polic...
Return: undef
=head3 cluster_set_tcp_nodelay
$cass->cluster_set_tcp_nodelay($enable);
Enable/Disable Nagel's algorithm on connections. Default: cass_false (disabled).
Return: undef
=head3 cluster_set_tcp_keepalive
$cass->cluster_set_tcp_keepalive($enable, $delay_secs);
Enable/Disable TCP keep-alive Default: cass_false (disabled).
Return: undef
=head2 Session
=head3 session_new
my $obj_CassSession = $cass->session_new();
Creates a new session.
Return: obj_CassSession
( run in 1.353 second using v1.01-cache-2.11-cpan-cdf2f3d4e48 )