-
Improvement
-
Resolution: Fixed
-
Minor
-
4.5
-
MOODLE_405_STABLE
-
MOODLE_500_STABLE
-
MDL-83119-main -
-
-
When using the Solr search engine, there is currently no 'status check' (via the Check API) that the search engine is up/responding.
Additionally we have some issues in our installation with the size used by Solr index. Solr has stringent disk space requirements and when using 3rd party hosting where you pay for the exact storage space, it's desirable to monitor the size so that you notice before the hosting provider if it's getting close to the limits.
I propose adding a new status check. The check will only be enabled if Solr is configured. It reports:
- OK - If it can connect to Solr and the index size is comfortably less than specified threshold.
- Warning - If it can connect to Solr but the index size exceeds 90% of threshold
- Error - If it can't connect to Solr, or if it can but the index size exceeds threshold.
Status showing OK:
Status showing index too large:
Status showing a connection failure (host address is wrong in this case):
To make the warning state work, there will also be a new admin setting search_solr/indexsizelimit. By default this will be set to 0 (off, no limit).