Skip to content

Rate regulator: declare rateReceiverKeepMaxOverTotal, keep-count lines past a service total (E90) - #157

Merged
talwgx merged 1 commit into
mainfrom
fix/e90-keep-max-over-total
Oct 26, 2026
Merged

talwgx merged 1 commit into
mainfrom
fix/e90-keep-max-over-total

Conversation

@talwgx

@talwgx talwgx commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Declares rateReceiverKeepMaxOverTotal (number, default 500) in the rate module, beside rateReceiverBaselineMaxOverTotal. Ships with log-10x/config#116, which reads the option and sets keepMaxOverTotal: 500 in the rate config; a config key without its declaration fails launch, so the two merge together (this one first).

Engineering ask E90, option B as ruled: a keep-count line (one of the first K held lines of an ERROR, CRITICAL or FATAL pattern in a window) counts toward the service total like any line, and once the total is spent the service passes at most this many more per window; the rest take the service's action. 0 removes the bound.

Text changes:

  • rateReceiverKeepCounts and rateReceiverTotalLookupFile docs: the "an error storm can exceed the total by the count times the storming patterns" and "no limit per service" clauses are replaced by the bound.
  • Rate page (doc.md), total section, new sentence: "The error-class lines in keepCounts count toward the total the same way, and once it is spent the service passes at most keepMaxOverTotal more of them in the window (default 500, counted in lines), so with the shipped settings a burst of new error patterns exceeds the total by at most 550 lines." The config example gains keepMaxOverTotal: 500.
  • Mute-entry lines are unchanged and stated as such.

Gate: the regulator harness in log-10x/config tests/regulator on ghcr.io/log-10x/edge-10x:1.1.150 with this checkout mounted; results are in the config PR.

🤖 Generated with Claude Code

…ines past a service total

Declares rateReceiverKeepMaxOverTotal (default 500). The keep counts, the total
file and the rate page say keep-count lines count toward the total and a service
passes at most that many more per window once it is spent; the rate page states
the shipped bound past the total, 550 lines (50 sample, 500 keep-count).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@talwgx
talwgx merged commit c9d45f5 into main Oct 26, 2026
3 checks passed
@talwgx
talwgx deleted the fix/e90-keep-max-over-total branch October 26, 2026 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant