-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
fix(operator): Use a minimum value for replay memory ceiling #13066
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
periklis
approved these changes
May 29, 2024
JoaoBraveCoding
approved these changes
May 31, 2024
This was referenced Jun 3, 2024
This was referenced Jun 3, 2024
trevorwhitney
added a commit
that referenced
this pull request
Jun 3, 2024
commit 35585db Merge: 1822b88 47f0236 Author: Trevor Whitney <[email protected]> Date: Mon Jun 3 11:43:12 2024 -0600 Merge branch 'main' into sample-count-and-bytes commit 1822b88 Author: Trevor Whitney <[email protected]> Date: Mon Jun 3 11:42:52 2024 -0600 fix: formatting commit 47f0236 Author: Dylan Guedes <[email protected]> Date: Mon Jun 3 14:41:55 2024 -0300 feat: Introduce `index audit` to `lokitool` (#13008) Adds a new `index audit` command to the `lokitool` cmd. The new `index audit` validates that all chunks required by a given index are available at the object storage. This is useful to validate if you're missing data after a backfill or when migrating data from one Loki instance to another. See `pkg/tool/audit/README.md` for usage instructions. commit 71507a2 Author: Kaviraj Kanagaraj <[email protected]> Date: Mon Jun 3 18:18:39 2024 +0200 feat(canary): Add test to check query results with and without cache. (#13104) Signed-off-by: Kaviraj <[email protected]> commit 7942e57 Merge: 6ed195e 8084259 Author: Trevor Whitney <[email protected]> Date: Mon Jun 3 09:27:58 2024 -0600 Merge branch 'main' into sample-count-and-bytes commit 6ed195e Author: Trevor Whitney <[email protected]> Date: Mon Jun 3 09:25:37 2024 -0600 fix: nanosecond values in test with non-decimal seconds value commit 8084259 Author: Yuri Kotov <[email protected]> Date: Mon Jun 3 21:30:25 2024 +0700 feat: API: Expose optional label matcher for label names API (#11982) Co-authored-by: Cyril Tovena <[email protected]> commit 09faea8 Author: Yoshitaka Fujii <[email protected]> Date: Mon Jun 3 21:16:10 2024 +0900 docs: Fix link in examples (#13094) Co-authored-by: J Stickler <[email protected]> commit c8cc0fb Author: Grot (@grafanabot) <[email protected]> Date: Mon Jun 3 12:39:26 2024 +0100 chore( operator): community release 0.6.1 (#12593) commit fbd2739 Author: Joao Marcal <[email protected]> Date: Mon Jun 3 12:15:47 2024 +0200 chore(operator): prepare community release v0.6.1 (#13105) commit 4f3ed77 Author: Robert Jacob <[email protected]> Date: Mon Jun 3 11:02:15 2024 +0200 fix(operator): Use a minimum value for replay memory ceiling (#13066) commit cbf9fc0 Author: Trevor Whitney <[email protected]> Date: Fri May 31 16:46:39 2024 -0600 docs: update docs commit 29febb7 Author: Trevor Whitney <[email protected]> Date: Fri May 31 16:42:12 2024 -0600 chore: make format commit 87f7282 Author: Trevor Whitney <[email protected]> Date: Fri May 31 16:34:48 2024 -0600 chore: clean up linting commit abb31a8 Merge: 33ead60 00d3c7a Author: Trevor Whitney <[email protected]> Date: Fri May 31 16:10:58 2024 -0600 Merge branch 'main' into sample-count-and-bytes commit 33ead60 Author: Trevor Whitney <[email protected]> Date: Fri May 31 16:03:04 2024 -0600 feat: hook up samples endpoint commit eb84303 Author: Trevor Whitney <[email protected]> Date: Fri May 31 13:07:49 2024 -0600 chore: a bit of cleanup commit 6dd77ae Author: Trevor Whitney <[email protected]> Date: Fri May 31 12:56:05 2024 -0600 feat: refactor metric samples to be it's own endpoint commit 2587657 Author: Trevor Whitney <[email protected]> Date: Fri May 24 17:35:15 2024 -0600 fix: grouping commit b897fc5 Author: Trevor Whitney <[email protected]> Date: Fri May 24 13:36:00 2024 -0600 fix: ring proxy methods on pattern ring_client commit 0bfd0ad Merge: 68aa188 efdae3d Author: Trevor Whitney <[email protected]> Date: Thu May 23 17:04:32 2024 -0600 Merge branch 'main' into sample-count-and-bytes commit 68aa188 Author: Trevor Whitney <[email protected]> Date: Thu May 23 17:03:32 2024 -0600 feat: guard aggregation behavior behind a feature flag commit f0d6a92 Author: Trevor Whitney <[email protected]> Date: Thu May 23 14:03:32 2024 -0600 feat: reject filter queries to /patterns endpoint commit dc620e7 Author: Trevor Whitney <[email protected]> Date: Wed May 8 14:08:44 2024 -0600 feat: collect and serve pre-agg bytes and count * pre-aggregate bytes and count per stream in the pattern ingester * serve bytes_over_time and count_over_time queries from the patterns endpoint
This was referenced Jun 10, 2024
This was referenced Jul 3, 2024
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
The current implementation bases the value used for
replay_memory_ceiling
only on the memory-request of the ingester Pod. This works for our "production sizes", because they all have a request. When used withsize: 1x.demo
it results in a memory ceiling setting of0
, which is not intended.This results in the WAL-replay flush to run on almost each block it creates, leading to a lot of unnecessary flushes and, in the end, resulting in a very long startup time of the ingester (in the order of minutes even for a very small deployment).
This PR fixes this behaviour by providing a minimum value for the
replay_memory_ceiling
setting. Because we do not have any requests, this is intentionally set very low (currently at512MiB
).Which issue(s) this PR fixes:
Fixes LOG-4840
Special notes for your reviewer:
This might just be a partial fix for the linked issue, because this only applies to users running LokiStack with
1x.demo
.Checklist
CONTRIBUTING.md
guide (required)