Skip to content

Commit

Permalink
Default index watcher time 10 minutes. Has performance problems it seems
Browse files Browse the repository at this point in the history
Added part to logback.xml to make log level exlicit.
  • Loading branch information
thomasegense committed Jan 11, 2024
1 parent 403afb5 commit 942dacf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/bundle/properties/solrwayback.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ solr.server.caching.max.entries=10000
# will strain the system. In that case it is recommended to disable active checking and use fixed time
# cache clearing with solr.server.caching.age.seconds instead.
#
# Default is 1 hour
# Default is 10 minutes
# Disable by setting to -1
# If the checking is disabled, consider setting solr.server.caching.age.seconds instead
solr.server.check.interval.seconds=3600
solr.server.check.interval.seconds=600

## Link to this webapp itself. BaseURL for link rewrites must be full url.
wayback.baseurl=http://localhost:8080/solrwayback/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public class PropertiesLoader {
* Used by {@link dk.kb.netarchivesuite.solrwayback.solr.IndexWatcher}
* through {@link dk.kb.netarchivesuite.solrwayback.solr.NetarchiveSolrClient}.
*/
public static int SOLR_SERVER_CHECK_INTERVAL = 60*60; //default value every hour
public static int SOLR_SERVER_CHECK_INTERVAL = 10*60; //default 10 minutes
public static String URL_NORMALISER="normal";

// Used by SolrStreamShard
Expand Down
3 changes: 3 additions & 0 deletions src/main/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
<configuration scan="true" scanPeriod="5 minutes">
<appender name="R" class="ch.qos.logback.core.rolling.RollingFileAppender">
<File>${catalina.home}/logs/solrwayback.log</File>
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>INFO</level>
</filter>
<encoder>
<pattern>%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger\(%file:%line\) - %msg%n</pattern>
</encoder>
Expand Down

0 comments on commit 942dacf

Please sign in to comment.