You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using logback with Spring Boot 3.3.x. While looking at my logs, I saw a warning indicating that I should not use the CONSOLE appender because it is slow :
13:46:30,649 |-INFO in ch.qos.logback.core.ConsoleAppender[CONSOLE] - BEWARE: Writing to the console can be very slow. Avoid logging to the
13:46:30,649 |-INFO in ch.qos.logback.core.ConsoleAppender[CONSOLE] - console in production environments, especially in high volume systems.
13:46:30,649 |-INFO in ch.qos.logback.core.ConsoleAppender[CONSOLE] - See also https://logback.qos.ch/codes.html#slowConsole
However, this application runs in docker on a standard Kubernetes cluster. From the info I gathered, the OCI runtime automatically collects the logs from the stdout and output them to a file on the node, and after some other process collect them and send them to your logstack (filebeat, fluentd, etc.).
So my question is, is it possible to optimize this in this context or this performance hit is something I have to live with?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I'm using logback with Spring Boot 3.3.x. While looking at my logs, I saw a warning indicating that I should not use the
CONSOLE
appender because it is slow :However, this application runs in docker on a standard Kubernetes cluster. From the info I gathered, the OCI runtime automatically collects the logs from the stdout and output them to a file on the node, and after some other process collect them and send them to your logstack (filebeat, fluentd, etc.).
So my question is, is it possible to optimize this in this context or this performance hit is something I have to live with?
TIA!
Beta Was this translation helpful? Give feedback.
All reactions