Project

General

Profile

Actions

action #123508

closed

[tools][teregen] Handle "one instance is already running" better for template generator size:M

Added by jbaier_cz almost 2 years ago. Updated almost 2 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Start date:
2023-01-23
Due date:
% Done:

0%

Estimated time:

Description

Motivation

Sometimes, a running instance aka. teregen process in the same container will stuck itself (probably due to unresponsive socket for some 3rd party data source like IBS) for a long time (until killed). The highest probability is of course during maintenance windows as can be seen in the log.

2023/01/19 10:15:02 W [undef] TeReGen: One instance is already running under PID 19746. Exiting.
...
2023/01/23 10:00:02 W [undef] TeReGen: One instance is already running under PID 19746. Exiting.

This effectively halts generating for all templates until the hanging process is killed and new one is started (via cron or manually). It would be nice to have a possibility to forcefully quit generating if it takes too long.

Acceptance criteria

AC1: Templates are generated in a timely manner
AC2: Only one instance of generator is actively trying to generate new templates
AC3: The instance which is generating templates is not running indefinitely

Suggestions


Related issues 2 (2 open0 closed)

Related to QA (public) - action #90917: [teregen] Add notification about errors in template generatingNew2021-04-09

Actions
Copied to QA (public) - action #123700: [tools][teregen] Alert if systemd services fail on qam.suse.de, e.g. using our salt states in parallel with ansibleNew2023-01-23

Actions
Actions

Also available in: Atom PDF