eftafmo / dataviz

Data visualisation website for EEA & Norway grants
https://data.eeagrants.org
1 stars 3 forks source link

Solr timeout #589

Closed mgax closed 2 years ago

mgax commented 4 years ago

The following error is triggered during daily cron jobs on Azure:

https://sentry.io/organizations/financial-mechanism-office/issues/2024725105/

SolrError

Connection to server 'http://solr:8983/solr/eeagrants/update/?commit=true' timed out: HTTPConnectionPool(host='solr', port=8983): Read timed out. (read timeout=10)
Screenshot 2020-11-13 at 16 57 53

It looks like Haystack hits a timeout after many requests to Solr.

mgax commented 4 years ago

https://github.com/eftafmo/dataviz/pull/588/commits/c7638714439ae81cfb8fc2114b5d1f8146f34ec2 increases the default timeout from 10 seconds to 60 and allows configuration via environment variable.

mgax commented 4 years ago

https://github.com/eftafmo/dataviz/pull/588/commits/e30d517577c43d2fb4c43e4b21bc19f6b02fb9d3 – the timeout setting was being overwritten by the Docker settings file.