Enhancement #18817
openMonitor unreference software size
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
Updated by François ARMAND almost 4 years ago
- Related to Bug #17998: LDAP index inconsistency on update cause error with allowed networks added
Updated by Vincent MEMBRÉ almost 4 years ago
- Target version changed from 6.2.1 to 6.2.2
Updated by Vincent MEMBRÉ almost 4 years ago
- Target version changed from 6.2.2 to 6.2.3
Updated by Vincent MEMBRÉ almost 4 years ago
- Target version changed from 6.2.3 to 6.2.4
Updated by Vincent MEMBRÉ almost 4 years ago
- Target version changed from 6.2.4 to 6.2.5
Updated by Vincent MEMBRÉ over 3 years ago
- Target version changed from 6.2.5 to 6.2.6
Updated by Vincent MEMBRÉ over 3 years ago
- Target version changed from 6.2.6 to 6.2.7
Updated by Vincent MEMBRÉ over 3 years ago
- Target version changed from 6.2.7 to 6.2.8
Updated by Vincent MEMBRÉ over 3 years ago
- Target version changed from 6.2.8 to 6.2.9
Updated by Vincent MEMBRÉ over 3 years ago
- Target version changed from 6.2.9 to 6.2.10
Updated by Vincent MEMBRÉ over 3 years ago
- Target version changed from 6.2.10 to 6.2.11
Updated by Vincent MEMBRÉ about 3 years ago
- Target version changed from 6.2.11 to 6.2.12
Updated by Vincent MEMBRÉ about 3 years ago
- Target version changed from 6.2.12 to 6.2.13
Updated by François ARMAND almost 3 years ago
- Tracker changed from Bug to Enhancement
- Priority deleted (
0)
Updated by Vincent MEMBRÉ over 2 years ago
- Target version changed from 6.2.13 to 6.2.14
Updated by Vincent MEMBRÉ over 2 years ago
- Target version changed from 6.2.14 to 6.2.15
Updated by Vincent MEMBRÉ over 2 years ago
- Target version changed from 6.2.15 to 6.2.16
Updated by Alexis Mousset over 2 years ago
- Target version changed from 6.2.16 to 6.2.17
Updated by Vincent MEMBRÉ over 2 years ago
- Target version changed from 6.2.17 to 997
Updated by Vincent MEMBRÉ over 2 years ago
- Target version changed from 997 to 6.2.18
Updated by Vincent MEMBRÉ over 2 years ago
- Target version changed from 6.2.18 to 6.2.19
Updated by Vincent MEMBRÉ over 2 years ago
- Target version changed from 6.2.19 to 6.2.20
Updated by Vincent MEMBRÉ about 2 years ago
- Target version changed from 6.2.20 to old 6.2 issues to relocate
Updated by Alexis Mousset over 1 year ago
- Target version changed from old 6.2 issues to relocate to 7.2.11
- Regression set to No
Updated by Vincent MEMBRÉ over 1 year ago
- Target version changed from 7.2.11 to 1046
Updated by Alexis Mousset about 1 year ago
- Target version changed from 1046 to Ideas (not version specific)