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

otelcol: fix retry mechanism #5188

Merged
merged 2 commits into from
Sep 13, 2023
Merged

Conversation

rfratto
Copy link
Member

@rfratto rfratto commented Sep 13, 2023

The v0.80 upgrade introduced two new settings to the common retry mechanism shared between components. One of these new settings, multiplier, specifies the rate at which a backoff is applied.

We did not convert this new field after upgrading, leading the multiplier to be set to the Go default (zero). After the first retry, the backoff period would be multiplied by zero for each subsequent retry, causing retries to happen in a hot loop.

A follow up PR should expose these new settings to the user rather than hard coding them at the new upstream defaults. I've split the additions of the new fields and fixing the defaults across two separate PRs in case we want to release this in a patch.

The v0.80 upgrade introduced two new settings to the common retry
mechanism shared between components. One of these new settings,
`multiplier`, specifies the rate at which a backoff is applied.

We did not convert this new field after upgrading, leading the
multiplier to be set to the Go default (zero). After the first retry,
the backoff period would be multiplied by zero for each subsequent
retry, causing retries to happen in a hot loop.
@rfratto rfratto requested a review from a team as a code owner September 13, 2023 19:02
Copy link
Contributor

@erikbaranowski erikbaranowski left a comment

Choose a reason for hiding this comment

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

LGTM

@rfratto rfratto merged commit 9618501 into grafana:main Sep 13, 2023
@rfratto rfratto deleted the otelcol-fix-retry branch September 13, 2023 19:51
rfratto added a commit to rfratto/agent that referenced this pull request Sep 14, 2023
ptodev pushed a commit that referenced this pull request Sep 21, 2023
* otelcol: fix retry mechanism

The v0.80 upgrade introduced two new settings to the common retry
mechanism shared between components. One of these new settings,
`multiplier`, specifies the rate at which a backoff is applied.

We did not convert this new field after upgrading, leading the
multiplier to be set to the Go default (zero). After the first retry,
the backoff period would be multiplied by zero for each subsequent
retry, causing retries to happen in a hot loop.

* otelcol.exporter.loadbalancing: properly set defaults
@ptodev ptodev mentioned this pull request Sep 21, 2023
ptodev added a commit that referenced this pull request Sep 22, 2023
* otelcol.processor.discovery should not modify its targets attribute (#5170)

Fixed a bug where `otelcol.processor.discovery` could modify the `targets` passed by an upstream component.

---------

Co-authored-by: Paschalis Tsilias <[email protected]>

* otelcol: fix retry mechanism (#5188)

* otelcol: fix retry mechanism

The v0.80 upgrade introduced two new settings to the common retry
mechanism shared between components. One of these new settings,
`multiplier`, specifies the rate at which a backoff is applied.

We did not convert this new field after upgrading, leading the
multiplier to be set to the Go default (zero). After the first retry,
the backoff period would be multiplied by zero for each subsequent
retry, causing retries to happen in a hot loop.

* otelcol.exporter.loadbalancing: properly set defaults

* Rename component stability from "alpha" to "experimental". (#5200)

* Rename stability from "alpha" to "experimental".
This complies with Agent stability naming conventions.

* Add an experimental stability block
for "otelcol.processor.span" and "otelcol.connector.spanmetrics".

* Sync loki.source.file with promtail (#5245)

* Sync loki.source.file with promtail

* changelog

* Fix scraped targets metric (#5263)

* Remove main branch changes from the Changelog

* Add v0.36.2 to the changelog

* Change date of v0.36.2 from 2023-09-21 to 2023-09-22

---------

Co-authored-by: Paschalis Tsilias <[email protected]>
Co-authored-by: Robert Fratto <[email protected]>
Co-authored-by: Piotr <[email protected]>
rfratto added a commit that referenced this pull request Sep 22, 2023
…y blocks (#5219)

Follow up on #5188.

Co-authored-by: Paschalis Tsilias <[email protected]>
Co-authored-by: Paulin Todev <[email protected]>
hainenber pushed a commit to hainenber/agent that referenced this pull request Sep 23, 2023
…y blocks (grafana#5219)

Follow up on grafana#5188.

Co-authored-by: Paschalis Tsilias <[email protected]>
Co-authored-by: Paulin Todev <[email protected]>
@github-actions github-actions bot added the frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed. label Feb 22, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants