ndom91 / agent-healthcheck-poc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Healthcheck Notes

  1. Needs to be outbound, i.e. Agent -> Checkly Backend
  2. Should have some sort of process monitor (Docker itself? Separate PM2?)
  3. Otherwise, a simple axios request every X seconds should do..

With Docker has a built-in "HEALTHCHECK" function in their Dockerfile definitions

i.e.

FROM node:alpine
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 3000

HEALTHCHECK --interval=12s --timeout=12s --start-period=30s \
    CMD node healthcheck.js

CMD ["node","real-app.js"]

Links

About


Languages

Language:JavaScript 100.0%