Enhancement #18817
open
Monitor unreference software size
Added by François ARMAND almost 4 years ago.
Updated about 1 year ago.
Category:
Web - Maintenance
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 to Bug #17998: LDAP index inconsistency on update cause error with allowed networks added
- Target version changed from 6.2.1 to 6.2.2
- Target version changed from 6.2.2 to 6.2.3
- Target version changed from 6.2.3 to 6.2.4
- Target version changed from 6.2.4 to 6.2.5
- Target version changed from 6.2.5 to 6.2.6
- Target version changed from 6.2.6 to 6.2.7
- Target version changed from 6.2.7 to 6.2.8
- Target version changed from 6.2.8 to 6.2.9
- Target version changed from 6.2.9 to 6.2.10
- Target version changed from 6.2.10 to 6.2.11
- Target version changed from 6.2.11 to 6.2.12
- Target version changed from 6.2.12 to 6.2.13
- Tracker changed from Bug to Enhancement
- Priority deleted (
0)
- Target version changed from 6.2.13 to 6.2.14
- Target version changed from 6.2.14 to 6.2.15
- Target version changed from 6.2.15 to 6.2.16
- Target version changed from 6.2.16 to 6.2.17
- Target version changed from 6.2.17 to 997
- Target version changed from 997 to 6.2.18
- Target version changed from 6.2.18 to 6.2.19
- Target version changed from 6.2.19 to 6.2.20
- Target version changed from 6.2.20 to old 6.2 issues to relocate
- Target version changed from old 6.2 issues to relocate to 7.2.11
- Regression set to No
- Target version changed from 7.2.11 to 1046
- Target version changed from 1046 to Ideas (not version specific)
Also available in: Atom
PDF