Skip to content

Commit c70faec

Browse files
committed
session: increase default tracing fetch attempts
Default values are a bit optimistic: fetching will be attempted 5 times, with 3ms sleeps between attempts. I am reluctant to increase sleep time, because it will increase latency in optimistic case. This commit increases default attempts number from 5 to 10, so that fetching tracing is more reliable, bot not overly lengthy.
1 parent 42a0f1b commit c70faec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scylla/src/transport/session.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ impl SessionConfig {
329329
#[cfg(feature = "cloud")]
330330
cloud_config: None,
331331
enable_write_coalescing: true,
332-
tracing_info_fetch_attempts: NonZeroU32::new(5).unwrap(),
332+
tracing_info_fetch_attempts: NonZeroU32::new(10).unwrap(),
333333
tracing_info_fetch_interval: Duration::from_millis(3),
334334
tracing_info_fetch_consistency: Consistency::One,
335335
cluster_metadata_refresh_interval: Duration::from_secs(60),

0 commit comments

Comments
 (0)