solr-actuators

Xenit endpoint to retrieve solr readiness

License

License

GroupId

GroupId

eu.xenit.solr-actuators
ArtifactId

ArtifactId

solr-actuators
Last Version

Last Version

0.0.2
Release Date

Release Date

Type

Type

pom.sha512
Description

Description

solr-actuators
Xenit endpoint to retrieve solr readiness
Project URL

Project URL

https://github.com/xenit-eu/solr-actuators
Source Code Management

Source Code Management

https://github.com/xenit-eu/solr-actuators.git

Download solr-actuators

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

Solr actuators

Readiness endpoint to be used as load balancer check.

Solr is considered ready when it is "almost" ready with tracking alfresco.
This is computed subjectivelly using the lag reported by the SUMMARY screen: solr is ready when the lag is smaller than MAX_LAG.

The script is available at:

alfresco/xenit/actuators/readiness

In order to check the health of solr server, the out-of-the-box ping handler can be used.

alfresco/admin/ping

Usage

Status code is to be used for the health check: 200 if ready or 503 if not yet ready.

The output of the script offers additional information if being ready as well as information about current tracker status (when parameter info is appended to the query).

How to run integration tests

./gradlew integrationTest
eu.xenit.solr-actuators

Xenit

Versions

Version
0.0.2
0.0.1