datamade / django-councilmatic

:heartpulse: Django app providing core functions for *.councilmatic.org
http://councilmatic.org
MIT License
26 stars 16 forks source link

SOLR fails silently and does not restart #157

Open fgregg opened 6 years ago

fgregg commented 6 years ago

This causes our councilmatics to stop functioning. We need to address this this week.

reginafcompton commented 6 years ago

Related to: https://github.com/datamade/la-metro-councilmatic/issues/232

reginafcompton commented 6 years ago

It looks like a conventional strategy for restarting failed processes on Ubuntu entails the use of a config file (e.g. etc/init/solr.conf/) and Upstart.

reginafcompton commented 6 years ago

N.B. To prevent Solr crashes, we might also think about limiting the query results (since that tends to be what sucks up server memory and brings down solr). However, this may involve removing the Haystack dependency. @jeancochrane has a solution for limiting query results in SFM, which is worth considering.

reginafcompton commented 6 years ago

@evz and I did some work on this. Next steps:

I will prioritize these tasks in the order above.

hancush commented 3 years ago

Haystack defaults to silent failures. It can easily be configured to raise these exceptions (and use a certain default batch size, plus other options here). See: https://github.com/datamade/la-metro-councilmatic/pull/641