scylladb / cpp-rust-driver

API-compatible rewrite of https://github.com/scylladb/cpp-driver as a wrapper for Rust driver.
GNU Lesser General Public License v2.1
16 stars 11 forks source link

cluster: keepalive config options #193

Closed muzarski closed 4 weeks ago

muzarski commented 1 month ago

Config defaults

Adjusted the config defaults for some options that were already supported by cpp-rust-driver.

keepalive

Implemented cass_cluster_set_connection_heartbeat_interval and cass_cluster_set_connection_idle_timeout. Set the defaults for these options.

HeartbeatTests

HeartbeastTests suite unfortunately cannot be enabled yet. It depends on logs emitted by the driver. However, we will be able to enable most of them, see https://github.com/scylladb/scylla-rust-driver/pull/1092. The only exception is HeartbeatTests.Integration_Cassandra_HeartbeatFailed since it requires metrics support as well.

Pre-review checklist