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

config: better defaults for querier max concurrency #10785

Merged
merged 4 commits into from
Oct 10, 2023

Conversation

ashwanthgoli
Copy link
Contributor

What this PR does / why we need it:
To simply loki configuration, this pr removes querier.worker-parallelism as it does not offer additional value to already existing querier.max-concurrent

Also updates the default value of querier.max-concurrent to 4. This is a better default for users that are just starting out. Users can consider increasing it as they scale up their loki installation.

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

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

@github-actions github-actions bot added the type/docs Issues related to technical documentation; the Docs Squad uses this label across many repositories label Oct 4, 2023
@ashwanthgoli ashwanthgoli marked this pull request as ready for review October 4, 2023 12:41
@ashwanthgoli ashwanthgoli requested a review from a team as a code owner October 4, 2023 12:41
Copy link
Contributor

@JStickler JStickler left a comment

Choose a reason for hiding this comment

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

[Docs team] Couple of small suggestions, otherwise LGTM.

docs/sources/setup/upgrade/_index.md Outdated Show resolved Hide resolved
docs/sources/setup/upgrade/_index.md Outdated Show resolved Hide resolved
@@ -67,6 +70,8 @@ This new metric will provide a more clear signal that there is an issue with ing

#### Changes to default configuration values

1. `querier.max-concurrent` now defaults to 4. Consider increasing this if queriers have access to more cpu resources.
Do note that you risk running into OOMs if you set this to a very high value.
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
Do note that you risk running into OOMs if you set this to a very high value.
Note that you risk running into out of memory errors if you set this to a very high value.

@ashwanthgoli ashwanthgoli merged commit 0be1913 into main Oct 10, 2023
3 checks passed
@ashwanthgoli ashwanthgoli deleted the ashwanth/remove-worker-parallelism branch October 10, 2023 13:58
rhnasc pushed a commit to inloco/loki that referenced this pull request Apr 12, 2024
**What this PR does / why we need it**:
To simply loki configuration, this pr removes
`querier.worker-parallelism` as it does not offer additional value to
already existing `querier.max-concurrent`

Also updates the default value of `querier.max-concurrent` to 4. This is
a better default for users that are just starting out. Users can
consider increasing it as they scale up their loki installation.

**Which issue(s) this PR fixes**:
Fixes #<issue number>

**Special notes for your reviewer**:

**Checklist**
- [X] Reviewed the
[`CONTRIBUTING.md`](https://github.com/grafana/loki/blob/main/CONTRIBUTING.md)
guide (**required**)
- [X] Documentation added
- [X] Tests updated
- [ ] `CHANGELOG.md` updated
- [ ] If the change is worth mentioning in the release notes, add
`add-to-release-notes` label
- [X] 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](grafana@d10549e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/L 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.

4 participants