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

Change default memberlist.stream-timeout from 10s to 2s #458

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

56quarters
Copy link
Contributor

@56quarters 56quarters commented Jan 5, 2024

What this PR does:

We have our own packet_dial_timeout and packet_write_timeout settings that we use for regular memberlist messages. However, special messages such as push-pull are managed by the memberlist library. A 10s timeout is too large and causes joins to nonexistent IPs to take a really long time.

We've been using a 2s timeout on Mimir in production for several weeks at this point with no adverse affects.

Which issue(s) this PR fixes:

N/A

Checklist

  • Tests updated
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Copy link
Contributor

@dimitarvdimitrov dimitarvdimitrov left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for carrying this change out

@56quarters 56quarters marked this pull request as ready for review January 8, 2024 15:21
We have our own `packet_dial_timeout` and `packet_write_timeout` settings
that we use for regular memberlist messages. However, special messages such
as push-pull are managed by the memberlist library. A `10s` timeout is too
large and causes joins to nonexistent IPs to take a really long time.

Signed-off-by: Nick Pillitteri <nick.pillitteri@grafana.com>
@56quarters 56quarters merged commit a150e79 into main Jan 8, 2024
3 checks passed
@56quarters 56quarters deleted the 56quarters/ml-stream-timeout branch January 8, 2024 17:41
56quarters added a commit to grafana/mimir that referenced this pull request Jan 8, 2024
Update dskit to a150e79e458136446a0c0172aa9467315872bfce. Specifically,
this pulls in a change to the default timeout for memberlist and a change
to cache client metrics:

* grafana/dskit#458
* grafana/dskit#461

Signed-off-by: Nick Pillitteri <nick.pillitteri@grafana.com>
56quarters added a commit to grafana/mimir that referenced this pull request Jan 9, 2024
Update dskit to `a150e79e458136446a0c0172aa9467315872bfce`. Specifically,
this pulls in a change to the default timeout for memberlist and a change
to cache client metrics:

* grafana/dskit#458
* grafana/dskit#461

Signed-off-by: Nick Pillitteri <nick.pillitteri@grafana.com>
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.

None yet

2 participants