Thank you very much Doug. I was thinking of putting Solr on a separate
server, but I did not expect you to so strongly recommend Jetty. I think I
would stick to the embedded Jetty, because I don't need the security. I'm
using Solr 4.10.3 at the moment, so I'm not familiar with Solr 5. 

Thanks again,
O. O.


Doug Turnbull wrote
> 1. Unless usage is very light, you likely want Solr to be on a different
> server. Its going to have different caching and system needs than your web
> app. You may also want to scale Solr independently from your web app.
> Think
> of it just like you think of a database-- do you want your MySQL instance
> on the same server as your web app? For all but simple uses, I'd say no.
> You want it separate so you can tune performance differently.
> 
> 2. Most HTTP clients have a way for keeping the underlying socket
> connection alive. So "open a connection" likely won't happen. You can feel
> safe in relying on SolrJ or any other reasonable HTTP-based client
> communicating to Solr from your web app.
> 
> Also, I always discourage suggesters that work on "every keypress". You
> probably want a number of keypresses and a timeout to avoid overloading
> your Solr servers. Or if you truly want that, be aware that it may come
> with some performance issues.
> 
> 3. I would seriously steer away from anything but Jetty. Also, doesn't
> Solr
> 5 not even give you a choice? Go with the defaults, they are tested well.
> If you want to wrap it behind a security layer, then proxy Solr with
> something like nginx (https://github.com/o19s/solr_nginx).
> 
> The readme at that github repo captures our philosophy for deploying a
> Solr
> box with default Jetty fronted by nginx for some sane security
> 
> Hope that helps,
> -Doug
> 
> -- 
> *Doug Turnbull **| *Search Relevance Consultant | OpenSource Connections,
> LLC | 240.476.9983 | http://www.opensourceconnections.com
> Author: Taming Search <http://manning.com/turnbull> from Manning
> Publications
> This e-mail and all contents, including attachments, is considered to be
> Company Confidential unless explicitly stated otherwise, regardless
> of whether attachments are marked as such.





--
View this message in context: 
http://lucene.472066.n3.nabble.com/Integrating-Solr-with-an-existing-web-application-and-SolrJ-tp4202611p4202621.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to