I don't want to break my website when elasticsearch is down or even not installed.
The features depending on elasticsearch should be temporarly disabled when elasticsearch is not available.
What's the best way to check the elasticsearch availability without slowing down all pages?
- a test curl request on the beginning of each page?
- a job in the background checking the availability and changing a conf or database entry, read on each page?
Does elastica offer a test function for elasticsearch availability? (I didn't find it)
How to enable/disable elastica "update_on_save" feature on the fly?