Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Support "collection_jitter" on a per-input basis #3634

Closed
jcmcken opened this issue Jan 3, 2018 · 2 comments · Fixed by #7762
Closed

Feature: Support "collection_jitter" on a per-input basis #3634

jcmcken opened this issue Jan 3, 2018 · 2 comments · Fixed by #7762
Labels
feature request Requests for new plugin and for new features to existing plugins
Milestone

Comments

@jcmcken
Copy link
Contributor

jcmcken commented Jan 3, 2018

Proposal:

Each input should be allowed to specify its own collection_jitter.

Some input collections happen less frequently and with greater expense than others. Having a single, global collection_jitter makes it hard for expensive, long-running collections to co-exist with cheap, short-running collections, and still allow appropriate randomization to avoid collection stampedes while maintaining collection SLAs.

Current behavior:

The collection_jitter option is an agent configuration that applies equally to all inputs.

Desired behavior:

The collection_jitter should additionally be configurable per input. If one input occurs once per hour, it should be allowed to jitter within a large period (e.g. 30min) that might not be appropriate for an input that occurs once per minute.

Use case:

In my specific use-case, we have lots of agents distributed across many machines coordinating with a centralized service to create some statistics per machine. This collection happens once per hour. These agents need to be randomly distributed across the 1 hour period to lessen the load on that central service.

@danielnelson danielnelson added the feature request Requests for new plugin and for new features to existing plugins label Jan 3, 2018
@cruscio
Copy link
Contributor

cruscio commented Apr 28, 2019

+1

Specifying an input-specific collection_jitter next to the input-specific interval would go a long way to smoothing traffic spikes. My inbound network traffic graph on Influx data nodes looks like an ECG.

@solarce
Copy link

solarce commented Apr 11, 2020

This would be very useful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Requests for new plugin and for new features to existing plugins
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants