[gelöst] ratelimiting

Welches Modul/Treiber für welche Hardware, Kernel compilieren...
Antworten
bullgard
Beiträge: 1642
Registriert: 14.09.2012 23:03:01

[gelöst] ratelimiting

Beitrag von bullgard » 05.11.2020 05:44:58

Hallo debianforum.de,
[Debian stable, Medion_Akoya_E6418]

Code: Alles auswählen

~$ journalctl -xb -1
gibt aus: …
Nov 04 21:48:17 <hostname> systemd[1]: Shutting down. - Nov 04 21:48:18 <hostname> kernel: systemd-shutdow: 49 output lines suppressed due to ratelimiting.

Welche Rate ist hier begrenzt?
Wer oder was begrenzt diese Rate?
Wie heißt »ratelimiting« auf Deutsch? (deepL gibt nichts Vernünftiges her.)
Mit freundlichen Grüßen
bullgard
Zuletzt geändert von bullgard am 05.11.2020 13:26:57, insgesamt 1-mal geändert.

eggy
Beiträge: 3331
Registriert: 10.05.2008 11:23:50

Re: ratelimiting

Beitrag von eggy » 05.11.2020 08:08:14

rate = Frequenz
limiting = Beschränkung

https://www.freedesktop.org/software/sy ... .conf.html sagt
RateLimitIntervalSec=, RateLimitBurst=

Configures the rate limiting that is applied to all messages generated on the system. If, in the time interval defined by RateLimitIntervalSec=, more messages than specified in RateLimitBurst= are logged by a service, all further messages within the interval are dropped until the interval is over. A message about the number of dropped messages is generated. This rate limiting is applied per-service, so that two services which log do not interfere with each other's limits. Defaults to 10000 messages in 30s. The time specification for RateLimitIntervalSec= may be specified in the following units: "s", "min", "h", "ms", "us". To turn off any kind of rate limiting, set either value to 0.

Note that the effective rate limit is multiplied by a factor derived from the available free disk space for the journal. Currently, this factor is calculated using the base 2 logarithm.

Table 1. Example RateLimitBurst= rate modifications by the available disk space
Available Disk Space Burst Multiplier
<= 1MB 1
<= 16MB 2
<= 256MB 3
<= 4GB 4
<= 64GB 5
<= 1TB 6

If a service provides rate limits for itself through LogRateLimitIntervalSec= and/or LogRateLimitBurst= in systemd.exec(5), those values will override the settings specified here.
Zuviele, meist gleichlautende, Infos bringen Dir irgendwann auch keinen neuen Erkenntnisgewinn mehr und sorgen nur dafür, dass andere wichtige Informationen untergehen. Und müllen Dir im Normalfall nur die Logs zu, für die ja auch nicht unbegrenzt Platz ist. Solang man nicht gezielt auf Fehlersuche ist, ist es sinnvoll übermäßige Wiederholungen einfach wegzuwerfen. Ob nen Dienst 30 oder 3000 mal nicht reagiert hat, spielt im Normalbetrieb erstmal keine Rolle. Entweder stört es Dich, dass es nen Problem gibt (das siehst Du auch an 3 Einträgen) oder Du ignorierst das eh, dann brauchst Du die anderen 2970 Meldungen auch nicht. Nur wenn man anhand der 30 Einträge nicht rausfindet, worans liegt, macht es Sinn sich die anderen 2970 auch noch zeigen zu lassen. Die hat man dann zwar nicht mehr, aber in solchen Settings geht man eh davon aus, dass die, wenn sie in dieser Vielzahl relevant waren, sicher wieder auftreten. Dann kann man immer noch gezielt hochdrehen.

bullgard
Beiträge: 1642
Registriert: 14.09.2012 23:03:01

Re: ratelimiting

Beitrag von bullgard » 05.11.2020 13:10:03

Hallo eggy,
Wunderbar!
Vielen Dank!
Gruß
bullgard

Antworten