Project

General

Profile

Bug #17481

when running cf-promises, list-compatible-inputs is ran 8 times

Added by Nicolas CHARLES 4 months ago. Updated 2 months ago.

Status:
Released
Priority:
N/A
Category:
Performance and scalability
Target version:
Severity:
User visibility:
Effort required:
Priority:
0

Description

Even thought the logs states that it is cached it is not

0.000170 rudder  verbose: Caching result for function 'execresult("${compatible_inputs_cmd} local","${shell_type}")'
0.061626 rudder  verbose: execresult ran 'NCF_CACHE_PATH=/var/rudder/cfengine-community/state /bin/sh /var/rudder/ncf/common/10_ncf_internals/list-compatible-inputs --capability-file /opt/rudder/etc/agent-capabilities --agent-version 3.15.1 --ncf-path '/var/rudder/ncf' common' successfully
0.000132 rudder  verbose: Caching result for function 'execresult("${compatible_inputs_cmd} common","${shell_type}")'
0.046734 rudder  verbose: execresult ran 'NCF_CACHE_PATH=/var/rudder/cfengine-community/state /bin/sh /var/rudder/ncf/common/10_ncf_internals/list-compatible-inputs --capability-file /opt/rudder/etc/agent-capabilities --agent-version 3.15.1 --ncf-path '/var/rudder/ncf' local' successfully

tested in 6.1 by adding a >> at the begining of the command

#1

Updated by Nicolas CHARLES 4 months ago

  • Target version changed from 6.1.0~rc1 to 5.0.18

change is so minimal that it can go in 5.0

#2

Updated by Nicolas CHARLES 4 months ago

with this, a cf-promises during policy generetation goes from 1.3s to 0.8s (roughly)

#3

Updated by Nicolas CHARLES 4 months ago

  • Status changed from New to In progress
  • Assignee set to Nicolas CHARLES
#4

Updated by Nicolas CHARLES 4 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Nicolas CHARLES to Alexis MOUSSET
  • Pull Request set to https://github.com/Normation/rudder-techniques/pull/1600
#5

Updated by Nicolas CHARLES 4 months ago

  • Status changed from Pending technical review to Pending release
#7

Updated by Vincent MEMBRÉ 2 months ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 5.0.18 and 6.1.2 which were released today.

Also available in: Atom PDF