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

remotecfg: set lower poll_frequency limit #937

Merged
merged 7 commits into from
May 31, 2024

Conversation

tpaschalis
Copy link
Member

@tpaschalis tpaschalis commented May 28, 2024

PR Description

This PR adds a lower limit for the poll_frequency used in the remotecfg block so that Alloy instances don't accidentally hammer a server implementation. I think that's a good starting point but this value can be fine-tuned in the future.

Which issue(s) this PR fixes

No issue filed.

Notes to the Reviewer

PR Checklist

  • CHANGELOG.md updated
  • Documentation added
  • Tests updated
  • Config converters updated (N/A)

Signed-off-by: Paschalis Tsilias <[email protected]>
Signed-off-by: Paschalis Tsilias <[email protected]>
Signed-off-by: Paschalis Tsilias <[email protected]>
@tpaschalis tpaschalis force-pushed the remotecfg-max-polling-rate branch from 086193d to f14c5e8 Compare May 30, 2024 14:12
@tpaschalis tpaschalis marked this pull request as ready for review May 30, 2024 14:13
@@ -50,6 +50,8 @@ If not set, the self-reported `id` that {{< param "PRODUCT_NAME" >}} uses is a r
The `id` and `metadata` fields are used in the periodic request sent to the
remote endpoint so that the API can decide what configuration to serve.

The `poll_frequency` must be set to least "1s".
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
The `poll_frequency` must be set to least "1s".
The `poll_frequency` must be set to at least `"1s"`.

Signed-off-by: Paschalis Tsilias <[email protected]>
Signed-off-by: Paschalis Tsilias <[email protected]>
Signed-off-by: Paschalis Tsilias <[email protected]>
@tpaschalis tpaschalis merged commit fb3b34c into main May 31, 2024
18 checks passed
@tpaschalis tpaschalis deleted the remotecfg-max-polling-rate branch May 31, 2024 08:44
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants