Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Ensure Jetty request logging doesn't fill up disk space #60

Closed
meltsufin opened this issue Oct 12, 2016 · 11 comments
Closed

Ensure Jetty request logging doesn't fill up disk space #60

meltsufin opened this issue Oct 12, 2016 · 11 comments

Comments

@meltsufin
Copy link
Member

Jetty request logging should either be completely turned off because request logging is already done by nginx proxy, or log rotation must be setup to limit the log file size on disk.

@joakime
Copy link
Contributor

joakime commented Oct 12, 2016

Implemented already as part of GoogleCloudPlatform/appengine-java-vm-runtime#231

@joakime
Copy link
Contributor

joakime commented Oct 12, 2016

This brings back up the need to introduce non-default logging to the Jetty image.

@meltsufin
Copy link
Member Author

That was never merged into the old master. So, I reopened the issue there for a quick fix. In this repo, we're currently not writing Jetty logs to disk at all, right?

@joakime
Copy link
Contributor

joakime commented Oct 12, 2016

Nope, current master does not have "logging" module (which does the StdErr -> rotated files layer)

<argument>--add-to-startd=http,deploy,jsp,jstl,http-forwarded,resources,gae</argument>

@joakime
Copy link
Contributor

joakime commented Oct 12, 2016

Access logging from nginx is not integrated properly into the standard logging (there's no way yet to correlate the activity of a single request via its thread-id to the logs of the same thread-id at the same time).

Currently, the jetty produced access logging contains (logging) metadata about the thread that handled that request (useful for all non-async operations).

It will be appropriate to remove the jetty access logging layer when the following is satisfied:

  1. When issue Logging using the Google Cloud Logging API #4 is implemented and closed.
  2. Google Cloud Logging integrates (at the server/console layer) the relationship between the request and all of its logs.

Only then, will removing the jetty access logs be appropriate.
(This should be a separate issue, not tied up this issue)

@joakime
Copy link
Contributor

joakime commented Oct 12, 2016

Also of note regarding question about "currently not writing Jetty logs to disk".

The gae.mod and associated other modules don't seem to pull in the requestlog or logging modules via transitive dependencies too.

The jetty-base seems to be producing no access/request logs at all, and only STDERR output on default logging at INFO level.

@joakime
Copy link
Contributor

joakime commented Oct 12, 2016

Ah, the gae.xml adds the request logging manually. (why are we not using the shipping requestlog module instead?)

@meltsufin
Copy link
Member Author

I don't think this gets activated. @gregw Is this something we missed as part of #19?

@gregw
Copy link
Contributor

gregw commented Oct 12, 2016

@meltsufin the gae module does still get activated. It includes a mostly default version of the request-log simply because it did before in the version of compat we inherited.

I don't think it is pre-empting our work on the design document too much to guess that a local request log is not needed in general (and easy to add if needed specifically).

Unless I hear otherwise I'll do a PR to remove the request log.

@meltsufin
Copy link
Member Author

Agreed. I created an issue for removing the request logging and assigned it to you. #62

@gregw
Copy link
Contributor

gregw commented Nov 9, 2016

obsoleted by #68

@gregw gregw closed this as completed Nov 9, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants