Skip to content

Instantly share code, notes, and snippets.

@arjones
Created December 22, 2011 04:59
Show Gist options
  • Save arjones/1508972 to your computer and use it in GitHub Desktop.
Save arjones/1508972 to your computer and use it in GitHub Desktop.
IndexTank Start Script
{
"max_variables": 3,
"functions": {
"0": "-age"
},
"index_code": "dgmqn",
"allows_facets": true,
"ram": 600,
"log_server_host": "index123.localhost",
"autocomplete": true,
"log_server_port": 15100,
"autocomplete_type": "documents",
"allows_snippets": true,
"rti_size": 500,
"facets_bits": 5,
"base_port": 20220,
"log_based_storage": false,
"xmx": 600
}
#!/bin/sh
cd "`dirname $0`/../"
mkdir -p index
mkdir -p logs
mkdir -p conf
JVM_ARGS="-verbose:gc -Xloggc:logs/gc.log -XX:+PrintGCTimeStamps -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -Dorg.apache.lucene.FSDirectory.class=org.apache.lucene.store.MMapDirectory -Xmx600M"
PARAMS="--facets --rti-size 500 --conf-file conf/sample-engine-config --port 20220 --environment-prefix TEST --recover --dir index --snippets --suggest documents --boosts 3 --index-code dgmqn --functions 0:-age"
MAIN="com.flaptor.indextank.index.IndexEngine"
/usr/bin/java $JVM_ARGS -cp target/engine-1.0.0-jar-with-dependencies.jar $MAIN $PARAMS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment