Re: HTTP Request timeout exception with Solr+Solarium on Azure

2016-11-29 Thread Shawn Heisey
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



HTTP Request timeout exception with Solr+Solarium on Azure

2016-11-29 Thread tesm...@gmail.com
Hi,




I am deploying Solr+PHPSolarium on Azure

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
D:\home\site\wwwroot\vendor\solarium\solarium\library\Solarium\Core\Client\Adapter\Curl.php:195
Stack trace: #0
D:\home\site\wwwroot\vendor\solarium\solarium\library\Solarium\Core\Client\Adapter\Curl.php(92):
Solarium\Core\Client\Adapter\Curl->check('', Array, Resource id #3) #1
D:\home\site\wwwroot\vendor\solarium\solarium\library\Solarium\Core\Client\Adapter\Curl.php(213):
Solarium\Core\Client\Adapter\Curl->getResponse(Resource id #3, false) #2
D:\home\site\wwwroot\vendor\solarium\solarium\library\Solarium\Core\Client\Adapter\Curl.php(68):
Solarium\Core\Client\Adapter\Curl->getData(Object(Solarium\Core\Client\Request),
Object(Solarium\Core\Client\Endpoint)) #3
D:\home\site\wwwroot\vendor\solarium\solarium\library\Solarium\Core\Client\Client.php(804):
Solarium\Core\Client\Adapter\Curl->execute(Object(Solarium\Core\Client\Request),
Object(Solarium\Core\Clie in
D:\home\site\wwwroot\vendor\solarium\solarium\library\Solarium\Core\Client\Adapter\Curl.php
on line 195


Any help is much appreciated


Regards,