-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WFLY-18581] Enable access logs in default configs #671
base: main
Are you sure you want to change the base?
Conversation
What is the performance impact of this? |
The performance impact should be really minimal. For this particular proposal 'use-server-log' attribute defaults to 'false' [1] and that means AccessLogService [2] will use DefaultAccessLogReceiver [3] . DefaultAccessLogReceiver uses Executor framework for writing logs so the penalty is just queuing the log message in logging queue (plus later in different thread async write of the log message to the file system). The message queuing is the most important question here because it has direct impact on the HTTP request-response latency. Considering networking latency (HTTP message exchanges) vs. queuing log message to the logging queue latency, the impact should be IMHO unmeasurable. [1] AccessLogService |
I have two concerns. I think none of them is critical, so just for your consideration... Documentation Looking through the docs living directly in the Wildfly repo, I didn't find anything that would specifically describe this functionality (I found a section on "Console Access Logging", which is related, but not exactly what is being enabled by this PR. Googling, the most relevant page that describes this is the MasterTheBoss website (https://www.mastertheboss.com/web/jboss-web-server/how-do-you-configure-jboss-to-enable-http-logging/), and the WildScribe docs on wildfly.org (https://docs.wildfly.org/35/wildscribe/subsystem/undertow/server/host/setting/access-log/index.html). So, considering this is quite basic and useful functionality, and as well that we are changing the default behavior, would it be worth it to add docs section specifically on "Access Logging", where we could at least mention that the access log is enabled by default and describe how to disable it and cover the basics? Log rotation / retention time Two questions in my head, not covered by the proposal doc, are:
That boils down to whether there is any log rotation strategy by default. Looking at Wildscribe it looks the logs are rotated daily (that's nice IMO), and are never removed (that may be less OK). Could this cause a problem for people running busy Wildfly instances (running out of space?). Would it be reasonable to limit the amount of data logged in the default configuration? The access-log resource doesn't seem to have capabilities to do any more complex rotation strategies, the mastertheboss page suggests to delegate access logging to the logging subsystem if this is needed. If we don't change this aspect maybe just clarify the behavior in the proposal..? |
https://issues.redhat.com/browse/WFLY-18581
Add analysis document
Resolves #670