Skip to content

Conversation

@skartikey
Copy link
Contributor

@skartikey skartikey commented Jan 29, 2026

Summary

Add tests covering the current jitter behavior for all three ticker types over 60 collection cycles (simulating ~1 hour of operation):

  • RollingTicker: ~5 minute drift (avg interval ~65s vs 60s) due to each tick being interval + random(0, jitter)

  • AlignedTicker: minimal drift (~3s) as it realigns to interval boundaries, allowing jitter variations to average out

  • UnalignedTicker: minimal drift (~1s) since it uses a fixed internal ticker and applies jitter only as post-tick delay

These tests document the behavior described in issue #17287, where collection_jitter increases the effective collection interval for RollingTicker. They serve as a baseline for validating future changes to jitter handling.

Checklist

Related issues

related to #17287

@telegraf-tiger telegraf-tiger bot added the test label Jan 29, 2026
Add tests covering the current jitter behavior for all three ticker
types over 60 collection cycles (simulating ~1 hour of operation):

- RollingTicker: ~5 minute drift (avg interval ~65s vs 60s)
  due to each tick being interval + random(0, jitter)

- AlignedTicker: minimal drift (~3s) as it realigns to interval
  boundaries, allowing jitter variations to average out

- UnalignedTicker: minimal drift (~1s) since it uses a fixed internal
  ticker and applies jitter only as post-tick delay

These tests document the behavior described in issue influxdata#17287, where
collection_jitter increases the effective collection interval for
RollingTicker. They serve as a baseline for validating future changes
to jitter handling.

Related: influxdata#17287
@skartikey skartikey force-pushed the agent_tick_interval_jitter_offset branch from f453d0e to f958972 Compare January 29, 2026 16:25
@skartikey skartikey changed the title test(agent): document jitter drift behavior across ticker types test(agent): Document jitter drift behavior across ticker types Jan 29, 2026
@telegraf-tiger
Copy link
Contributor

Copy link
Member

@srebhan srebhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good @skartikey!

@srebhan srebhan added area/agent ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. labels Jan 30, 2026
@srebhan srebhan removed their assignment Jan 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/agent ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants