Repository navigation
benchmarking: hold the memory of the telemetry meter - #1069
Merged
Da Huang (git286) merged 1 commit intoAug 21, 2026
Merged
Conversation
A load test sends the meter more data than a usual run. The meter had no guard for that condition: the heap grew until the kernel stopped the container, the counts of the run went away with the process, and the only record of the event was the restart count of the pod. A run that lost its meter in the middle looked the same as a run that measured a low volume. Add the two settings that give a signal in place of a stop. `memory_limiter` refuses the data that the meter cannot hold, and `otelcol_receiver_refused_*` counts each refusal. That counter is already in the pass criteria of a run, thus a step that puts the meter above its memory now shows as a failed step while the run continues. The processor is first in each pipeline that reads the receiver, because a processor before it does work on data that the meter then refuses. The counts pipeline has no limiter: the count connector gives it data, and a refusal there would remove the measurement and leave no record of the removal. `GOMEMLIMIT` makes the Go runtime collect before the limiter refuses. The runtime does not read the cgroup limit of a container, thus without the value it sizes the heap from the memory of the node and makes no collection before the container goes above its 4Gi limit. Also correct the first line of meter.yaml, which called the meter a sink. The rest of the file, and the README, call it a tee. Follow-up to agent-substrate#749.
Jeff Luo (JeffLuoo)
requested review from
Da Huang (git286) and
Krisztian F (krisztianfekete)
August 20, 2026 14:57
Da Huang (git286)
approved these changes
Aug 21, 2026
a4-a4s2 Bot
pushed a commit
to AlexBulankou/substrate
that referenced
this pull request
Nov 24, 2026
… to api/infra/k8s/ate/v1)
This file contains hidden or 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
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.
Follow-up to #749. One of three; the other two are independent of this one.
This closes the review thread that stayed open on that PR: krisztianfekete asked
for
memory_limiterandGOMEMLIMITon the meter, and I kept it open to track.