Skip to content

LUNA PLATFORM v.5.12.1#

Changes#

  • A new "/healthcheck" resource was added to LUNA PLATFORM services. The resource can be used to actively check the status of the service, namely, whether the service can perform its functions in full or not. The possibility of connecting this service to the LP and databases on which it depends is checked.

    It is possible to set up a periodic resource check using HAProxy, NGINX or another system. This will enable you to determine that the service is unavailable and decide whether to disconnect the service from the contour or restart it.

    Using the "include_luna_services" option, you can enable and disable healthcheck for the LUNA PLATFORM services on which this service depends. If this option is enabled, additional requests are sent to the "/healthcheck" resources of these services.

    The "include_luna_services" option is disabled in order not to perform recursive checking of the same services. For example, when several services on which this service depends at once will send requests to the Faces service and thereby increase the load on it.

    If the healthcheck is successful, only the connection execution time in the "execution_time" field is returned.

    If one or more services are unavailable, an error code 502 "Unhealthy" is returned. The response body lists the components, check statuses, and errors that have occurred.

    The error code 500 in the response body does not necessarily mean a problem with the service. A long request may fail due to exceeded timeouts, increased server load, network problems or other reasons.

    When performing a request to the "/healthcheck" resource, it is recommended to set a timeout of several seconds. If the request does not have time to be processed, this is a sign that problems have arisen during the operation of the system.

  • The "account_id" parameter value is now used when receiving images from the Image Store service for the "detect face", "extract attributes", "generate events", and "perform verification" requests execution when they are sent directly to the Handlers service.

  • Descriptions of migrations from LUNA PLATFORM 3 and LUNA PLATFORM 4 were corrected following the latest changes in LUNA PLATFORM 5.