Background jobs
The window of Auto DevOps shows the work of the background jobs below. Each of them runs on any Qubix installation; the job "Auto DevOps repair requests" sends requests only from a server rented through Qubix. The jobs stand in Services and jobs in the section "Monitoring", where the page of a job shows its state and a manual run; the reference of background jobs lists the other jobs of the panel.
The jobs
| Job | How often | What it does |
|---|---|---|
| Server hardware: samples every minute | Every minute | Takes the samples of the processor, the memory, the disks and file systems, the network ports, the board sensors, the system and the gateway, and the temperature of NVMe disks. Keeps them for 7 days |
| Server hardware: samples every 10 minutes | Every 10 minutes | Takes the critical warning, the media errors and the error log of NVMe disks, and the SMART data of SATA disks |
| Server hardware: samples every 30 minutes | Every 30 minutes | Takes the spare, the wear, the unsafe shutdowns and the time above the temperature limits of NVMe disks, the temperature limits that the disks report, and the SMART data of SATA disks |
| Server hardware: journal events | Every minute | Takes the parsed kernel and system log events of the host; the events live 7 days |
| Server hardware: inventory | Every 10 minutes | Records the model, serial number and firmware of every part, with the slot and the size where the hardware reports them, once a day and after each restart of the server; the job itself decides whether an inventory is due |
| Server hardware: failure rules and incidents | Every minute | Checks the samples, the log events and the state of the first-boot disk encryption against the fixed thresholds: a warning goes to Telegram, a failure opens an incident, and an incident about a state closes after 15 minutes of normal readings (Which failures open an incident) |
| Auto DevOps repair requests | Every minute | Once a day installs the security updates of the system without the kernel, when the switch in Settings is on; on a server rented through Qubix sends the repair requests the administrator agreed to, waits for a fresh backup first, and follows their progress at Hetzner |
What the job "Auto DevOps repair requests" does
The job runs every minute and starts with a pass over the incidents whose request is alive: the incidents that are open, and the closed ones whose request is still on its way. For each incident it does the following.
- Waits for the backup. An agreement in the stage "waiting for a backup" is checked against the backup service: a backup that ended done lets the request go; a backup that stopped moves the agreement to "The backup stopped"; a backup cut by a restart of Qubix is replaced by a new one.
- Sends the request. An agreement in the stage "being sent" goes to admin.qubix.pro in two steps, a preview and a submission. When the way to admin.qubix.pro fails, the request waits 5 minutes and goes again.
- Tells the administrators. The job sends the cards of the stage (Telegram).
- Follows the request. The job asks admin.qubix.pro for the progress of the requests at the pace that the service names in its answer; when the answer leaves the pace empty, the job asks again in 3 hours, and after a failed question it asks again in 5 minutes. A request that is done closes as replaced after a fresh inventory (Repair request to Hetzner).
The job also keeps the time of works of scheduled requests: while a time of works runs, the failure rules skip the failures named in Incidents. On a server outside the rental the job ends at once, because the command program is missing there.
Run a job by hand
- Open บริการและงาน.
- Find the job in the list and click its row.
- On the page of the job click รัน.
A manual run of the job "Auto DevOps repair requests" makes the same pass as the tick of every minute. The button needs the right to run jobs (Services and jobs).