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 "Gell-Holleron, Daniel" <da...@gb.unisys.com> on 2020/01/30 11:28:46 UTC

Timeout occurred while waiting response from server

Hello,

I'm having trouble when trying to back up my Solr collection. I send the request through and eventually I'll be prompted with a timeout error from.

Is there a timeout setting that can be changed so I can increase the amount of time it takes before a timeout? I have 4 Solr nodes, with 1 shard on each node. Each with 8GB of Java memory allocated to it. Current data size overall is 6GB so I'm surprised I'm getting this error.

Any advice would be greatly appreciated.

We're on Solr version 7.7.1

Thanks,

Daniel


RE: Timeout occurred while waiting response from server

Posted by "Gell-Holleron, Daniel" <da...@gb.unisys.com>.
Thank you Shawn, 

Found out the timeout can be increased in the solr.xml but going to go with the async approach instead. It gives a much better overview on the status of the backup, which is something we need for monitoring purposes. 

Thanks, 

Daniel


-----Original Message-----
From: Shawn Heisey <ap...@elyograg.org> 
Sent: 30 January 2020 19:23
To: solr-user@lucene.apache.org
Subject: Re: Timeout occurred while waiting response from server

On 1/30/2020 4:28 AM, Gell-Holleron, Daniel wrote:
> I'm having trouble when trying to back up my Solr collection. I send the request through and eventually I'll be prompted with a timeout error from.
> 
> Is there a timeout setting that can be changed so I can increase the amount of time it takes before a timeout? I have 4 Solr nodes, with 1 shard on each node. Each with 8GB of Java memory allocated to it. Current data size overall is 6GB so I'm surprised I'm getting this error.

The Collections API has a 3 minute timeout.  The request would probably 
complete even though you got an error, but I am not 100% sure about that.

If you have something that takes longer than this, you should make the 
request async.  This will return immediately and put the request in the 
background.  You can then make additional calls to check on its status.

Thanks,
Shawn

Re: Timeout occurred while waiting response from server

Posted by Shawn Heisey <ap...@elyograg.org>.
On 1/30/2020 4:28 AM, Gell-Holleron, Daniel wrote:
> I'm having trouble when trying to back up my Solr collection. I send the request through and eventually I'll be prompted with a timeout error from.
> 
> Is there a timeout setting that can be changed so I can increase the amount of time it takes before a timeout? I have 4 Solr nodes, with 1 shard on each node. Each with 8GB of Java memory allocated to it. Current data size overall is 6GB so I'm surprised I'm getting this error.

The Collections API has a 3 minute timeout.  The request would probably 
complete even though you got an error, but I am not 100% sure about that.

If you have something that takes longer than this, you should make the 
request async.  This will return immediately and put the request in the 
background.  You can then make additional calls to check on its status.

Thanks,
Shawn