siva
siva

Reputation: 1481

run multiple solr instance in single server

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

Upvotes: 2

Views: 4886

Answers (2)

Jayson Minard
Jayson Minard

Reputation: 85946

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.

Upvotes: 1

buddy86
buddy86

Reputation: 1444

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

Upvotes: 8

Related Questions