Kubrik OSSUPPORTSOPORTE All productsTodos los productos
Technical manualManual técnico › Operation › Day to day › Checking that it is healthyOperación › Día a día › Revisar que esté sana

Checking that it is healthy

Revisar que esté sana

The application publishes a health address and an information address. With them, and with the state of the containers, you know in a minute whether the installation is working.

La aplicación publica una dirección de salud y una de información. Con ellas, y con el estado de los contenedores, sabés en un minuto si la instalación está funcionando.

👤 Who: System administrator📍 Where: Server console
👤 Quién: Administrador de sistemas📍 Dónde: Consola del servidor

The daily routine

La rutina diaria

  1. Look at the containers. docker compose -f docker-compose.<edition>.yml ps lists every service and its state. postgres and redis also show whether they pass their own check.
  2. Ask the application. curl http://localhost:8222/actuator/health answers with a state. UP means that the application and what it depends on are answering.
  3. Confirm the edition and the version. curl http://localhost:8222/actuator/info.
  4. Open the administration app and sign in. It is the only check that goes through the whole path a user takes.
  1. Mirá los contenedores. docker compose -f docker-compose.<edición>.yml ps lista cada servicio y su estado. postgres y redis muestran además si pasan su propio control.
  2. Preguntale a la aplicación. curl http://localhost:8222/actuator/health contesta con un estado. UP significa que la aplicación y lo que necesita están contestando.
  3. Confirmá la edición y la versión. curl http://localhost:8222/actuator/info.
  4. Abrí la aplicación de administración e ingresá. Es el único control que recorre todo el camino que hace un usuario.

The addresses the application publishes

Las direcciones que publica la aplicación

AddressWhat it answers
/actuator/healthThe overall state. Without signing in you only get the state; the detail of each part is shown to an authorised user.
/actuator/infoThe name KS-ERP, the edition and the version.
/actuator/metricsThe list of measurements the application keeps. Add a name to read one, for example /actuator/metrics/http.server.requests for the response times.
DirecciónQué contesta
/actuator/healthEl estado general. Sin ingresar solo recibís el estado; el detalle de cada parte se le muestra a un usuario autorizado.
/actuator/infoEl nombre KS-ERP, la edición y la versión.
/actuator/metricsLa lista de mediciones que lleva la aplicación. Agregale un nombre para leer una, por ejemplo /actuator/metrics/http.server.requests para los tiempos de respuesta.

The same addresses answer through the administration container on port 80, because its nginx forwards /actuator/. Use /actuator/health on port 8222 as the check of your monitoring tool or of your container platform.

Las mismas direcciones contestan a través del contenedor de administración en el puerto 80, porque su nginx reenvía /actuator/. Usá /actuator/health en el puerto 8222 como control de tu herramienta de monitoreo o de tu plataforma de contenedores.

⚠️
These addresses do not ask for a password. Do not publish /actuator/ on the internet: let only your monitoring network reach it. See Reverse proxy and HTTPS.Estas direcciones no piden contraseña. No publiques /actuator/ en internet: dejá que llegue solo tu red de monitoreo. Mirá Proxy inverso y HTTPS.

What to watch besides the state

Qué mirar además del estado

WhatWhy
Free disk of the database volume and of the file storeThey are the two places that grow. A full disk stops the database.
Connections to the databaseEach copy of the application keeps up to 60 open. See Capacity and several copies.
Outbound e-mailA mail problem does not change the health state. Look for it in the log.
Age of the location databaseIt is read only at start-up and gets old without notice.
Date of the last backupSee Backups and restore.
QuéPor qué
Disco libre del volumen de la base y del almacén de archivosSon los dos lugares que crecen. Un disco lleno detiene la base de datos.
Conexiones a la base de datosCada copia de la aplicación mantiene hasta 60 abiertas. Mirá Capacidad y varias copias.
Correo salienteUn problema de correo no cambia el estado de salud. Buscalo en el registro.
Antigüedad de la base de ubicaciónSe lee solo al arrancar y envejece sin avisar.
Fecha de la última copia de seguridadMirá Copias de seguridad y restauración.

Common issues

Problemas habituales

/actuator/health answers DOWN
One of the services the application needs is not answering, usually the database or the cache. Check them with docker compose -f docker-compose.<edition>.yml ps and read the log of backend.
curl cannot connect to port 8222
The application is not running, or it is still starting. Look at the state of backend and at its log; see Troubleshooting.
The health is UP but people cannot work
The problem is in front of the application: the administration container, your reverse proxy or the network. Open the administration app from the server itself, on port 80.
/actuator/prometheus answers with an error
This version does not publish its measurements in that format. Read them at /actuator/metrics.
/actuator/health contesta DOWN
Alguno de los servicios que necesita la aplicación no contesta, por lo general la base de datos o la caché. Revisalos con docker compose -f docker-compose.<edición>.yml ps y leé el registro de backend.
curl no puede conectarse al puerto 8222
La aplicación no está corriendo, o todavía está arrancando. Mirá el estado de backend y su registro; mirá Solución de problemas.
La salud está UP pero la gente no puede trabajar
El problema está delante de la aplicación: el contenedor de administración, tu proxy inverso o la red. Abrí la aplicación de administración desde el propio servidor, en el puerto 80.
/actuator/prometheus contesta con un error
Esta versión no publica sus mediciones en ese formato. Leelas en /actuator/metrics.

RelatedRelacionado