Skip to content

Bound Solr's Jetty request.log retention #288

Description

@gaurav

Solr's log files live in /var/solr/logs, which is not on the Solr PVC (only /var/solr/data is mounted), so they consume pod ephemeral storage.

Most of it is bounded by size:

File Cap
solr.log 32 MB x 10
solr_slow_requests.log 32 MB x 10
solr_gc.log 20 MB x 9 (now routed to stdout instead)

The exception is Jetty's NCSA YYYY_MM_DD.request.log, which is bounded by time, not sizesolr.log.requestlog.retaindays defaults to 3 — so it grows with query volume.

The name-lookup chart in translator-devops now sets ephemeral-storage requests/limits for the Solr pod (2Gi/8Gi), sized generously precisely because an ephemeral-storage limit evicts the pod when exceeded. If request logs ever grow enough to pinch, set -Dsolr.log.requestlog.retaindays=1 (or disable the request log) rather than trimming the limit.

Low priority — this is a "know the knob exists" issue, not a current problem.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions