Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-9971

Parameterise where solr creates its console and gc log files

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 6.3
    • None
    • scripts and tools

    Description

      In the $SOLR_INSTALL_DIR/bin/solr script, the location where the solr_gc.log + $SOLR_PORT-console.log file are created is hard wired to be inside the $SOLR_LOGS_DIR folder due to the following lines of code:

      • GC_LOG_OPTS+=("$gc_log_flag:$SOLR_LOGS_DIR/solr_gc.log" -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=9 -XX:GCLogFileSize=20M)
        
      • nohup "$JAVA" "${SOLR_START_OPTS[@]}" $SOLR_ADDL_ARGS -Dsolr.log.muteconsole \
        	"-XX:OnOutOfMemoryError=$SOLR_TIP/bin/oom_solr.sh $SOLR_PORT $SOLR_LOGS_DIR" \
                -jar start.jar "${SOLR_JETTY_CONFIG[@]}" \
        	1>"$SOLR_LOGS_DIR/solr-$SOLR_PORT-console.log" 2>&1 & echo $! > "$SOLR_PID_DIR/solr-$SOLR_PORT.pid"
        

      Would it be possible to arrange for another two ENVIRONMENT variables to be made available which allow us to control where these two files are created?

      e.g. SOLR_GC_LOG + SOLR_CONSOLE_LOG

      The use case behind this request is that it is useful to keep gc and console logs separate from the application logs because there are different archival / ingestion / processing requirements for each.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jinesh.choksi Jinesh Choksi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m