Repository navigation
Demote tier2 refusal + ResourceExhausted logs to cut Cloud Logging volume - #962
Merged
Merged
Conversation
Cuts Cloud Logging volume on substreams-workers: these two log lines accounted for ~37% of sampled bytes on every backpressure refusal. Refusal rate/reason stays visible via substreams_tier2_rejected_request_counter. Bumps dgrpc to pick up server.WithCodeLevelFunc (streamingfast/dgrpc#38) and uses it to demote ResourceExhausted on tier2's gRPC server while keeping its default code-to-level mapping for every other code.
sduchesneau
approved these changes
Sep 29, 2026
sduchesneau
left a comment
Contributor
There was a problem hiding this comment.
LGTM no problem, we have counters for debugging, and the tier1's point of view too.
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.
substreams-workers(~20% of sampled bytes), logged at Info on every backpressure refusal.service/tier2.goto Debug. Refusal rate/reason is already tracked by the existingsubstreams_tier2_rejected_request_counterPrometheus metric, so no operational signal is lost.dgrpc, not this repo. Spawned a linked session againstdgrpcwhich addedserver.WithCodeLevelFunc(merged, Let callers override gRPC-code-to-zap-level mapping dgrpc#38); bumped the dependency here and wired tier2's gRPC server to demoteResourceExhaustedto Debug while keeping the rest of dgrpc's default code-to-level mapping.dmeteringthat also showed up in the sample were already demoted to Debug by a prior commit already on this branch (d56dc47d); the Sept 27 sample likely predates that fix reaching production.