Repository navigation
fix(syslogd): raise the imjournal rate limit so one noisy service cannot drop events - #202
Merged
Merged
Conversation
This was referenced Oct 14, 2026
Closed
Closed
…not drop events imjournal was loaded with only StateFile, so the default budget of 20000 messages per 600s applied to the whole journal. On cube36 (3.1.20) a keystone traceback flood used it up on every control node and rsyslog dropped everything after it, including hex_log_event events (cubecos#2064). Set Ratelimit.Interval=600 and Ratelimit.Burst=300000. Measured on cube36's three control nodes from 14 days of /var/log/messages and 36h of journal: normal traffic peaked at about 3,100 messages per 600s (cluster boot), and the keystone flood reached about 200,000 per 600s. journald still limits each service on its own; this budget stays as a backstop. Tested on cube36 by editing /etc/rsyslog.conf by hand (rsyslogd -N1 accepts the exact line), then rolled back: - c3 at 300000 under the live keystone flood, c1/c2 at the default as controls. gunicorn lines journald -> /var/log/messages, 17:13-17:25: c3 228,820 -> 228,820 with no drop report; c1 36,521 -> 20,656 with "15992 messages lost". - hex_log_event SYS00001I reached the influx events DB from c3 and c1. Sent again on c1 while its default budget was used up, it was in journald but never reached /var/log/messages or the events DB. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Seki Xu <[email protected]>
Eandalf-Bigstack
force-pushed
the
fix/2064-imjournal-ratelimit
branch
from
October 15, 2026 04:21
422703d to
d3d4a94
Compare
Eandalf-Bigstack
approved these changes
Oct 15, 2026
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.
What type of PR is this?
/kind bug
What this PR does / why we need it
rsyslog loaded
imjournalwith onlyStateFile. One budget, the default 20000 messages per 600 s, then covered every journal entry. On cube36 (3.1.20) a keystone traceback flood used it up on all three control nodes. rsyslog then dropped everything after it,hex_log_eventevents included (bigstack-oss/cubecos#2064).This sets
Ratelimit.Interval="600" Ratelimit.Burst="300000"on theimjournalline inconfig_syslogd.cpp. journald still rate-limits each service on its own, so this budget is only a backstop.How the value was chosen, per 600 s on cube36's three control nodes (14 days of
/var/log/messages, 36 h of journal):300000 is about 1.5× the largest flood window and about 100× the normal peak. Worst case it writes ~7.6 GB/day to
/var/log/messages(~176 B per line). That is under the 5 %hex_trim_syslogcap (16.4 GB on cube36).Validation
All on cube36 (
CUBE_3.1.20_20261007-1922_ac7c3240), 2026-10-14./etc/rsyslog.confwas edited by hand and restored afterwards.Under the live keystone flood. c3 was set to
Burst="300000"; c1 and c2 stayed at the default as controls. gunicorn lines, journald vs/var/log/messages:/var/log/messages15992 messages lost6419 messages lostOne event end to end.
hex_log_event -e SYS00001Ifrom c3 and c1 reached the influxeventsDB about 5 s later.Negative control. The same event was sent on c1 while its default budget was used up. It is in journald, but it never reached
/var/log/messagesor theeventsDB.Controlled load on c3. 48,000 lines plus 6 probes were sent with the default budget: 19,267 lines and 0 probes arrived. With a raised budget, all of them arrived.
Build.
hex_configwas built in the cubecos jail. It links, the changed file has no warnings, and the exact line is in the binary.rsyslogd -N1accepts the line on rsyslog 8.2604.0-5.el9.Not tested: the line as written by
hex_configon a real install; compute nodes; 3.2.0; the 2026-10-12 23:29 drop of ~4 M lines on all three control nodes at once (cause unknown; 300000 would not have absorbed it).Which issue(s) this PR fixes
Refs bigstack-oss/cubecos#2064. This is Suggested Fix item 2 only. Item 1 (events on their own path) and item 3 (a drop raises its own event) remain outside this PR.
Special notes for your reviewer
After this merges, cubecos needs a hex submodule bump. The rgw auth-order change that removes today's flood source is bigstack-oss/cubecos#2089 (Refs bigstack-oss/cubecos#2065).
Additional documentation
Handbook known-issue note: bigstack-oss/bigstack-handbook#1065 (
kb/cubecos/known-issues/syslog-flood-drops-cluster-events.md).🤖 Generated with Claude Code