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

Do not transfer off chunks on ingester shutdown #10709

Merged
merged 8 commits into from Oct 4, 2023

Conversation

chaudum
Copy link
Contributor

@chaudum chaudum commented Sep 26, 2023

What this PR does / why we need it:

The Write Ahead Log (WAL) supersedes the chunk transfer feature.

Checklist

  • Reviewed the CONTRIBUTING.md guide (required)
  • Documentation added
  • Tests updated
  • CHANGELOG.md updated
    • If the change is worth mentioning in the release notes, add add-to-release-notes label
  • Changes that require user attention or interaction to upgrade are documented in docs/sources/setup/upgrade/_index.md
  • For Helm chart changes bump the Helm chart version in production/helm/loki/Chart.yaml and update production/helm/loki/CHANGELOG.md and production/helm/loki/README.md. Example PR

The Write Ahead Log (WAL) supersedes the chunk transfer feature.

Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
@github-actions github-actions bot added the type/docs Issues related to technical documentation; the Docs Squad uses this label across many repositories label Sep 26, 2023
Copy link
Contributor

@salvacorts salvacorts left a comment

Choose a reason for hiding this comment

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

LGTM

@salvacorts salvacorts marked this pull request as ready for review September 28, 2023 11:26
@salvacorts salvacorts requested a review from a team as a code owner September 28, 2023 11:26
Copy link
Contributor Author

@chaudum chaudum left a comment

Choose a reason for hiding this comment

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

@slim-bean Can you review?

CHANGELOG.md Outdated Show resolved Hide resolved
salvacorts and others added 2 commits September 29, 2023 08:35
Co-authored-by: Christian Haudum <christian.haudum@gmail.com>
@chaudum
Copy link
Contributor Author

chaudum commented Sep 29, 2023

@salvacorts Can you please add a section in the upgrade notes what to do when you had the chunk transfer enabled (and no WAL)?

  • Remove setting
  • Enable WAL
  • Control flushing on shutdown via setting or manually via /shutdown?flush=true handler

@chaudum chaudum merged commit 54e4644 into main Oct 4, 2023
5 checks passed
@chaudum chaudum deleted the chaudum/remove-chunk-transfer-on-shutdown branch October 4, 2023 16:57
salvacorts added a commit that referenced this pull request Oct 11, 2023
**What this PR does / why we need it**:

In #10709, we removed
`-ingester.max-transfer-retries` in favor of the WAL. Then, in
#10844 we removed it from the config
file but we did not remove it from the ingester args. This PR solves
this by removing it.
grafanabot pushed a commit that referenced this pull request Oct 11, 2023
**What this PR does / why we need it**:

In #10709, we removed
`-ingester.max-transfer-retries` in favor of the WAL. Then, in
#10844 we removed it from the config
file but we did not remove it from the ingester args. This PR solves
this by removing it.

(cherry picked from commit be3ca9c)
salvacorts added a commit that referenced this pull request Oct 11, 2023
Backport be3ca9c from #10850

---

**What this PR does / why we need it**:

In #10709, we removed
`-ingester.max-transfer-retries` in favor of the WAL. Then, in
#10844 we removed it from the config
file but we did not remove it from the ingester args. This PR solves
this by removing it.

Co-authored-by: Salva Corts <salva.corts@grafana.com>
rhnasc pushed a commit to inloco/loki that referenced this pull request Apr 12, 2024
This PR removes the ability of an ingester in LEAVING state prior to shutdown to transfer chunks off to another ingester in the ring in PENDING state.

The **Write Ahead Log** (WAL) supersedes the chunk transfer feature.

See upgrade notes for information how to replace the removed setting.

Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
Co-authored-by: Salva Corts <salva.corts@grafana.com>
rhnasc pushed a commit to inloco/loki that referenced this pull request Apr 12, 2024
**What this PR does / why we need it**:

In grafana#10709, we removed
`-ingester.max-transfer-retries` in favor of the WAL. Then, in
grafana#10844 we removed it from the config
file but we did not remove it from the ingester args. This PR solves
this by removing it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XL type/docs Issues related to technical documentation; the Docs Squad uses this label across many repositories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants