Actions
Bug #19771
closedslow policy generation in Rudder 7.0
Status:
Released
Priority:
N/A
Assignee:
Category:
System techniques
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
Description
6 seconds for empty promises with 3 nodes
Turns out the policies validation for root server is really slow: it takes about 2secondes
a lot of commands are executed that could be skipped
# grep "Caching result" /tmp/out | sort | uniq verbose: Caching result for function 'execresult("${compatible_inputs_cmd} common","${shell_type}")' verbose: Caching result for function 'execresult("${compatible_inputs_cmd} local","${shell_type}")' rudder verbose: Caching result for function 'execresult("${paths.path[find]} ${g.rudder_ncf_origin_common} -not -name ${g.rudder_ncf_hash_file} -type f -print0 | ${paths.path[sort]} -z | /usr/bin/xargs -0 /usr/bin/sha1sum | /usr/bin/sha1sum","useshell")' rudder verbose: Caching result for function 'execresult("${paths.path[find]} ${g.rudder_ncf_origin_local} -not -name ${g.rudder_ncf_hash_file} -type f -print0 | ${paths.path[sort]} -z | /usr/bin/xargs -0 /usr/bin/sha1sum | /usr/bin/sha1sum","useshell")' rudder verbose: Caching result for function 'execresult("${paths.systemctl} --no-ask-password list-unit-files --type service | ${paths.awk} -F'.' '{print $1}' | ${paths.grep} -E \"^postgresql-?[0-9]*$\" | tail -n 1","useshell")' rudder verbose: Caching result for function 'execresult("/bin/date -u \"+%Y-%m-%d %T+00:00\"","noshell")' rudder verbose: Caching result for function 'execresult("/usr/bin/getent passwd root | cut -d: -f6","useshell")' rudder verbose: Caching result for function 'execresult("/usr/bin/printf '%d' 0x${splay_hex}","noshell")' rudder verbose: Caching result for function 'host2ip("${server_info.policy_server}")' rudder verbose: Caching result for function 'host2ip("127.0.0.1")'
Updated by François ARMAND about 3 years ago
- Target version changed from 7.0.0~beta1 to 900
Updated by Vincent MEMBRÉ about 3 years ago
- Target version changed from 900 to 7.0.0~beta2
Updated by Nicolas CHARLES about 3 years ago
- Status changed from New to In progress
- Assignee set to Nicolas CHARLES
Updated by Nicolas CHARLES about 3 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Nicolas CHARLES to Benoît PECCATTE
- Pull Request set to https://github.com/Normation/rudder-techniques/pull/1724
Updated by Nicolas CHARLES about 3 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder-techniques|7205f9699170c277849424cb036952760bd7cb13.
Updated by Vincent MEMBRÉ about 3 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 7.0.0~beta2 which was released today.
Actions