Support a "degraded mode" where failure to contact Elasticsearch or index documents does not affect the whole application

Description

In some applications, indexing and searching are important, but not nearly as much as the rest of the application. If Elasticsearch is down, these applications would rather continue operating as usual and just log the errors.

This means in particular that:

  1. Bootstrap must continue even if the Elasticsearch cluster cannot be reached. It should be possible if the Elasticsearch version was provided as part of the configuration.

  2. Exceptions thrown during indexing should not be propagated to the application, but should rather be logged.

We'll probably need some sort of global configuration that affects both the ORM mapper (for item #1) and the Elasticsearch backend (for item #2).

Environment

None

Assignee

Yoann Rodière

Reporter

Yoann Rodière

Labels

None

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Fix versions

Priority

Major
Configure