Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

run multiple solr instance in single server

Tags:

php

apache

solr

We are using apache-solr for search.Previously solr is running in production environment.Is it possible to setup another solr instance in same server for another db.Currently the solr is running in 8983 port.If possible,please help in how to configure with my new application.

Thanks

like image 621
user2681579 Avatar asked Feb 10 '26 23:02

user2681579


2 Answers

Yes, by changing the port no, you can run many instances in a single machine. But it may create a heavy load on your machine, when you'll be having a huge no of indexing and querying for the instances. For production environment, it's better to have single instance in a machine.

To start a separate instance, follow the steps.

  1. Take another copy of example folder.
  2. While starting the new instance (Say port new no is 4983) use the following command.

java -Djetty.port=4983 -jar start.jar

like image 94
buddy86 Avatar answered Feb 13 '26 13:02

buddy86


Another option for running Solr is to use Solr-Undertow which is a high performance with small footprint server for running Solr. It is easy to use on local machines for development and also production. It supports simple config files for running instances with different data directories, ports and more.

(note, I am the author of Solr-Undertow)

Link here: https://github.com/bremeld/solr-undertow with releases under the "Releases" tab.

like image 20
Jayson Minard Avatar answered Feb 13 '26 14:02

Jayson Minard



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!