scylladb / scylla-rust-driver

Async CQL driver for Rust, optimized for ScyllaDB!
Apache License 2.0
582 stars 101 forks source link

Speculative Execution Metrics #1041

Open fee-mendes opened 3 months ago

fee-mendes commented 3 months ago

Currently, Speculative Execution can be observed in two ways:

It would be nice to also have Speculative Execution numbers also exposed in Metrics. For example, the CPP driver increments a counter each time a new fiber is started, and from there allows one to infer the percentage of total queries which triggered speculative execution.

For each Speculative Execution, it would also be nice to keep track of their latencies in a separate histogram, similarly as what CPP does in Histogram speculative_request_latencies;

siningma commented 3 months ago

Would be nice if the counter count be split by read and writes queries.