lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nagelberg, Kallin" <KNagelb...@globeandmail.com>
Subject RE: Machine utilization while indexing
Date Thu, 20 May 2010 19:17:16 GMT
StreamingUpdateSolrServer already has multiple threads and uses multiple connections under
the covers. At least the api says ' Uses an internal MultiThreadedHttpConnectionManager to
manage http connections'. The constructor allows you to specify the number of threads used,
http://lucene.apache.org/solr/api/org/apache/solr/client/solrj/impl/StreamingUpdateSolrServer.html#StreamingUpdateSolrServer(java.lang.String,
int, int) . 

-Kallin Nagelberg

-----Original Message-----
From: Chris Hostetter [mailto:hossman_lucene@fucit.org] 
Sent: Thursday, May 20, 2010 3:14 PM
To: solr-user@lucene.apache.org
Subject: Re: Machine utilization while indexing


I'm really only guessing here, but based on your description of what you 
are doing it sounds like you only have one thread streaming documents to 
solr (via a single StreamingUpdateSolrServer instance which creates a 
single HTTP connection)

Have you at all attempted to have parallel threads in your client initiate 
parallel connections to Solr via multiple instances of 
StreamingUpdateSolrServer objects?)


-Hoss


Mime
View raw message