Project

General

Profile

Actions

Enhancement #18817

open

Monitor unreference software size

Added by François ARMAND almost 2 years ago. Updated about 2 months ago.

Status:
New
Priority:
N/A
Assignee:
-
Category:
Web - Maintenance
Target version:
UX impact:
Suggestion strength:
User visibility:
Effort required:
Regression:

Description

It happens that the unreference software batch is not always working (see long discussion here: https://gitter.im/normation/rudder?at=5ff7680c787d8f79c8e9e292 and the couple of previsous hours). In that case, we observe very long inventory processing (https://issues.rudder.io/issues/12937).

So, we should monitor the size of unreference softwares. For that, and so that we also have an actionable debug lever to provide, I propose to:

- add in deleteUnreferencedSoftware method in SoftwareServiceImpl a step that write the list of unreference software( "extraSoftware") in a file (for ex: /var/rudder/metrics/software/unreference-software.txt), on dn by line, overwritten at each run of the batch,
- monitor number of lines in that file (if the file does not exists, perhaps we should also grep for errors in the webapp log file regarding "unreference software"), and that number is higher than say 1000, issue warning, and a critical above 10000.
- warning message would tell to do a backup (link to doc: https://docs.rudder.io/reference/6.2/administration/procedures.html#_migration_backups_and_restores) and do a ldapdelete -h localhost -p 389 -x -D "cn=Manager,cn=rudder-configuration" -w LDAP_PASS -f /var/rudder/metrics/software/unreference-software.txt


Related issues 1 (0 open1 closed)

Related to Rudder - Bug #17998: LDAP index inconsistency on update cause error with allowed networksReleasedBenoît PECCATTEActions
Actions #1

Updated by François ARMAND almost 2 years ago

  • Related to Bug #17998: LDAP index inconsistency on update cause error with allowed networks added
Actions #2

Updated by Vincent MEMBRÉ almost 2 years ago

  • Target version changed from 6.2.1 to 6.2.2
Actions #3

Updated by Vincent MEMBRÉ almost 2 years ago

  • Target version changed from 6.2.2 to 6.2.3
Actions #4

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 6.2.3 to 6.2.4
Actions #5

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 6.2.4 to 6.2.5
Actions #6

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 6.2.5 to 6.2.6
Actions #7

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 6.2.6 to 6.2.7
Actions #8

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 6.2.7 to 6.2.8
Actions #9

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 6.2.8 to 6.2.9
Actions #10

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 6.2.9 to 6.2.10
Actions #11

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 6.2.10 to 6.2.11
Actions #12

Updated by Vincent MEMBRÉ about 1 year ago

  • Target version changed from 6.2.11 to 6.2.12
Actions #13

Updated by Vincent MEMBRÉ 12 months ago

  • Target version changed from 6.2.12 to 6.2.13
Actions #14

Updated by François ARMAND 10 months ago

  • Tracker changed from Bug to Enhancement
  • Priority deleted (0)
Actions #15

Updated by Vincent MEMBRÉ 8 months ago

  • Target version changed from 6.2.13 to 6.2.14
Actions #16

Updated by Vincent MEMBRÉ 6 months ago

  • Target version changed from 6.2.14 to 6.2.15
Actions #17

Updated by Vincent MEMBRÉ 5 months ago

  • Target version changed from 6.2.15 to 6.2.16
Actions #18

Updated by Alexis Mousset 4 months ago

  • Target version changed from 6.2.16 to 6.2.17
Actions #19

Updated by Vincent MEMBRÉ 3 months ago

  • Target version changed from 6.2.17 to 997
Actions #20

Updated by Vincent MEMBRÉ 3 months ago

  • Target version changed from 997 to 6.2.18
Actions #21

Updated by Vincent MEMBRÉ 3 months ago

  • Target version changed from 6.2.18 to 6.2.19
Actions #22

Updated by Vincent MEMBRÉ 3 months ago

  • Target version changed from 6.2.19 to 6.2.20
Actions #23

Updated by Vincent MEMBRÉ about 2 months ago

  • Target version changed from 6.2.20 to 6.2.21
Actions

Also available in: Atom PDF