Skip to content

benchmarking: hold the memory of the telemetry meter - #1069

Merged
Da Huang (git286) merged 1 commit into
agent-substrate:mainfrom
JeffLuoo:obs-meter-memory-limit
Aug 21, 2026
Merged

Da Huang (git286) merged 1 commit into
agent-substrate:mainfrom
JeffLuoo:obs-meter-memory-limit

Conversation

@JeffLuoo

@JeffLuoo Jeff Luo (JeffLuoo) commented Aug 19, 2026 •

Copy link
Copy Markdown
Collaborator

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_limiter and GOMEMLIMIT on the meter, and I kept it open to track.

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.
@git286
Da Huang (git286) merged commit 8ccf0ed into agent-substrate:main Aug 21, 2026
9 checks passed
a4-a4s2 Bot pushed a commit to AlexBulankou/substrate that referenced this pull request Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants