Re: SolrCloud Startup question

2015-09-22 Thread Ravi Solr
Thanks Anshum On Mon, Sep 21, 2015 at 6:23 PM, Anshum Gupta wrote: > CloudSolrClient is thread safe and it is highly recommended you reuse the > client. > > If you are providing an HttpClient instance while constructing, make sure > that the HttpClient uses a multi-threaded connection manager. >

Re: SolrCloud Startup question

2015-09-21 Thread Anshum Gupta
CloudSolrClient is thread safe and it is highly recommended you reuse the client. If you are providing an HttpClient instance while constructing, make sure that the HttpClient uses a multi-threaded connection manager. On Mon, Sep 21, 2015 at 3:13 PM, Ravi Solr wrote: > Thank you Anshum & Upayav

Re: SolrCloud Startup question

2015-09-21 Thread Ravi Solr
Thank you Anshum & Upayavira. BTW do any of you guys know if CloudSolrClient is ThreadSafe ?? Thanks, Ravi Kiran Bhaskar On Monday, September 21, 2015, Anshum Gupta wrote: > Hi Ravi, > > I just tried it out and here's my understanding: > > 1. Starting Solr with -c starts Solr in cloud mode. T

Re: SolrCloud Startup question

2015-09-21 Thread Anshum Gupta
Hi Ravi, I just tried it out and here's my understanding: 1. Starting Solr with -c starts Solr in cloud mode. This is used to start Solr with an embedded zookeeper. 2. Starting Solr with -z starts Solr in cloud mode, with the zk connection string you specify. You don't need to explicitly specify

Re: SolrCloud Startup question

2015-09-21 Thread Upayavira
As it says below, -c enables a Zookeeper node within the same JVM as Solr. You don't want that, as you already have an ensemble up and running. Upayavira On Mon, Sep 21, 2015, at 09:35 PM, Ravi Solr wrote: > Can somebody kindly help me understand the difference between the > following > startup c

SolrCloud Startup question

2015-09-21 Thread Ravi Solr
Can somebody kindly help me understand the difference between the following startup calls ? ./solr start -p -s /solr/home -z zk1:2181,zk2:2181,zk3:2181 Vs ./solr start -c -p -s /solr/home -z zk1:2181,zk2:2181,zk3:2181 What happens if i don't pass the "-c" option ?? I read the document

Re: SolrCloud Startup

2014-03-04 Thread KNitin
Thanks a lot, Shawn! I was missing an ICU jar as a part of my original setup. I then copied the analysis jars into solr/lib and removed all reference in solrconfig.xml and it worked like a charm The permgen space also seems to have reduced significantly Thanks Nitin On Tue, Mar 4, 2014 at 2:41

Re: SolrCloud Startup

2014-03-04 Thread Shawn Heisey
On 3/4/2014 3:09 PM, KNitin wrote: I did the following as you suggested. I have a lib dir under /mnt/solr/ (this is the solr.solr.home dir) and moved all my jars in it. I do not have anySharedLib or lib references in my solr or solrconfig. xml file The jars are not getting loaded for a few custo

Re: SolrCloud Startup

2014-03-04 Thread KNitin
I did the following as you suggested. I have a lib dir under /mnt/solr/ (this is the solr.solr.home dir) and moved all my jars in it. I do not have anySharedLib or lib references in my solr or solrconfig. xml file The jars are not getting loaded for a few custom analyzers I have in the schema. Sh

Re: SolrCloud Startup

2014-03-03 Thread KNitin
Thanks, Shawn. Right now my solr.solr.home is not being passed from the java runtime Lets say /mnt/solr/ is my solr root. I can add all jars to /mnt/solr/lib/ and use -Dsolr.solr.home=/mnt/solr/ , that should do it right? Thanks Nitin On Mon, Mar 3, 2014 at 2:44 PM, Shawn Heisey wrote: > On

Re: SolrCloud Startup

2014-03-03 Thread Shawn Heisey
On 3/3/2014 3:30 PM, KNitin wrote: A quick ping on this. To give more stats, I have 100's of collections on every node. The time it takes for one collection to boot up /loadonStartup is around 10-20 seconds ("and sometimes even 1 minute). I do not have any query auto warming etc. On a per collect

Re: SolrCloud Startup

2014-03-03 Thread KNitin
A quick ping on this. To give more stats, I have 100's of collections on every node. The time it takes for one collection to boot up /loadonStartup is around 10-20 seconds ("and sometimes even 1 minute). I do not have any query auto warming etc. On a per collection basis I load a bunch of libraries

Re: SolrCloud Startup

2014-02-26 Thread KNitin
Thanks, Shawn. I will try to upgrade solr soon Reg firstSearcher: I think it does nothing now. I have configured to use ExternalFileLoader but there the external file has no contents. Most of the queries hitting the collection are expensive and tail queries. What will be your recommendation to war

Re: SolrCloud Startup

2014-02-25 Thread Shawn Heisey
On 2/25/2014 4:30 PM, KNitin wrote: Jeff : Thanks. I have tried reload before but it is not reliable (atleast in 4.3.1). A few cores get initialized and few dont (show as just recovering or down) and hence had to move away from it. Is it a known issue in 4.3.1? With Solr 4.3.1, you are running

Re: SolrCloud Startup

2014-02-25 Thread KNitin
Erick: My autocommit is set to trigger every 30 seconds with openSearcher=false. The autocommit for soft commits are disabled On Tue, Feb 25, 2014 at 3:30 PM, KNitin wrote: > Jeff : Thanks. I have tried reload before but it is not reliable (atleast > in 4.3.1). A few cores get initialized and

Re: SolrCloud Startup

2014-02-25 Thread KNitin
Jeff : Thanks. I have tried reload before but it is not reliable (atleast in 4.3.1). A few cores get initialized and few dont (show as just recovering or down) and hence had to move away from it. Is it a known issue in 4.3.1? Shawn,Otis,Erick Yes I have reviewed the page before and have given 1

Re: SolrCloud Startup

2014-02-24 Thread Erick Erickson
What is your firstSearcher set to in solrconfig.xml? If you're doing something really crazy there that might be an issue. But I think Otis' suggestion is a lot more probable. What are your autocommits configured to? Best, Erick On Mon, Feb 24, 2014 at 7:41 PM, Shawn Heisey wrote: > > Hi > > >

Re: SolrCloud Startup

2014-02-24 Thread Otis Gospodnetic
Hi, Slow startup could it be your transaction logs are being replayed? Are they very big? Do you see lots of disk reading during those 20-30 minutes? Shawn was referring to http://wiki.apache.org/solr/SolrPerformanceProblems Otis -- Performance Monitoring * Log Analytics * Search Analytics

Re: SolrCloud Startup

2014-02-24 Thread Shawn Heisey
> Hi > > I have a 4 node solrcloud cluster with more than 50 collections with 4 > shards each. Everytime I want to make a schema change, I upload configs to > zookeeper and then restart all nodes. However the restart of every node is > very slow and takes about 20-30 minutes per node. > > Is it re

Re: SolrCloud Startup

2014-02-24 Thread Jeff Wartes
There is a RELOAD collection command you might try: https://cwiki.apache.org/confluence/display/solr/Collections+API#Collection sAPI-api2 I think you¹ll find this a lot faster than restarting your whole JVM. On 2/24/14, 4:12 PM, "KNitin" wrote: >Hi > > I have a 4 node solrcloud cluster with

SolrCloud Startup

2014-02-24 Thread KNitin
Hi I have a 4 node solrcloud cluster with more than 50 collections with 4 shards each. Everytime I want to make a schema change, I upload configs to zookeeper and then restart all nodes. However the restart of every node is very slow and takes about 20-30 minutes per node. Is it recommended to m