Skip to content

Commit b74d0fb

Browse files
authored
FF-3594 Decrease default poller jitter (#101)
Our default jitter value was migrated from Python SDK. However, once we decreased the default poller interval, this made jitter value too high. With 30s poll interval and 30s jitter, requests are made every 0–30 seconds (with average at 15s). That just doesn’t make much sense. Decrease jitter value down to 3s, so it polls every 27–30s (avg 28.5s).
1 parent 620ce14 commit b74d0fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eppo_core/src/poller_thread.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ impl PollerThreadConfig {
3030
/// Default value for [`PollerThreadConfig::interval`].
3131
pub const DEFAULT_POLL_INTERVAL: Duration = Duration::from_secs(30);
3232
/// Default value for [`PollerThreadConfig::jitter`].
33-
pub const DEFAULT_POLL_JITTER: Duration = Duration::from_secs(30);
33+
pub const DEFAULT_POLL_JITTER: Duration = Duration::from_secs(3);
3434

3535
/// Create a new `PollerThreadConfig` using default configuration.
3636
pub fn new() -> PollerThreadConfig {

0 commit comments

Comments
 (0)