Re: Multiple solr instances on one server

2016-10-04 Thread Erick Erickson
This is an impossibly vague question to answer. You haven't
provided _anything_ useful to help answer. How much physical
memory is on the machine? How man processors? What
kind of searching? Faceting? Indexing rate? How many
documents? What kind of documents?

What evidence do you have that you _need_ to run multiple JVMs?
Is this a case of premature optimization?

About the only reason to worry about this is if you are encountering
long stop-the-world JVM pauses. Have you any evidence of that? Unless
and until you do there's not much point in running multiple JVMs. Or, I
guess, if your queries are taking too long to come back even under
light load.

And even with all that information, the only honest answer is
"try some variations and find out". Here's a straw-man proposal:
Start by allocating 16G to your JVMs until you have allocated a total
of around 30% of your physical memory to your JVMs. Say you have
128G, that would be 2 JVMs. Then measure/tune/measure, _then_
decide.

Best,
Erick

On Tue, Oct 4, 2016 at 7:55 PM, shalu <shalusingh0...@gmail.com> wrote:
> We are also require multiple solr instances to divide the heap space between
> cores. What is the best way to do it?
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Multiple-solr-instances-on-one-server-tp4248411p4299645.html
> Sent from the Solr - User mailing list archive at Nabble.com.


Re: Multiple solr instances on one server

2016-10-04 Thread shalu
We are also require multiple solr instances to divide the heap space between
cores. What is the best way to do it?



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Multiple-solr-instances-on-one-server-tp4248411p4299645.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Multiple solr instances on one server

2016-01-04 Thread Jack Krupansky
See the Solr Reference Guide:

"
-s 

Sets the solr.solr.home system property; Solr will create core directories
under this directory. This allows you to run multiple Solr instances on the
same host while reusing the same server directory set using the -d
parameter. If set, the specified directory should contain a solr.xml file,
unless solr.xml exists in ZooKeeper. The default value is server/solr.
"
https://cwiki.apache.org/confluence/display/solr/Solr+Start+Script+Reference



-- Jack Krupansky

On Mon, Jan 4, 2016 at 10:28 AM, Mugeesh Husain <muge...@gmail.com> wrote:

> you could start solr with multiple port like below
>
>
> bin/solr start -p 8983 one instance
> bin/solr start -p 8984 second instance and so its depend on you
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Multiple-solr-instances-on-one-server-tp4248411p4248413.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>


Multiple solr instances on one server

2016-01-04 Thread philippa griggs
Hello,


(Solr 5.2.1)


I'm wanting to run multple solr instances on one server, does anyone know which 
is better- allowing each solr instance to use their own internal jetty or to 
install jetty on the server?


Many thanks


Philippa


Re: Multiple solr instances on one server

2016-01-04 Thread philippa griggs
Hello,

Thanks for your reply.  Do you know if there are many disadvantages to running 
multiple solr instances all running their own internal jetty. I'm trying to 
work out if this would work or if I would need to install jetty myself on the 
machine and use that instead. I'm not sure how many solr instances I would need 
to run yet, it could be as high as 10.

From: Mugeesh Husain <muge...@gmail.com>
Sent: 04 January 2016 15:28
To: solr-user@lucene.apache.org
Subject: Re: Multiple solr instances on one server

you could start solr with multiple port like below


bin/solr start -p 8983 one instance
bin/solr start -p 8984 second instance and so its depend on you



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Multiple-solr-instances-on-one-server-tp4248411p4248413.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Multiple solr instances on one server

2016-01-04 Thread Mugeesh Husain
you could start solr with multiple port like below


bin/solr start -p 8983 one instance
bin/solr start -p 8984 second instance and so its depend on you



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Multiple-solr-instances-on-one-server-tp4248411p4248413.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Multiple solr instances on one server

2016-01-04 Thread Mugeesh Husain
you could use inbuilt(internal) jetty in the production, its depend on
requirement.

if you want to use other container, tomcat would be the best.

Elaborate your requirement Please why you want to use multiple instance in a
single server ?



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Multiple-solr-instances-on-one-server-tp4248411p4248429.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Multiple solr instances on one server

2016-01-04 Thread philippa griggs
We store a huge amount of data across 10 shards and are getting to a point 
where we keep having to up the heap to stop solr from crashing.  We are trying 
to keep the heap size down, and plan to to host multiple solr instances on each 
server which will have a much smaller heap size.

From: Mugeesh Husain <muge...@gmail.com>
Sent: 04 January 2016 16:01
To: solr-user@lucene.apache.org
Subject: Re: Multiple solr instances on one server

you could use inbuilt(internal) jetty in the production, its depend on
requirement.

if you want to use other container, tomcat would be the best.

Elaborate your requirement Please why you want to use multiple instance in a
single server ?



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Multiple-solr-instances-on-one-server-tp4248411p4248429.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Multiple solr instances on one server

2016-01-04 Thread Erick Erickson
Right, that's the most common reason to run multiple JVMs. You must
be running multiple replicas on each box though to make that viable. By
running say 2 JVMS, you're essentially going from hosting, say, 4 replicas
in one JVM to 2 replicas in each of 2 JVMs.

You'll incur some overhead due to the second instance of Java running,
but that's usually negligible.

There's no reason at all to run an independent Jetty, just use the startup
scripts to specify a second port as outlined above. If you use the startup
script and specify the -e cloud example (on your local box, say), go ahead
and specify two instances of Solr. The script will echo out the exact command
used to start them up and you can use that as an example.

Best,
Erick

On Mon, Jan 4, 2016 at 8:16 AM, philippa griggs
<philippa.gri...@hotmail.co.uk> wrote:
> We store a huge amount of data across 10 shards and are getting to a point 
> where we keep having to up the heap to stop solr from crashing.  We are 
> trying to keep the heap size down, and plan to to host multiple solr 
> instances on each server which will have a much smaller heap size.
> 
> From: Mugeesh Husain <muge...@gmail.com>
> Sent: 04 January 2016 16:01
> To: solr-user@lucene.apache.org
> Subject: Re: Multiple solr instances on one server
>
> you could use inbuilt(internal) jetty in the production, its depend on
> requirement.
>
> if you want to use other container, tomcat would be the best.
>
> Elaborate your requirement Please why you want to use multiple instance in a
> single server ?
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Multiple-solr-instances-on-one-server-tp4248411p4248429.html
> Sent from the Solr - User mailing list archive at Nabble.com.