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

Increased promtail's backoff settings in prod and improved doc #1083

Merged

Conversation

pracucci
Copy link
Contributor

What this PR does / why we need it:

The current promtail's backoff configuration starts dropping log entries if the Loki distributor endpoint is unreachable for 3.1s (worst case) - 6.2s (best case). In this PR, I'm proposing to increase the number of retries to 20, which increase the max time the distributor is unavailable before promtail starts dropping logs to the range 51.1s - 81.2s.

Current setup:

backoff-current

Proposed change:

backoff-proposed

Which issue(s) this PR fixes:
Fixes #915

Special notes for your reviewer:

Checklist

  • Documentation added
  • Tests updated

@cyriltovena
Copy link
Contributor

cyriltovena commented Sep 30, 2019

You need to rebase on gomod. Sorry !

EDIT: Nevermind ! the dependency change was done before :)

Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

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

LGTM

@pracucci pracucci force-pushed the fine-tune-promtail-backoff-settings branch from cf422a7 to 9258525 Compare October 1, 2019 07:09
@pracucci
Copy link
Contributor Author

pracucci commented Oct 1, 2019

@cyriltovena I've rebased anyway

@pracucci
Copy link
Contributor Author

pracucci commented Oct 7, 2019

@cyriltovena I've seen it's approved since a week. If the reason why it doesn't get merged is the change to production/helm/promtail/values.yaml, I may rollback it and keep the doc (which I believe it valuable anyway).

@cyriltovena
Copy link
Contributor

No I was waiting on gomod PR to be fully tested.

@cyriltovena cyriltovena merged commit 67f8ff8 into grafana:master Oct 7, 2019
@pracucci pracucci deleted the fine-tune-promtail-backoff-settings branch October 7, 2019 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

promtail skip logs on Loki unavailable for a short time
2 participants