Skip to content
pmhatre edited this page Nov 10, 2014 · 1 revision

WikiInstallation & Setup

Prerequisites

  • An activeMQ broker running on a host

Generating artifact and war

  1. Clone the project
  2. Use maven to generate artifact and war
mvn clean install

Run Application

  1. Copy war file inside a web server/container like Jetty or Tomcat
  2. Create a configuration file named application.properties and place it in the resource folder of your container.

Configuration

The application.properties file must contain:

  • thoth.queue.input : the name of the activeMQ queue where all the collected requests are dumped
  • thoth.consumers.max , thoth. consumers.concurrent : number of maximum and concurrent JMS consumers that will listend to the queue
  • thoth.index.url : url of the thoth index
  • activemq.host , activemq.port : activemq broker url and port

Here's a dummy example

thoth.queue.input=thoth-demo
thoth.consumers.max=5
thoth.consumers.concurrent=5

thoth.index.url=http://localhost:8983/solr/
# Settings for activeMQ broker
activemq.host=localhost
activemq.port=61616

# Enable/Disable shrinking feature
thoth.shrinker.enabled=true
# Schedule when do you want the shrinker feature to be triggered
thoth.shrinker.schedule=0 * * * * ?
# 'how long back' you want to shrink docs in seconds
thoth.shrinker.period=900
thoth.shrinker.threadPoolSize = 1

Clone this wiki locally