Skip to content

Implement health check for the tracker application #508

@josecelano

Description

@josecelano

Implement a HEALTHCHECK for the whole application. We are doing the same for the index.

The goal is to add a line similar to this:

HEALTHCHECK --interval=5s --timeout=5s --start-period=3s --retries=3 \  
  CMD    /usr/bin/health_check --http http://localhost:${API_PORT}/health_check \
      && /usr/bin/health_check --http http://localhost:${HTTP_PORT}/health_check \
      && /usr/bin/health_check --udp udp://localhost:${UDP_PORT} \
      || exit 1

So when you run the tracker in a container, it can show its status (healthy or not).

For the HTTP tracker and Tracker API, we can add health_check endpoints like in the Index.

For the UDP Tracker, maybe we can try to connect.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions