You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Robg50 <tr...@verizon.net> on 2015/05/05 14:11:22 UTC

Solr & Wordpress - one server or two?

I'm thinking of taking SOLR for a test drive and will probably keep it if it
works as I'm hoping so I'd like to get it as right as possible the first
time out.

I'm running Wordpress on Ubuntu with php and Mariadb 10. The server is a 7
core, 4gb, Azure VM. The database is 4gb. The data itself is mainly docs,
pdfs, and app descriptions/images from iTunes and Google Play Store.

I have two questions: 1. Should I put SOLR on the same server that hosts my
site and db or create a second VM just for SOLR? I'm looking for speed here,
mainly.

If I install on a 2nd server should I use Tomcat instead of Apache2?
Any advice is much appreciated!!! Rob



--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-Wordpress-one-server-or-two-tp4203914.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr & Wordpress - one server or two?

Posted by Shawn Heisey <ap...@elyograg.org>.
On 5/5/2015 6:11 AM, Robg50 wrote:
> I'm thinking of taking SOLR for a test drive and will probably keep it if it
> works as I'm hoping so I'd like to get it as right as possible the first
> time out.
>
> I'm running Wordpress on Ubuntu with php and Mariadb 10. The server is a 7
> core, 4gb, Azure VM. The database is 4gb. The data itself is mainly docs,
> pdfs, and app descriptions/images from iTunes and Google Play Store.
>
> I have two questions: 1. Should I put SOLR on the same server that hosts my
> site and db or create a second VM just for SOLR? I'm looking for speed here,
> mainly.
>
> If I install on a 2nd server should I use Tomcat instead of Apache2?

It's nearly impossible to answer your question with the information
provided.  We can make an educated guess if we have more info, but it
would be a guess ... the only way to actually know is to prototype and
try it.

https://lucidworks.com/blog/sizing-hardware-in-the-abstract-why-we-dont-have-a-definitive-answer/

Also, be aware of general advice regarding memory and Solr performance. 
Unless your index is tiny, which probably won't be the case with a 4GB
source database, 4GB of RAM may be too small for even a dedicated Solr
machine.  If the machine is NOT dedicated, the likelihood of 4GB being
enough RAM is even smaller:

http://wiki.apache.org/solr/SolrPerformanceProblems

I can say something about your last question ... Solr won't run in
Apache.  It requires a Java servlet container.  As long as I've been
using it, it has shipped with an example that includes Jetty, but in 4.x
and earlier versions there was a separately available war file for
deployment in another app like Tomcat.  The 5.x versions are shipped as
a complete package with startup scripts that start Jetty.  You *can*
still find the .war and put it in another container like Tomcat, but we
are discouraging that approach even more strongly than we did for past
versions.

Thanks,
Shawn