On 11/29/2016 6:40 AM, tesm...@gmail.com wrote: > Solr server is running in a Ubuntu VM on Azure. Php pages PHPSolarium are > hosted as webapp using the same VM as for Solr server. > > After deployment, I am getting the following HTTP request timeout error: > > Fatal error: Uncaught exception 'Solarium\Exception\HttpException' with > message 'Solr HTTP error: HTTP request failed, Connection timed out after > 5016 milliseconds' in
Solarium is third-party software. The Solr project was not involved with its development at all. If you need help with it, you'll need to contact their community. This is their official source repo: https://github.com/solariumphp/solarium That problem looks to me like there is a 5 second timeout in Solarium for requests. They likely have a way to increase that timeout. We can help with problems on the server side, but unless you've really messed with the server-side config, chances are that this is a client-side problem. If you're trying to reduce the query time, a common remedy is to add more memory in the Solr server. Here is the current state of my knowledge about performance issues with Solr: https://wiki.apache.org/solr/SolrPerformanceProblems You haven't given us the Solr version or any Solr logs, which we will need if you are trying to fix a problem on the server side. As for best practices ... we can't give you any information on the client side. For the server side, in a nutshell, a reasonable answer requires a LOT of information, and even with that information, any guess we make might be wrong: https://lucidworks.com/blog/sizing-hardware-in-the-abstract-why-we-dont-have-a-definitive-answer/ My general advice: Put as much memory as you can afford in the server. Thanks, Shawn