Setting Timeouts and Limits

You can control Indexer performance by setting various timeouts and limits. These limits are set in two different places:

  • The Tomcat context.xml file

  • In your configuration layers

You can set the limits by adding the following Environment elements to the Tomcat context.xml file:

escenic/index-producer-connection-timeout

The connection timeout for connection to the indexer web service, specified in milliseconds. The default value is 4000.

escenic/index-producer-socket-timeout

The socket timeout for connection to the indexer web service, specified in milliseconds. The default value is 4000.

escenic/index-consumer-connection-timeout

The connection timeout for connection to Solr, specified in milliseconds. The default value is 4000.

escenic/index-consumer-socket-timeout

The socket timeout for connection to Solr, specified in milliseconds. The default value is 4000.

You can parameters governing the indexing of binary files by editing com/escenic/search/index/BinaryIndexerPlugin.properties in the default configuration layer. Of particular interest are the properties

maxWaitTime

The maximum time to wait for indexing of a binary file, specified in milliseconds. The default value is 3000.

maxFileSize

The maximum size of binary file to index, specified in bytes. The default value is 20971520 (i.e, 20MB).