Solr

Carro2 Project, Solr

https://wiki.apache.org/solr/SolrCloud http://www.slideshare.net/lucenerevolution/how-to-make-a-simple-cheap-high-availability-selfhealing-solr-cluster https://support.lucidworks.com/hc/en-us/articles/201298197-Solr-HA-DR-overview-3-x-and-4-0-SolrCloud- https://www.credera.com/blog/ecommerce/high-availability-search-with-solrcloud/ http://stackoverflow.com/questions/20107114/howto-create-a-redumdant-instance-of-solr http://wiki.apache.org/solr/SolrCloud https://cwiki.apache.org/confluence/display/solr/How+SolrCloud+Works

Performance Tuning

Create cloud

Delete query

<delete><query>*:*</query></delete>
# Download and extract solr 4.9.1
wget http://archive.apache.org/dist/lucene/solr/4.9.1/solr-4.9.1.tgz
tar -zxvf solr-4.9.1.tgz
 
# Create nodes
cp -r solr-4.9.1/example/ node1
cp -r solr-4.9.1/example/ node2
cp -r solr-4.9.1/example/ node3
cp -r solr-4.9.1/example/ node4
 
# Run solr with 2 shards
cd node1
java -DzkRun -DnumShards=2 -Dbootstrap_confdir=./solr/collection1/conf -Dcollection.configName=myconf -jar start.jar
 
# Run another shard
cd node2
java -Djetty.port=7574 -DzkHost=localhost:9983 -jar start.jar
 
 
# Create replicas
cd node3
java -Djetty.port=8900 -DzkHost=localhost:9983 -jar start.jar
 
cd node4
java -Djetty.port=7500 -DzkHost=localhost:9983 -jar start.jar