Reputation: 1481
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
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
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.
java -Djetty.port=4983 -jar start.jar
Upvotes: 8