这是indexloc提供的服务,不要输入任何密码
Skip to content

Add _version or _health route #14

@markuman

Description

@markuman

I'd like to include a health check into the docker file. E.g.

HEALTHCHECK --interval=5s --timeout=3s \
  CMD curl --fail http://localhost:$PORT/_health || exit 1

So it would be nice to have a /_health route or something similar. The controller function should check if the connection to the mysql database is still alive. Or maybe a _version route, where xmysql responses with the connected mysql version. This can also be used for a health check.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions